When relaying RTMP streams ffmpeg quits with av_interleaved_write_frame message

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

When relaying RTMP streams ffmpeg quits with av_interleaved_write_frame message

KRISHNAKUMAR N K
I am converting a UDP input stream to a RTMP out and its getting pushed to
a media server like wowza. The feed works fine even for a few days/weeks
without any issue, but suddenly it stops because of
*"av_interleaved_write_frame():
End of file". *I am not sure what the root cause is, can someone please
help/suggest the right path.

*Log File:*
https://drive.google.com/file/d/1VUfc57QlVimX2FJKM54PYkGEVlKjhvB4/view?usp=sharing

*ffmpeg Command:* *ffmpeg -err_detect aggressive -fflags discardcorrupt -i
udp://230.1.1.9:9000?fifo_size=5000000&overrun_nonfatal=1
<http://230.1.1.9:9000?fifo_size=5000000&overrun_nonfatal=1>
-analyzeduration 25M -probesize 50M -threads 0 -vsync 1 -filter_complex
[i:0x222]yadif,setdar=16/9[1out1] -map [1out1] -map i:0x223 -c:v libx264
-x264-params nal-hrd=cbr -b:v 2000k -maxrate 2000k -bufsize 3000k -r 25 -g
50 -profile:v main -level 3.0 -pix_fmt yuv420p -c:a libfdk_aac -b:a 128k
-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://test.com:1935/test-src/srclive
<http://test.com:1935/test-src/srclive>*

I have also tried the latest build from the GIT, but still facing the same
issue.


*ffmpeg version : *










*ffmpeg version N-94690-g59e651c Copyright (c) 2000-2019 the FFmpeg
developersbuilt with gcc 4.8.5 (GCC) 20150623 (Red Hat
4.8.5-36)configuration: --prefix=/root/ffmpeg_build
--pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg_build/include
--extra-ldflags=-L/root/ffmpeg_build/lib --extra-libs=-lpthread
--extra-libs=-lm --bindir=/root/bin --enable-gpl --enable-libfdk_aac
--enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvpx
--enable-libx264 --enable-libx265 --enable-nonfree --enable-openssl
 libavutil      56. 33.100 / 56. 33.100   libavcodec     58. 55.102 / 58.
55.102   libavformat    58. 31.104 / 58. 31.104   libavdevice    58.  9.100
/ 58.  9.100   libavfilter     7. 58.101 /  7. 58.101   libswscale      5.
 6.100 /  5.  6.100   libswresample   3.  6.100 /  3.  6.100   libpostproc
   55.  6.100 / 55.  6.100*

*Last Few Log Lines:*








































