[FFmpeg-trac] #6163(undetermined:new): concat demuxer produces invalid output with frame-held mp4

FFmpeg trac at avcodec.org
Sun Feb 19 16:32:17 EET 2017


#6163: concat demuxer produces invalid output with frame-held mp4
-------------------------------------+-------------------------------------
             Reporter:               |                    Owner:
  JohnHawkinson                      |                   Status:  new
                 Type:  defect       |                Component:
             Priority:  normal       |  undetermined
              Version:  git-master   |               Resolution:
             Keywords:  concat       |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by JohnHawkinson):

 Replying to [comment:4 Cigaes]:
 > With {{{-c copy}}}, if you read your command outputs carefully, you will
 realize you are trying to concatenate PNG with H264, it can not work.

 Yeah, I was skeptical, which is why I initially started without it. But it
 seemed to get further along before failure -- delusional, I guess :)

 > The {{{+}}} in front of the pixel formats does not do what you think it
 does. Remove it in your first command and try again.

 This does not seem to have helped, see below. It's my recollection
 (perhaps flawed) that it had been necessary in the past.

 Here we go:

 {{{
 pb3:test jhawk$ ffmpeg -loop 1 -i f1.png -t 3.933 -pix_fmt yuv420p -r
 29.97   h4.mp4
 ffmpeg version git-2017-02-19-3206ea4 Copyright (c) 2000-2017 the FFmpeg
 developers
   built with Apple LLVM version 7.0.2 (clang-700.1.81)
   configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-3206ea4 --enable-
 shared --enable-pthreads --enable-gpl --enable-version3 --enable-
 hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-
 ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-
 opencl --disable-lzma --enable-vda
   libavutil      55. 47.100 / 55. 47.100
   libavcodec     57. 80.101 / 57. 80.101
   libavformat    57. 66.102 / 57. 66.102
   libavdevice    57.  2.100 / 57.  2.100
   libavfilter     6. 73.100 /  6. 73.100
   libavresample   3.  2.  0 /  3.  2.  0
   libswscale      4.  3.101 /  4.  3.101
   libswresample   2.  4.100 /  2.  4.100
   libpostproc    54.  2.100 / 54.  2.100
 Input #0, png_pipe, from 'f1.png':
   Duration: N/A, bitrate: N/A
     Stream #0:0: Video: png, rgb24(pc), 1280x720, 25 fps, 25 tbr, 25 tbn,
 25 tbc
 [libx264 @ 0x7f966d000c00] using cpu capabilities: MMX2 SSE2Fast SSSE3
 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
 [libx264 @ 0x7f966d000c00] profile High, level 3.1
 [libx264 @ 0x7f966d000c00] 264 - core 148 r2748 97eaef2 - H.264/MPEG-4 AVC
 codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options:
 cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1
 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1
 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6
 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0
 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25
 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0
 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
 Output #0, mp4, to 'h4.mp4':
   Metadata:
     encoder         : Lavf57.66.102
     Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p,
 1280x720, q=-1--1, 29.97 fps, 11988 tbn, 29.97 tbc
     Metadata:
       encoder         : Lavc57.80.101 libx264
     Side data:
       cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
 Stream mapping:
   Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
 Press [q] to stop, [?] for help
 frame=   85 fps= 84 q=29.0 size=      57kB time=00:00:01.06 bitrate=
 435.5kbits/s dup=14 drop=0 speed=1.06x   frame=  117 fps= 65 q=-1.0 Lsize=
 64kB time=00:00:03.80 bitrate= 137.6kbits/s dup=19 drop=0 speed=2.12x
 video:62kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 3.542316%
 [libx264 @ 0x7f966d000c00] frame I:1     Avg QP:15.63  size: 53680
 [libx264 @ 0x7f966d000c00] frame P:29    Avg QP:15.71  size:   156
 [libx264 @ 0x7f966d000c00] frame B:87    Avg QP:32.33  size:    49
 [libx264 @ 0x7f966d000c00] consecutive B-frames:  0.9%  0.0%  0.0% 99.1%
 [libx264 @ 0x7f966d000c00] mb I  I16..4:  7.5% 65.5% 27.0%
 [libx264 @ 0x7f966d000c00] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  1.1%
 0.1%  0.0%  0.0%  0.0%    skip:98.8%
 [libx264 @ 0x7f966d000c00] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.4%
 0.0%  0.0%  direct: 0.0%  skip:99.6%  L0:15.3% L1:84.7% BI: 0.0%
 [libx264 @ 0x7f966d000c00] 8x8 transform intra:65.5% inter:98.8%
 [libx264 @ 0x7f966d000c00] coded y,uvDC,uvAC intra: 70.9% 47.1% 30.8%
 inter: 0.0% 0.1% 0.0%
 [libx264 @ 0x7f966d000c00] i16 v,h,dc,p: 21% 36%  6% 37%
 [libx264 @ 0x7f966d000c00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 25% 16%  4%
 4%  5%  4%  5%  6%
 [libx264 @ 0x7f966d000c00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 45% 20%  7%  5%
 5%  6%  4%  6%  3%
 [libx264 @ 0x7f966d000c00] i8c dc,h,v,p: 61% 15% 20%  4%
 [libx264 @ 0x7f966d000c00] Weighted P-Frames: Y:0.0% UV:0.0%
 [libx264 @ 0x7f966d000c00] ref P L0: 97.3%  0.0%  2.2%  0.5%
 [libx264 @ 0x7f966d000c00] ref B L0: 55.6% 44.4%
 [libx264 @ 0x7f966d000c00] ref B L1: 90.5%  9.5%
 [libx264 @ 0x7f966d000c00] kb/s:128.06
 }}}

 It certainly produces a much more sane filesize:

 {{{
 pb3:test jhawk$ ls -l h*
 -rw-r--r--  1 jhawk  staff  71788556 Feb 19 00:12 h1.mp4
 -rw-r--r--  1 jhawk  staff  71789308 Feb 19 00:42 h2.mp4
 -rw-r--r--  1 jhawk  staff  71789308 Feb 19 09:11 h3.mp4
 -rw-r--r--  1 jhawk  staff     65417 Feb 19 09:12 h4.mp4
 }}}

 But then when I concatenate the 4 second frame hold with the 1 second mp4:

 {{{
 pb3:test jhawk$ echo -e 'ffconcat version 1.0\n\nfile h4.mp4\nfile
 short1.mp4\n' > concat4
 pb3:test jhawk$ ffmpeg -f concat -i concat4 -c copy concat4.mp4
 ffmpeg version git-2017-02-19-3206ea4 Copyright (c) 2000-2017 the FFmpeg
 developers
   built with Apple LLVM version 7.0.2 (clang-700.1.81)
   configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-3206ea4 --enable-
 shared --enable-pthreads --enable-gpl --enable-version3 --enable-
 hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-
 ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-
 opencl --disable-lzma --enable-vda
   libavutil      55. 47.100 / 55. 47.100
   libavcodec     57. 80.101 / 57. 80.101
   libavformat    57. 66.102 / 57. 66.102
   libavdevice    57.  2.100 / 57.  2.100
   libavfilter     6. 73.100 /  6. 73.100
   libavresample   3.  2.  0 /  3.  2.  0
   libswscale      4.  3.101 /  4.  3.101
   libswresample   2.  4.100 /  2.  4.100
   libpostproc    54.  2.100 / 54.  2.100
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb101801600] Auto-inserting h264_mp4toannexb
 bitstream filter
 Input #0, concat, from 'concat4':
   Duration: N/A, start: 0.000000, bitrate: 129 kb/s
     Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
 1280x720, 129 kb/s, 29.97 fps, 29.97 tbr, 11988 tbn, 59.94 tbc
     Metadata:
       handler_name    : VideoHandler
 Output #0, mp4, to 'concat4.mp4':
   Metadata:
     encoder         : Lavf57.66.102
     Stream #0:0(und): Video: h264 (High) ([33][0][0][0] / 0x0021),
 yuv420p, 1280x720, q=2-31, 129 kb/s, 29.97 fps, 29.97 tbr, 11988 tbn,
 11988 tbc
     Metadata:
       handler_name    : VideoHandler
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
 Press [q] to stop, [?] for help
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb10280d000] Auto-inserting h264_mp4toannexb
 bitstream filter
 [concat @ 0x7fb101800a00] New audio stream 0:1 at pos:216156 and
 DTS:3.904s
 frame=  150 fps=0.0 q=-1.0 Lsize=    1216kB time=00:00:12.19 bitrate=
 817.4kbits/s speed= 199x
 video:1214kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 0.208274%
 }}}

 I get a 12.19 second result, allegedly, which seems wrong.
 And playing it with VLC, I get the held still and then VLC hangs playback
 for a while, and then appears to re-play the still but never plays the
 motion video (or its audio).

 I know that I have gotten similar things to work in the past (April 2016),
 although using my notes on what worked from that time has not been
 successful in getting it work now. I don't know if my notes were wrong or
 other things have changed.

 In this application it's really a strong requirement to have `-c copy`
 work because the actual videos are many minutes to small hours long, the
 goal is to be able to turn them around fast. But even without `-c copy`,
 the concatenation still fails:

 {{{
 pb3:test jhawk$ ffmpeg -f concat -i concat4  concat4t.mp4
 ffmpeg version git-2017-02-19-3206ea4 Copyright (c) 2000-2017 the FFmpeg
 developers
   built with Apple LLVM version 7.0.2 (clang-700.1.81)
   configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-3206ea4 --enable-
 shared --enable-pthreads --enable-gpl --enable-version3 --enable-
 hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-
 ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-
 opencl --disable-lzma --enable-vda
   libavutil      55. 47.100 / 55. 47.100
   libavcodec     57. 80.101 / 57. 80.101
   libavformat    57. 66.102 / 57. 66.102
   libavdevice    57.  2.100 / 57.  2.100
   libavfilter     6. 73.100 /  6. 73.100
   libavresample   3.  2.  0 /  3.  2.  0
   libswscale      4.  3.101 /  4.  3.101
   libswresample   2.  4.100 /  2.  4.100
   libpostproc    54.  2.100 / 54.  2.100
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fccf0811800] Auto-inserting h264_mp4toannexb
 bitstream filter
 Input #0, concat, from 'concat4':
   Duration: N/A, start: 0.000000, bitrate: 129 kb/s
     Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
 1280x720, 129 kb/s, 29.97 fps, 29.97 tbr, 11988 tbn, 59.94 tbc
     Metadata:
       handler_name    : VideoHandler
 [libx264 @ 0x7fccf2010200] using cpu capabilities: MMX2 SSE2Fast SSSE3
 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
 [libx264 @ 0x7fccf2010200] profile High, level 3.1
 [libx264 @ 0x7fccf2010200] 264 - core 148 r2748 97eaef2 - H.264/MPEG-4 AVC
 codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options:
 cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1
 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1
 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6
 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0
 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25
 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0
 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
 Output #0, mp4, to 'concat4t.mp4':
   Metadata:
     encoder         : Lavf57.66.102
     Stream #0:0(und): Video: h264 (libx264) ([33][0][0][0] / 0x0021),
 yuv420p, 1280x720, q=-1--1, 29.97 fps, 11988 tbn, 29.97 tbc
     Metadata:
       handler_name    : VideoHandler
       encoder         : Lavc57.80.101 libx264
     Side data:
       cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
 Press [q] to stop, [?] for help
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fccf0811800] Auto-inserting h264_mp4toannexb
 bitstream filter33x
 [h264 @ 0x7fccf203ba00] top block unavailable for requested intra mode -1
 [h264 @ 0x7fccf203ba00] error while decoding MB 0 0, bytestream 119433
 [h264 @ 0x7fccf203ba00] concealing 3600 DC, 3600 AC, 3600 MV errors in I
 frame
 [h264 @ 0x7fccf1808000] illegal modification_of_pic_nums_idc 10
 [h264 @ 0x7fccf1808000] decode_slice_header error
 [h264 @ 0x7fccf1808000] no frame!
 [h264 @ 0x7fccf181e400] illegal modification_of_pic_nums_idc 18
 [h264 @ 0x7fccf181e400] decode_slice_header error
 [h264 @ 0x7fccf181e400] no frame!
 [h264 @ 0x7fccf2019800] illegal modification_of_pic_nums_idc 30
 [h264 @ 0x7fccf2019800] decode_slice_header error
 [h264 @ 0x7fccf2019800] no frame!
 [concat @ 0x7fccf0808c00] New audio stream 0:1 at pos:216156 and
 DTS:3.904s
 [h264 @ 0x7fccf2025600] illegal modification_of_pic_nums_idc 16
 [h264 @ 0x7fccf2025600] decode_slice_header error
 [h264 @ 0x7fccf2025600] no frame!
 [h264 @ 0x7fccf203ba00] illegal modification_of_pic_nums_idc 14
 [h264 @ 0x7fccf203ba00] decode_slice_header error
 [h264 @ 0x7fccf203ba00] no frame!
 Error while decoding stream #0:0: Invalid data found when processing input
 [h264 @ 0x7fccf1808000] illegal modification_of_pic_nums_idc 24
 [h264 @ 0x7fccf1808000] decode_slice_header error
 [h264 @ 0x7fccf1808000] no frame!
 Error while decoding stream #0:0: Invalid data found when processing input
     Last message repeated 1 times
 [h264 @ 0x7fccf181e400] illegal modification_of_pic_nums_idc 14
 [h264 @ 0x7fccf181e400] decode_slice_header error
 [h264 @ 0x7fccf181e400] no frame!
 Error while decoding stream #0:0: Invalid data found when processing input
 [h264 @ 0x7fccf2019800] illegal modification_of_pic_nums_idc 14
 [h264 @ 0x7fccf2019800] decode_slice_header error
 [h264 @ 0x7fccf2019800] no frame!
 Error while decoding stream #0:0: Invalid data found when processing input
 [h264 @ 0x7fccf2025600] illegal modification_of_pic_nums_idc 26
 [h264 @ 0x7fccf2025600] decode_slice_header error
 [h264 @ 0x7fccf2025600] no frame!
 [h264 @ 0x7fccf203ba00] illegal modification_of_pic_nums_idc 14
 [h264 @ 0x7fccf203ba00] decode_slice_header error
 [h264 @ 0x7fccf203ba00] no frame!
 Error while decoding stream #0:0: Invalid data found when processing input
     Last message repeated 1 times
 [h264 @ 0x7fccf1808000] illegal modification_of_pic_nums_idc 14
 [h264 @ 0x7fccf1808000] decode_slice_header error
 [h264 @ 0x7fccf1808000] no frame!
 Error while decoding stream #0:0: Invalid data found when processing input
 [h264 @ 0x7fccf181e400] illegal modification_of_pic_nums_idc 26
 [h264 @ 0x7fccf181e400] decode_slice_header error
 [h264 @ 0x7fccf181e400] no frame!
 [h264 @ 0x7fccf2019800] illegal modification_of_pic_nums_idc 14
 [h264 @ 0x7fccf2019800] decode_slice_header error
 [h264 @ 0x7fccf2019800] no frame!
 Error while decoding stream #0:0: Invalid data found when processing input
 [h264 @ 0x7fccf2025600] illegal modification_of_pic_nums_idc 14
 [h264 @ 0x7fccf2025600] decode_slice_header error
 [h264 @ 0x7fccf2025600] no frame!
 Error while decoding stream #0:0: Invalid data found when processing input
     Last message repeated 1 times
 [h264 @ 0x7fccf203ba00] top block unavailable for requested intra mode -1
 [h264 @ 0x7fccf203ba00] error while decoding MB 0 0, bytestream 126059
 [h264 @ 0x7fccf203ba00] concealing 3600 DC, 3600 AC, 3600 MV errors in I
 frame
 [h264 @ 0x7fccf1808000] illegal modification_of_pic_nums_idc 26
 [h264 @ 0x7fccf1808000] decode_slice_header error
 [h264 @ 0x7fccf1808000] no frame!
 Error while decoding stream #0:0: Invalid data found when processing input
 [h264 @ 0x7fccf181e400] illegal modification_of_pic_nums_idc 14
 [h264 @ 0x7fccf181e400] decode_slice_header error
 [h264 @ 0x7fccf181e400] no frame!
 Error while decoding stream #0:0: Invalid data found when processing input
 [h264 @ 0x7fccf2019800] illegal modification_of_pic_nums_idc 22
 [h264 @ 0x7fccf2019800] decode_slice_header error
 [h264 @ 0x7fccf2019800] no frame!
 Error while decoding stream #0:0: Invalid data found when processing input
 [h264 @ 0x7fccf2025600] illegal modification_of_pic_nums_idc 10
 [h264 @ 0x7fccf2025600] decode_slice_header error
 [h264 @ 0x7fccf2025600] no frame!
 Error while decoding stream #0:0: Invalid data found when processing input
 [h264 @ 0x7fccf203ba00] illegal modification_of_pic_nums_idc 8
 [h264 @ 0x7fccf203ba00] decode_slice_header error
 [h264 @ 0x7fccf203ba00] no frame!
 [h264 @ 0x7fccf1808000] illegal modification_of_pic_nums_idc 22
 [h264 @ 0x7fccf1808000] decode_slice_header error
 [h264 @ 0x7fccf1808000] no frame!
 Error while decoding stream #0:0: Invalid data found when processing input
 [h264 @ 0x7fccf181e400] illegal modification_of_pic_nums_idc 12
 [h264 @ 0x7fccf181e400] decode_slice_header error
 [h264 @ 0x7fccf181e400] no frame!
 Error while decoding stream #0:0: Invalid data found when processing input
 [h264 @ 0x7fccf2019800] illegal modification_of_pic_nums_idc 10
 [h264 @ 0x7fccf2019800] decode_slice_header error
 [h264 @ 0x7fccf2019800] no frame!
 Error while decoding stream #0:0: Invalid data found when processing input
 [h264 @ 0x7fccf2025600] illegal modification_of_pic_nums_idc 22
 [h264 @ 0x7fccf2025600] decode_slice_header error
 [h264 @ 0x7fccf2025600] no frame!
 Error while decoding stream #0:0: Invalid data found when processing input
     Last message repeated 1 times
 [h264 @ 0x7fccf203ba00] illegal modification_of_pic_nums_idc 10
 [h264 @ 0x7fccf203ba00] decode_slice_header error
 [h264 @ 0x7fccf203ba00] no frame!
 [h264 @ 0x7fccf1808000] illegal modification_of_pic_nums_idc 12
 [h264 @ 0x7fccf1808000] decode_slice_header error
 [h264 @ 0x7fccf1808000] no frame!
 Error while decoding stream #0:0: Invalid data found when processing input
     Last message repeated 1 times
 [h264 @ 0x7fccf181e400] illegal modification_of_pic_nums_idc 20
 [h264 @ 0x7fccf181e400] decode_slice_header error
 [h264 @ 0x7fccf181e400] no frame!
 [h264 @ 0x7fccf2019800] illegal modification_of_pic_nums_idc 10
 Error while decoding stream #0:0: Invalid data found when processing input
 [h264 @ 0x7fccf2019800] decode_slice_header error
 [h264 @ 0x7fccf2019800] no frame!
 Error while decoding stream #0:0: Invalid data found when processing input
 [h264 @ 0x7fccf2025600] illegal modification_of_pic_nums_idc 6
 [h264 @ 0x7fccf2025600] decode_slice_header error
 [h264 @ 0x7fccf2025600] no frame!
 Error while decoding stream #0:0: Invalid data found when processing input
 [h264 @ 0x7fccf203ba00] left block unavailable for requested intra4x4 mode
 -1
 [h264 @ 0x7fccf203ba00] error while decoding MB 0 0, bytestream 116021
 [h264 @ 0x7fccf203ba00] concealing 3600 DC, 3600 AC, 3600 MV errors in I
 frame
 [h264 @ 0x7fccf1808000] illegal modification_of_pic_nums_idc 26
 [h264 @ 0x7fccf1808000] decode_slice_header error
 [h264 @ 0x7fccf1808000] no frame!
 Error while decoding stream #0:0: Invalid data found when processing input
 [h264 @ 0x7fccf181e400] illegal modification_of_pic_nums_idc 16
 [h264 @ 0x7fccf181e400] decode_slice_header error
 [h264 @ 0x7fccf181e400] no frame!
 Error while decoding stream #0:0: Invalid data found when processing input
 frame=  333 fps=165 q=29.0 size=     129kB time=00:00:09.34 bitrate=
 113.4kbits/s dup=214 drop=0 speed=4.62x  Error while decoding stream #0:0:
 Invalid data found when processing input
 frame=  371 fps=143 q=29.0 size=     131kB time=00:00:10.61 bitrate=
 101.4kbits/s dup=251 drop=0 speed=4.09x  frame=  405 fps=131 q=-1.0 Lsize=
 141kB time=00:00:13.41 bitrate=  86.3kbits/s dup=285 drop=0 speed=4.33x
 video:136kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 4.091612%
 [libx264 @ 0x7fccf2010200] frame I:2     Avg QP:14.28  size: 56781
 [libx264 @ 0x7fccf2010200] frame P:102   Avg QP:17.83  size:    81
 [libx264 @ 0x7fccf2010200] frame B:301   Avg QP:32.31  size:    55
 [libx264 @ 0x7fccf2010200] consecutive B-frames:  0.7%  0.5%  0.0% 98.8%
 [libx264 @ 0x7fccf2010200] mb I  I16..4:  6.6% 67.1% 26.4%
 [libx264 @ 0x7fccf2010200] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  0.4%
 0.0%  0.0%  0.0%  0.0%    skip:99.6%
 [libx264 @ 0x7fccf2010200] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.5%
 0.0%  0.0%  direct: 0.0%  skip:99.5%  L0:37.3% L1:62.7% BI: 0.0%
 [libx264 @ 0x7fccf2010200] 8x8 transform intra:67.2% inter:94.1%
 [libx264 @ 0x7fccf2010200] coded y,uvDC,uvAC intra: 69.5% 46.9% 30.1%
 inter: 0.0% 0.1% 0.0%
 [libx264 @ 0x7fccf2010200] i16 v,h,dc,p: 21% 31% 11% 36%
 [libx264 @ 0x7fccf2010200] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 26% 13%  4%
 4%  5%  4%  5%  6%
 [libx264 @ 0x7fccf2010200] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 45% 20%  7%  5%
 5%  6%  4%  6%  3%
 [libx264 @ 0x7fccf2010200] i8c dc,h,v,p: 61% 15% 20%  4%
 [libx264 @ 0x7fccf2010200] Weighted P-Frames: Y:0.0% UV:0.0%
 [libx264 @ 0x7fccf2010200] ref P L0: 76.7%  0.1%  8.4% 14.7%
 [libx264 @ 0x7fccf2010200] ref B L0: 51.6% 48.1%  0.3%
 [libx264 @ 0x7fccf2010200] ref B L1: 98.4%  1.6%
 [libx264 @ 0x7fccf2010200] kb/s:81.92
 }}}

 Again, it seems to produce a 13.4 second mp4 (or 13.5 if we go by
 ffprobe), and this time VLC plays the still for 13 seconds, but does not
 show the video. Here's the ffprobe of the above:

 {{{
 pb3:test jhawk$ ffprobe concat4t.mp4
 ffprobe version git-2017-02-19-3206ea4 Copyright (c) 2007-2017 the FFmpeg
 developers
   built with Apple LLVM version 7.0.2 (clang-700.1.81)
   configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-3206ea4 --enable-
 shared --enable-pthreads --enable-gpl --enable-version3 --enable-
 hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-
 ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-
 opencl --disable-lzma --enable-vda
   libavutil      55. 47.100 / 55. 47.100
   libavcodec     57. 80.101 / 57. 80.101
   libavformat    57. 66.102 / 57. 66.102
   libavdevice    57.  2.100 / 57.  2.100
   libavfilter     6. 73.100 /  6. 73.100
   libavresample   3.  2.  0 /  3.  2.  0
   libswscale      4.  3.101 /  4.  3.101
   libswresample   2.  4.100 /  2.  4.100
   libpostproc    54.  2.100 / 54.  2.100
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'concat4t.mp4':
   Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     encoder         : Lavf57.66.102
   Duration: 00:00:13.51, start: 0.000000, bitrate: 85 kb/s
     Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
 1280x720, 82 kb/s, 29.97 fps, 29.97 tbr, 11988 tbn, 59.94 tbc (default)
     Metadata:
       handler_name    : VideoHandler
 }}}

 Swapping the order of concatenation also does not resolve it -- then I get
 1 second of video and VLC stops,  with no frame hold.

 Thanks!

--
Ticket URL: <https://trac.ffmpeg.org/ticket/6163#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list