[FFmpeg-user] Asynchronous video - Multiple RTMP stream output with overlay
Ghubn Wcbpi
y97531 at rocketmail.com
Fri Oct 2 15:36:56 CEST 2015
Inputs are one H264/MP4 video file repeated through concat list, PNG overlay, drawtext overlay and OUTPUTS are 4 RTMP streams. After running the command for a few days without problems the stream ouputs will be asynchronous. FFMPEG shows an error message about the DTS/PTS packets.
I recently changed to a newer build but the problem still occurs. Is there anything known to cause this issue?
commandline and output:
Command line:"ffmpeg-20150921-git-74e4948-win32-static\\bin\\ffmpeg" -y -loglevel verbose -re -f concat -i assets/input/list.txt -i "assets\\input\\PICTURE.png" -filter_complex "[0][1]overlay=W/2-w/2:H/3-h/3,drawtext=fontfile=arial.ttf: text=' %{localtime\\: %m/%d/%Y %I.%M.%S %p} CEST - 3584K at 1280x720':x=(w-tw)/2: y=h-(4*lh): fontcolor=white: fontsize=48: box=1: boxcolor=0x00000000 at 1[outv]" -map "[outv]" -map 0:a -pix_fmt yuv420p -preset superfast -vcodec libx264 -profile:v baseline -b:v 3584K -maxrate 3584K -bufsize 3584K -c:a libvo_aacenc -b:a 128k -f flv "rtmp://SERVER/ffmpeg_1" -filter_complex "[0][1]overlay=W/2-w/2:H/3-h/3,drawtext=fontfile=arial.ttf: text=' %{localtime\\: %m/%d/%Y %I.%M.%S %p} CEST - 1800K at 960x540':x=(w-tw)/2: y=h-(4*lh): fontcolor=white: fontsize=48: box=1: boxcolor=0x00000000 at 1[outv]" -map "[outv]" -map 0:a -pix_fmt yuv420p -preset superfast -vcodec libx264 -profile:v baseline -b:v 1800k -maxrate 1800k -bufsize 1800k -c:a libvo_aacenc -b:a 96k -s 960x540 -f flv "rtmp://SERVER/ffmpeg_2" -filter_complex "[0][1]overlay=W/2-w/2:H/3-h/3,drawtext=fontfile=arial.ttf: text=' %{localtime\\: %m/%d/%Y %I.%M.%S %p} CEST - 1024K at 640x360':x=(w-tw)/2: y=h-(4*lh): fontcolor=white: fontsize=48: box=1: boxcolor=0x00000000 at 1[outv]" -map "[outv]" -map 0:a -pix_fmt yuv420p -preset superfast -vcodec libx264 -profile:v baseline -b:v 1024k -maxrate 1024k -bufsize 1024k -c:a libvo_aacenc -b:a 96k -s 640x360 -f flv "rtmp://SERVER/ffmpeg_3" -filter_complex "[0][1]overlay=W/2-w/2:H/3-h/3,drawtext=fontfile=arial.ttf: text=' %{localtime\\: %m/%d/%Y %I.%M.%S %p} CEST - 256K at 480x272':x=(w-tw)/2: y=h-(4*lh): fontcolor=white: fontsize=48: box=1: boxcolor=0x00000000 at 1[outv]" -map "[outv]" -map 0:a -pix_fmt yuv420p -preset superfast -vcodec libx264 -profile:v baseline -b:v 256k -maxrate 256k -bufsize 512k -c:a libvo_aacenc -b:a 64k -s 480x272 -f flv "rtmp://SERVER/ffmpeg_4"
[libx264 @ 02deaf00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2[libx264 @ 02deaf00] profile Constrained Baseline, level 3.1[libx264 @ 02deaf00] 264 - core 148 r2597 e86f3a1 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=1:0:0 analyse=0x1:0x1 me=dia subme=1 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=0 rc=cbr mbtree=0 bitrate=3584 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=3584 vbv_bufsize=3584 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00[libx264 @ 04cd9c40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2[libx264 @ 04cd9c40] profile Constrained Baseline, level 3.1[libx264 @ 04cd9c40] 264 - core 148 r2597 e86f3a1 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=1:0:0 analyse=0x1:0x1 me=dia subme=1 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=0 rc=cbr mbtree=0 bitrate=1800 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=1800 vbv_bufsize=1800 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00[libx264 @ 06563300] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2[libx264 @ 06563300] profile Constrained Baseline, level 3.0[libx264 @ 06563300] 264 - core 148 r2597 e86f3a1 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=1:0:0 analyse=0x1:0x1 me=dia subme=1 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=11 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=0 rc=cbr mbtree=0 bitrate=1024 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=1024 vbv_bufsize=1024 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00[libx264 @ 06563f20] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2[libx264 @ 06563f20] profile Constrained Baseline, level 2.1[libx264 @ 06563f20] 264 - core 148 r2597 e86f3a1 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=1:0:0 analyse=0x1:0x1 me=dia subme=1 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=8 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=0 rc=cbr mbtree=0 bitrate=256 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=256 vbv_bufsize=512 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00Output #0, flv, to 'rtmp://SERVER/ffmpeg_1': Metadata: encoder : Lavf57.2.100 Stream #0:0: Video: h264 (libx264), -1 reference frame ([7][0][0][0] / 0x0007), yuv420p, 1280x720, q=-1--1, 3584 kb/s, 25 fps, 1k tbn, 25 tbc (default) Metadata: encoder : Lavc57.3.100 libx264 Stream #0:1(eng): Audio: aac (libvo_aacenc) ([10][0][0][0] / 0x000A), 48000Hz, stereo, s16, 128 kb/s Metadata: handler_name : SoundHandler encoder : Lavc57.3.100 libvo_aacencOutput #1, flv, to 'rtmp://SERVER/ffmpeg_2': Metadata: encoder : Lavf57.2.100 Stream #1:0: Video: h264 (libx264), -1 reference frame ([7][0][0][0] / 0x0007), yuv420p, 960x540, q=-1--1, 1800 kb/s, 25 fps, 1k tbn, 25 tbc (default) Metadata: encoder : Lavc57.3.100 libx264 Stream #1:1(eng): Audio: aac (libvo_aacenc) ([10][0][0][0] / 0x000A), 48000Hz, stereo, s16, 96 kb/s Metadata: handler_name : SoundHandler encoder : Lavc57.3.100 libvo_aacencOutput #2, flv, to 'rtmp://SERVER/ffmpeg_3': Metadata: encoder : Lavf57.2.100 Stream #2:0: Video: h264 (libx264), -1 reference frame ([7][0][0][0] / 0x0007), yuv420p, 640x360, q=-1--1, 1024 kb/s, 25 fps, 1k tbn, 25 tbc (default) Metadata: encoder : Lavc57.3.100 libx264 Stream #2:1(eng): Audio: aac (libvo_aacenc) ([10][0][0][0] / 0x000A), 48000Hz, stereo, s16, 96 kb/s Metadata: handler_name : SoundHandler encoder : Lavc57.3.100 libvo_aacencOutput #3, flv, to 'rtmp://SERVER/ffmpeg_4': Metadata: encoder : Lavf57.2.100 Stream #3:0: Video: h264 (libx264), -1 reference frame ([7][0][0][0] / 0x0007), yuv420p, 480x272, q=-1--1, 256 kb/s, 25 fps, 1k tbn, 25 tbc (default) Metadata: encoder : Lavc57.3.100 libx264 Stream #3:1(eng): Audio: aac (libvo_aacenc) ([10][0][0][0] / 0x000A), 48000Hz, stereo, s16, 64 kb/s Metadata: handler_name : SoundHandler encoder : Lavc57.3.100 libvo_aacencStream mapping: Stream #0:0 (h264) -> overlay:main (graph 0) Stream #0:0 (h264) -> overlay:main (graph 1) Stream #0:0 (h264) -> overlay:main (graph 2) Stream #0:0 (h264) -> overlay:main (graph 3) Stream #1:0 (png) -> overlay:overlay (graph 0) Stream #1:0 (png) -> overlay:overlay (graph 1) Stream #1:0 (png) -> overlay:overlay (graph 2) Stream #1:0 (png) -> overlay:overlay (graph 3) drawtext (graph 0) -> Stream #0:0 (libx264) Stream #0:1 -> #0:1 (aac (native) -> aac (libvo_aacenc)) drawtext (graph 1) -> Stream #1:0 (libx264) Stream #0:1 -> #1:1 (aac (native) -> aac (libvo_aacenc)) drawtext (graph 2) -> Stream #2:0 (libx264) Stream #0:1 -> #2:1 (aac (native) -> aac (libvo_aacenc)) drawtext (graph 3) -> Stream #3:0 (libx264) Stream #0:1 -> #3:1 (aac (native) -> aac (libvo_aacenc))Press [q] to stop, [?] for helpframe= 9 fps=0.0 q=0.0 q=0.0 q=0.0 q=0.0 size= 0kB time=00:00:00.60 bitframe= 16 fps= 16 q=20.0 q=23.0 q=23.0 q=33.0 size= 44kB time=00:00:00.90frame= 29 fps= 19 q=31.0 q=32.0 q=31.0 q=35.0 size= 486kB time=00:00:01.41[...]frame=6936113 fps= 25 q=6.0 q=6.0 q=5.0 q=9.0 size=11730DTS 4729941488, next:277495700391 st:1 invalid droppingPTS 4729941488, next:277495700391 invalid dropping st:1DTS 4729942512, next:277495721724 st:1 invalid droppingPTS 4729942512, next:277495721724 invalid dropping st:1
Best regards and thanks for having a look at this case! Please let me know if I can do anything to make troubleshooting and investigation easier..
More information about the ffmpeg-user
mailing list