*Mon Aug 24 07:46:15 2020
udp://230.1.1.9:9000?fifo_size=5000000&overrun_nonfatal=1
<http://230.1.1.9:9000?fifo_size=5000000&overrun_nonfatal=1>: corrupt
decoded frame in stream 0Mon Aug 24 07:46:16 2020     Last message repeated
8 timesMon Aug 24 07:46:16 2020
udp://230.1.1.9:9000?fifo_size=5000000&overrun_nonfatal=1
<http://230.1.1.9:9000?fifo_size=5000000&overrun_nonfatal=1>: corrupt
decoded frame in stream 0Mon Aug 24 07:46:16 2020     Last message repeated
9 timesMon Aug 24 07:46:16 2020
udp://230.1.1.9:9000?fifo_size=5000000&overrun_nonfatal=1
<http://230.1.1.9:9000?fifo_size=5000000&overrun_nonfatal=1>: corrupt
decoded frame in stream 0Mon Aug 24 07:46:17 2020     Last message repeated
11 timesMon Aug 24 07:46:17 2020 [mpegts @ 0x3ba7c00] Dropped corrupted
packet (stream = 3)Mon Aug 24 07:56:53 2020 [mpegts @ 0x3ba7c00] Dropped
corrupted packet (stream = 0)Mon Aug 24 07:56:53 2020
udp://230.1.1.9:9000?fifo_size=5000000&overrun_nonfatal=1
<http://230.1.1.9:9000?fifo_size=5000000&overrun_nonfatal=1>: corrupt
decoded frame in stream 0Mon Aug 24 07:56:53 2020 [h264 @ 0x3fe5780]
reference picture missing during reorderMon Aug 24 07:56:53 2020 [h264 @
0x3fe5780] Missing reference picture, default is 2147483647Mon Aug 24
07:56:53 2020 [h264 @ 0x446c100] mmco: unref short failureMon Aug 24
07:56:53 2020     Last message repeated 1 timesMon Aug 24 07:56:53 2020
[h264 @ 0x446c100] number of reference frames (0+4) exceeds max (3;
probably corrupt input), discarding oneMon Aug 24 07:56:53 2020 [h264 @
0x446c100] reference picture missing during reorderMon Aug 24 07:56:53 2020
[h264 @ 0x446c100] Missing reference picture, default is 850916Mon Aug 24
07:56:53 2020 udp://230.1.1.9:9000?fifo_size=5000000&overrun_nonfatal=1
<http://230.1.1.9:9000?fifo_size=5000000&overrun_nonfatal=1>: corrupt
decoded frame in stream 0Mon Aug 24 07:56:54 2020
av_interleaved_write_frame(): End of fileMon Aug 24 07:56:54 2020
udp://230.1.1.9:9000?fifo_size=5000000&overrun_nonfatal=1
<http://230.1.1.9:9000?fifo_size=5000000&overrun_nonfatal=1>: corrupt
decoded frame in stream 0Mon Aug 24 07:56:54 2020
av_interleaved_write_frame(): End of fileMon Aug 24 07:56:54 2020 [flv @
0x4352840] Failed to update header with correct duration.Mon Aug 24
07:56:54 2020 [flv @ 0x4352840] Failed to update header with correct
filesize.Mon Aug 24 07:56:54 2020 Error writing trailer of
rtmp://test.com:1935/test-src/srclive
<http://test.com:1935/test-src/srclive>: End of fileMon Aug 24 07:56:54
2020 video:8009052kB audio:512609kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 0.497730%Mon Aug 24 07:56:54 2020 [libx264 @
0x3c0fe80] frame I:16404 Avg QP:16.69  size:136257Mon Aug 24 07:56:54 2020
[libx264 @ 0x3c0fe80] frame P:367968 Avg QP:21.16  size: 12282Mon Aug 24
07:56:54 2020 [libx264 @ 0x3c0fe80] frame B:435816 Avg QP:26.11  size:
 3321Mon Aug 24 07:56:54 2020 [libx264 @ 0x3c0fe80] consecutive B-frames:
 6.2% 66.5%  7.2% 20.1%Mon Aug 24 07:56:54 2020 [libx264 @ 0x3c0fe80] mb I
 I16..4: 14.9%  0.0% 85.1%Mon Aug 24 07:56:54 2020 [libx264 @ 0x3c0fe80] mb
P  I16..4:  2.5%  0.0%  2.8%  P16..4: 33.4%  9.7%  6.8%  0.0%  0.0%
 skip:44.9%Mon Aug 24 07:56:54 2020 [libx264 @ 0x3c0fe80] mb B  I16..4:
 0.4%  0.0%  0.3%  B16..8: 21.4%  1.6%  0.3%  direct: 1.3%  skip:74.8%
 L0:32.7% L1:62.7% BI: 4.6%Mon Aug 24 07:56:54 2020 [libx264 @ 0x3c0fe80]
coded y,uvDC,uvAC intra: 66.8% 78.9% 55.7% inter: 7.1% 17.9% 1.5%Mon Aug 24
07:56:54 2020 [libx264 @ 0x3c0fe80] i16 v,h,dc,p: 33% 41%  8% 18%Mon Aug 24
07:56:54 2020 [libx264 @ 0x3c0fe80] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 30%
10%  4%  6%  5%  7%  5%  6%Mon Aug 24 07:56:54 2020 [libx264 @ 0x3c0fe80]
i8c dc,h,v,p: 32% 38% 22%  8%Mon Aug 24 07:56:54 2020 [libx264 @ 0x3c0fe80]
Weighted P-Frames: Y:0.1% UV:0.0%Mon Aug 24 07:56:54 2020 [libx264 @
0x3c0fe80] ref P L0: 76.0%  9.7% 14.2%  0.0%Mon Aug 24 07:56:54 2020
[libx264 @ 0x3c0fe80] ref B L0: 89.4% 10.6%Mon Aug 24 07:56:54 2020
[libx264 @ 0x3c0fe80] ref B L1: 98.9%  1.1%Mon Aug 24 07:56:54 2020
[libx264 @ 0x3c0fe80] kb/s:2000.00Mon Aug 24 07:56:55 2020 ERROR:
Conversion failed!*

Regards

*KrishnaKumar*
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".