[FFmpeg-user] Stream relay fails after running some time

Nick Bright nick.bright at valnet.net
Thu Aug 23 01:40:42 EEST 2018


I'm using ffmpeg to relay video streams to YouTube as an event. It's 
working, but after some time (between minutes to several hours) the 
streams will stop.

Any suggestions appreciated. Below is output and version information:

av_interleaved_write_frame(): End of filekB time=05:24:48.41 
bitrate=3723.6kbits/s speed=   1x
[flv @ 0x536ff40] Failed to update header with correct duration.
[flv @ 0x536ff40] Failed to update header with correct filesize.
Error writing trailer of rtmp://a.rtmp.youtube.com/live2/YOUTUBEKEY: End 
of file
frame=585139 fps= 30 q=-1.0 Lsize= 8858273kB time=05:24:48.46 
bitrate=3723.6kbits/s speed=   1x
video:8827951kB audio:4972kB subtitle:0kB other streams:0kB global 
headers:0kB muxing overhead: 0.286995%
[aac @ 0x5337c40] Qavg: 65536.000
Conversion failed!

av_interleaved_write_frame(): Broken pipekB time=05:25:08.31 
bitrate=3725.9kbits/s speed=   1x
     Last message repeated 1 times
[flv @ 0x6b54580] Failed to update header with correct duration.
[flv @ 0x6b54580] Failed to update header with correct filesize.
Error writing trailer of rtmp://a.rtmp.youtube.com/live2/YOUTUBEKEY: 
Broken pipe
frame=585733 fps= 30 q=-1.0 Lsize= 8873096kB time=05:25:08.75 
bitrate=3725.9kbits/s speed=   1x
video:8842741kB audio:4977kB subtitle:0kB other streams:0kB global 
headers:0kB muxing overhead: 0.286830%
[aac @ 0x6b57a80] Q

My ffmpeg command is:

ffmpeg -reorder_queue_size 120 -i $SOURCE -f lavfi -i anullsrc -c:v copy 
-c:a aac -f flv $YOUTUBE_URL/$KEY

Using ffmpeg version:

ffmpeg version N-46347-g649d7ca47-static 
https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2018 the FFmpeg 
developers
   built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
   configuration: --enable-gpl --enable-version3 --enable-static 
--disable-debug --disable-ffplay --disable-indev=sndio 
--disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r 
--enable-gnutls --enable-gray --enable-libaom --enable-libfribidi 
--enable-libass --enable-libvmaf --enable-libfreetype 
--enable-libmp3lame --enable-libopencore-amrnb 
--enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband 
--enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus 
--enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc 
--enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 
--enable-libxml2 --enable-libxvid --enable-libzimg
   libavutil      56. 18.102 / 56. 18.102
   libavcodec     58. 20.103 / 58. 20.103
   libavformat    58. 17.100 / 58. 17.100
   libavdevice    58.  4.101 / 58.  4.101
   libavfilter     7. 25.100 /  7. 25.100
   libswscale      5.  2.100 /  5.  2.100
   libswresample   3.  2.100 /  3.  2.100
   libpostproc    55.  2.100 / 55.  2.100

-- 
-----------------------------------------------
-  Nick Bright                                -
-  Vice President of Technology               -
-  Valnet -=- We Connect You -=-              -
-  Tel 888-332-1616 x 315 / Fax 620-331-0789  -
-  Web http://www.valnet.net/                 -
-----------------------------------------------
- Are your files safe?                        -
- Valnet Vault - Secure Cloud Backup          -
- More information & 30 day free trial at     -
- http://www.valnet.net/services/valnet-vault -
-----------------------------------------------



More information about the ffmpeg-user mailing list