[FFmpeg-user] ffmpeg Live Streaming Error : av_interleaved_write_frame(): Broken pipe

KRISHNAKUMAR N K nk.krishnakumar at gmail.com
Thu Jun 18 10:35:16 EEST 2020


I am trying to stream video live using ffmpeg, Input is from a UDP Source.
Most of the time it works fine, but I could see the following log lines and
ffmpeg stop's the conversion/feed push to the rtmp server. Few log lines
below for reference. Is this issue related to network on reaching the
destination or source or something that i need to change in the ffmpeg
command?

*https://pastebin.com/WE0d6eN2 <https://pastebin.com/WE0d6eN2>*


*ffmpeg Command: *
*ffmpeg -err_detect aggressive -fflags discardcorrupt -i
udp://230.1.1.2:11000?fifo_size=5000000&overrun_nonfatal=1
<http://230.1.1.2:11000?fifo_size=5000000&overrun_nonfatal=1>
-analyzeduration 25M -probesize 50M -threads 0 -vsync 1 -filter_complex
[i:0x202]yadif,setdar=16/9[1out1];[i:0x202]yadif,setdar=16/9[1out2];[i:0x202]yadif,setdar=16/9[1out3];[i:0x202]yadif,setdar=16/9[1out4]
-map [1out1] -map i:0x29e -c:v libx264 -x264-params nal-hrd=cbr -b:v 200k
-maxrate 200k -bufsize 300k -r 15 -g 30 -profile:v baseline -level 3.0
-pix_fmt yuv420p -c:a libfdk_aac -b:a 32k -ac 2 -ar 48000 -sc_threshold 0
-s 256x144 -tune film -af
aresample=async=1:min_hard_comp=0.100000:first_pts=0 -x264opts opencl -f
flv rtmp://ipaddress:1935/rtmp/push/test1-map [1out2] -map i:0x29e -c:v
libx264 -x264-params nal-hrd=cbr -b:v 500k -maxrate 500k -bufsize 750k -r
25 -g 50 -profile:v baseline -level 3.0 -pix_fmt yuv420p -c:a libfdk_aac
-b:a 64k -ac 2 -ar 48000 -sc_threshold 0 -s 512x288 -tune film -af
aresample=async=1:min_hard_comp=0.100000:first_pts=0 -x264opts opencl -f
flv rtmp://ipaddress:1935/rtmp/push/test2 -map [1out3] -map i:0x29e -c:v
libx264 -x264-params nal-hrd=cbr -b:v 1000k -maxrate 1000k -bufsize 1500k
-r 25 -g 50 -profile:v main -level 3.0 -pix_fmt yuv420p -c:a libfdk_aac
-b:a 64k -ac 2 -ar 48000 -sc_threshold 0 -s 1024x576 -tune film -af
aresample=async=1:min_hard_comp=0.100000:first_pts=0 -x264opts opencl -f
flv rtmp://ipaddress:1935/rtmp/push/test3 -map [1out4] -map i:0x29e -c:v
libx264 -x264-params nal-hrd=cbr -b:v 1800k -maxrate 1800k -bufsize 2700k
-r 25 -g 50 -profile:v main -level 3.1 -pix_fmt yuv420p -c:a libfdk_aac
-b:a 64k -ac 2 -ar 48000 -sc_threshold 0 -s 1280x720 -tune film -af
aresample=async=1:min_hard_comp=0.100000:first_pts=0 -x264opts opencl -f
flv rtmp://ipaddress:1935/rtmp/push/test4*

Regards

*KrishnaKumar *
*N K *


More information about the ffmpeg-user mailing list