[FFmpeg-user] FFmpeg stops outputting frames

KRISHNAKUMAR N K nk.krishnakumar at gmail.com
Wed Jun 5 17:14:26 EEST 2019


Can anyone please help me on this?

Regards

*KrishnaKumar **N K *






On Mon, 3 Jun 2019 at 09:01, KRISHNAKUMAR N K <nk.krishnakumar at gmail.com>
wrote:

> Hi
>
> I am trying to push live stream from an udp source, FFmpeg stops pushing
> the live streams and its not recovering back.  I am getting "*av_interleaved_write_frame():
> Broken pipe*" and stream stops with *"Conversion failed!"*, what could be
> the reason for this?
>
>
> *FFmpeg Command:*
> *ffmpeg -i udp://230.1.1.2:12000?fifo_size=49152000&overrun_nonfatal=1
> <http://230.1.1.2:12000?fifo_size=49152000&overrun_nonfatal=1>
> -analyzeduration 25M -probesize 50M -threads 0 -vsync 1 -filter_complex
> [i:0x5e5]setdar=16/9[1out1];[i:0x5e1]setdar=16/9[2out1] -map [1out1] -map
> i:0x649 -c:v libx264 -b:v 5000k -maxrate 5000k -bufsize 7500k -g 50
> -profile:v main -level 3.0 -pix_fmt yuv420p -c:a libfdk_aac -b:a 128k -ac 2
> -ar 44100 -sc_threshold 0 -s 1920x1080 -tune film -af
> aresample=async=1:min_hard_comp=0.100000:first_pts=0 -x264opts opencl -f
> flv rtmp://1.2.3.4:1935/abcd/test1 <http://1.2.3.4:1935/abcd/test1> -map
> [2out1] -map i:0x645 -c:v libx264 -b:v 5000k -maxrate 5000k -bufsize 7500k
> -g 50 -profile:v main -level 3.0 -pix_fmt yuv420p -c:a libfdk_aac -b:a 128k
> -ac 2 -ar 44100 -sc_threshold 0 -s 1920x1080 -tune film -af
> aresample=async=1:min_hard_comp=0.100000:first_pts=0 -x264opts opencl -f
> flv rtmp://1.2.3.4:1935/abcd/test8 <http://1.2.3.4:1935/abcd/test8>*
>
> *Sample Console Output:*
> frame=   34 fps=4.6 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0
> q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 size=       0kB time=00:00:00.46 bitrate=
> 6.9kbits/s dup=294 drop=0 speed=0.0629x    ^Mframe=   44 fps=5.6 q=0.0
> q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0
> q=0.0 size=       0kB time=00:00:00.83 bitrate=   3.8kbits/s dup=294 drop=0
> speed=0.106x    ^Mframe=   46 fps=5.4 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0
> q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 size=       0kB
> time=00:00:00.83 bitrate=   3.8kbits/s dup=294 drop=0 speed=0.0983x
>  ^Mframe=   48 fps=5.3 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0
> q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 size=       0kB time=00:00:01.32
> bitrate=   2.4kbits/s dup=329 drop=0 speed=0.147x    ^Mframe=   58 fps=6.1
> q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0
> q=0.0 q=0.0 size=       0kB time=00:00:01.39 bitrate=   2.3kbits/s dup=329
> drop=0 speed=0.146x    ^Mframe=   58 fps=5.7 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0
> q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 size=       0kB
> time=00:00:01.39 bitrate=   2.3kbits/s dup=329 drop=0 speed=0.137x
>  ^Mframe=   58 fps=5.4 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0
> q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 size=       0kB time=00:00:01.74
> bitrate=   1.8kbits/s dup=329 drop=0 speed=0.163x    ^Mframe=   63 fps=5.6
> q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0
> q=0.0 q=0.0 size=       0kB time=00:00:01.74 bitrate=   1.8kbits/s dup=329
> drop=0 speed=0.156x    ^Mframe=   68 fps=5.5 q=0.0 q=33.0 q=31.0 q=33.0
> q=31.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 q=0.0 size=
> 0kB time=00:00:01.74 bitrate=   1.8kbits/s dup=329 drop=0 speed=0.14x
>  ^Mframe=   70 fps=5.4 q=0.0 q=33.0 q=31.0 q=33.0 q=31.0 q=0.0 q=0.0 q=0.0
> q=0.0 q=35.0 q=0.0 q=35.0 q=0.0 q=31.0 size=       0kB time=00:00:02.11
> bitrate=   1.5kbits/s dup=329 drop=0 speed=0.163x    ^Mframe=   70 fps=5.2
> q=0.0 q=33.0 q=31.0 q=33.0 q=31.0 q=0.0 q=0.0 q=0.0 q=0.0 q=36.0 q=0.0
> q=36.0 q=0.0 q=31.0 size=       0kB time=00:00:02.48 bitrate=   1.3kbits/s
> dup=329 drop=0 speed=0.184x
>
> av_interleaved_write_frame(): Broken pipe
> [flv @ 0x3d48600] Failed to update header with correct duration.
> [flv @ 0x3d48600] Failed to update header with correct filesize.
> Error writing trailer of rtmp://ipaddress:1935/abcd/test1: Broken pipe
> [flv @ 0x3d56fc0] Failed to update header with correct duration.
> [flv @ 0x3d56fc0] Failed to update header with correct filesize.
> [flv @ 0x3d8f640] Failed to update header with correct duration.
> [flv @ 0x3d8f640] Failed to update header with correct filesize.
> [flv @ 0x3daac80] Failed to update header with correct duration.
>
> [flv @ 0x4105640] Failed to update header with correct filesize.
> [flv @ 0x4113b80] Failed to update header with correct duration.
> [flv @ 0x4113b80] Failed to update header with correct filesize.
> frame=   79 fps=3.3 q=37.0 Lq=-1.0 q=-1.0 q=-1.0 q=-1.0 q=-1.0 q=-1.0
> q=-1.0 q=-1.0 q=-1.0 q=-1.0 q=-1.0 q=-1.0 q=-1.0 size=      96kB
> time=00:00:03.00 bitrate= 263.1kbits/s dup=329 drop=0 speed=0.125x
> video:5502kB audio:566kB subtitle:0kB other streams:0kB global headers:1kB
> muxing overhead: unknown
> [libx264 @ 0x3d94b40] frame I:2     Avg QP:24.46  size: 91060
> [libx264 @ 0x3d94b40] frame P:24    Avg QP:27.20  size:  4177
> [libx264 @ 0x3d94b40] frame B:53    Avg QP:35.33  size:   500
> [libx264 @ 0x3d94b40] consecutive B-frames:  3.8% 10.1% 30.4% 55.7%
> [libx264 @ 0x3d94b40] mb I  I16..4: 44.2%  0.0% 55.8%
>
> [libx264 @ 0x411d700] Weighted P-Frames: Y:0.0% UV:0.0%
> [libx264 @ 0x411d700] ref P L0: 68.4% 12.9% 13.5%  5.2%
> [libx264 @ 0x411d700] ref B L0: 88.0% 10.1%  1.9%
> [libx264 @ 0x411d700] ref B L1: 93.7%  6.3%
> [libx264 @ 0x411d700] kb/s:1871.75
> Conversion failed!
>
>
> Regards
>
> *KrishnaKumar **N K *
> *Mobile:*  +91 9894024256
>
>
>
>
>
>


More information about the ffmpeg-user mailing list