FAQ  •  Register  •  Login

Stream interruptions - I/O error: Write end dead

<<

Rufus McDufus

Serviio newbie

Posts: 14

Joined: Sat Nov 17, 2012 5:03 pm

Post Sun Nov 18, 2012 6:06 pm

Stream interruptions - I/O error: Write end dead

I'm trying to view a sopcast stream on a Samsung D-series TV (F1 motorsports on hahasports.com with the hahasport plugin) and I always get problems with the feed interrupting and skipping to the next feed. It's rare to get more than 10 minutes worth of feed without it crapping out.
Errors are below. I'll include the ffmpeg command from a litte earlier in the log. This is with Christian's build (qpkg) of 1.0.1 on Qnap x86 with included ffmpeg (command line opts hard-coded the path to the correct ffmpeg).
This isn't a new issue - I've suffered for a year or so including with v0.6x as well. Just would really like to get a handle on it!

[edit] no filesystems appear to be filling up on the Qnap

2012-11-18 17:56:57,820 DEBUG [ProcessExecutor] Starting /root/.serviio/opt/bin/ffmpeg -fflags +genpts -i rtmp://213.163.76.72/pull?testkey=5ff8e ... ba7d7a5275 swfUrl=http://files.leton.tv/player.swf pageUrl=files.leton.tv playpath=f1grand2 -y -copyts -c:v copy -vbsf h264_mp4toannexb -c:a ac3 -b:a 32k -ar 48000 -ac 2 -map 0:0 -map 0:1 -sn -f mpegts pipe:

2012-11-18 17:57:40,182 DEBUG [OnlineRepositoryDAOImpl] Reading all OnlineRepositories
2012-11-18 17:57:40,185 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 1)
2012-11-18 17:57:40,189 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 2)
2012-11-18 17:57:57,735 DEBUG [DiscoveryAdvertisementNotifier] Multicasting SSDP alive using interface bond0 (bond0) and address 192.168.0.2, timeout = 0
2012-11-18 17:57:57,736 DEBUG [DiscoveryAdvertisementNotifier] Sending 6 'alive' messages describing device c41c5514-0d79-3774-967b-023b9e31d01f
2012-11-18 17:57:57,955 WARN [ProcessExecutor] Process /root/.serviio/opt/bin/ffmpeg has a return code of 1! This is a possible error.
2012-11-18 17:57:57,956 DEBUG [TranscodingJobListener] Transcoding finished; successful: false
2012-11-18 17:57:58,066 DEBUG [WebServer] I/O error: Write end dead
2012-11-18 17:57:58,223 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target uuid:d7bacd3f-25a2-4349-ae49-9012560e2f6a from address /192.168.0.245:1028
2012-11-18 17:57:58,224 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.0.245
2012-11-18 17:57:58,225 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target uuid:c41c5514-0d79-3774-967b-023b9e31d01f from address /192.168.0.245:1029
2012-11-18 17:57:58,226 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.0.245
2012-11-18 17:57:58,228 DEBUG [DiscoverySearchResponder] Sending 1 M-SEARCH response message(s) to /192.168.0.245:1029
2012-11-18 17:57:58,247 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target uuid:d7bacd3f-25a2-4349-ae49-9012560e2f6a from address /192.168.0.245:1030
<<

Rufus McDufus

Serviio newbie

Posts: 14

Joined: Sat Nov 17, 2012 5:03 pm

Post Sun Nov 18, 2012 6:20 pm

Re: Stream interruptions - I/O error: Write end dead

Ah - this could be the same as other instances of the ffmpeg 'unknown error'. Here's what happens from the command line.

# /root/.serviio/opt/bin/ffmpeg -fflags +genpts -i rtmp://213.163.76.72/pull?testkey=78b6a ... 236d0f305f swfUrl=http://files.leton.tv/player.swf pageUrl=files.leton.tv playpath=f1grand2 -y -copyts -c:v copy -vbsf h264_mp4toannexb -c:a ac3 -b:a 32k -ar 48000 -ac 2 -map 0:0 -map 0:1 -sn -f mpegts pipe: >/dev/null
ffmpeg version N-42368-gbf53863 Copyright (c) 2000-2012 the FFmpeg developers
built on Sep 10 2012 22:49:57 with gcc 4.2.1
configuration: --prefix=/root/.serviio/opt --enable-static --disable-shared --disable-ffplay --disable-ffserver --enable-libmp3lame --enable-librtmp --enable-pthreads --extra-ldflags=-L/root/.serviio/opt/lib --extra-cflags=-I/root/.serviio/opt/include
libavutil 51. 64.100 / 51. 64.100
libavcodec 54. 33.100 / 54. 33.100
libavformat 54. 15.102 / 54. 15.102
libavdevice 54. 1.100 / 54. 1.100
libavfilter 3. 1.100 / 3. 1.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
Closing connection: NetStream.Play.Failed
rtmp://213.163.76.72/pull?testkey=78b6a ... 236d0f305f: Unknown error occurred
<<

Rufus McDufus

Serviio newbie

Posts: 14

Joined: Sat Nov 17, 2012 5:03 pm

Post Sun Nov 18, 2012 6:59 pm

Re: Stream interruptions - I/O error: Write end dead

When running the ffmpeg command from the command line ( piping output to /dev/null) I get the 'unknown error' immediately & ffmpeg quits with status code 1. Streaming to the TV usually works for a few minutes though so the 'unknown error' may be a red herring.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Nov 20, 2012 2:29 pm

Re: Stream interruptions - I/O error: Write end dead

wrap the URL in quotes, like:

  Code:
ffmpeg -fflags +genpts -i "rtmp://213.163.76.72/pull?testkey=78b6a ... 236d0f305f swfUrl=http://files.leton.tv/player.swf pageUrl=files.leton.tv playpath=f1grand2" -y -copyts -c:v copy -vbsf h264_mp4toannexb -c:a ac3 -b:a 32k -ar 48000 -ac 2 -map 0:0 -map 0:1 -sn -f mpegts pipe: >/dev/null


Note the URL is pasted incorrectly (with ....), you'll have to fix it on your command line
<<

Rufus McDufus

Serviio newbie

Posts: 14

Joined: Sat Nov 17, 2012 5:03 pm

Post Tue Nov 20, 2012 2:31 pm

Re: Stream interruptions - I/O error: Write end dead

Thanks! Will give it a try.

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 19 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.