[FFmpeg-user] concat output defect

Micael Silva micaelsilva at gmail.com
Mon Jun 3 21:15:02 EEST 2019


On Mon, Jun 3, 2019 at 2:55 PM Felix Muster via ffmpeg-user <
ffmpeg-user at ffmpeg.org> wrote:

> Hello,
>
> I'm trying to concat two videos.
> The output is defect, but only the second part (stripes across the frame
> see
> here https://i.imgur.com/UY8R9JV.png) first is fine.
>
> ffmpeg-log:
> ffmpeg version N-93981-g0b7bfa8ad7 Copyright (c) 2000-2019 the FFmpeg
> developers
>   built with gcc 8.3.1 (GCC) 20190414
>   configuration: --enable-gpl --enable-version3 --enable-sdl2
> --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass
> --enable-libdav1d --enable-libbluray --enable-libfreetype
> --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
> --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy
> --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx
> --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265
> --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp
> --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc
> --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom
> --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid
> --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2
> --enable-avisynth --enable-libopenmpt
>   libavutil      56. 28.100 / 56. 28.100
>   libavcodec     58. 52.102 / 58. 52.102
>   libavformat    58. 27.103 / 58. 27.103
>   libavdevice    58.  7.100 / 58.  7.100
>   libavfilter     7. 55.100 /  7. 55.100
>   libswscale      5.  4.101 /  5.  4.101
>   libswresample   3.  4.100 /  3.  4.100
>   libpostproc    55.  4.100 / 55.  4.100
> [matroska,webm @ 000000000046a800] Auto-inserting h264_mp4toannexb
> bitstream
> filter
> Input #0, concat, from 'mylist.txt':
>   Duration: N/A, start: 0.000000, bitrate: N/A
>     Stream #0:0(eng): Video: h264 (High), yuv420p(tv, bt709, progressive),
> 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 20k tbn, 50 tbc
> Output #0, matroska, to 'test.mkv':
>   Metadata:
>     encoder         : Lavf58.27.103
>     Stream #0:0(eng): Video: h264 (High) (H264 / 0x34363248), yuv420p(tv,
> bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 25 tbr,
> 1k tbn, 20k tbc
> Stream mapping:
>   Stream #0:0 -> #0:0 (copy)
> Press [q] to stop, [?] for help
> [matroska,webm @ 00000000023c9800] Auto-inserting h264_mp4toannexb
> bitstream
> filter
> video:29430401kB audio:0kB subtitle:0kB other streams:0kB global
> headers:0kB
> muxing overhead: 0.013187%
>
>
>
> Part1:
> General
> Complete name                            :
> C:\Users\Felix\Downloads\Lossless\Movies\Test\temp1.mkv
> Format                                   : Matroska
> Format version                           : Version 2
> File size                                : 14.0 GiB
> Duration                                 : 1 h 27 min
> Overall bit rate mode                    : Variable
> Overall bit rate                         : 22.9 Mb/s
> Writing application                      : x264 r2935 545de2f
> Writing library                          : Haali Matroska Writer b0
>
> Video
> ID                                       : 1
> Format                                   : AVC
> Format/Info                              : Advanced Video Codec
> Format profile                           : High at L4.1
> Format settings                          : CABAC / 3 Ref Frames
> Format settings, CABAC                   : Yes
> Format settings, RefFrames               : 3 frames
> Codec ID                                 : V_MPEG4/ISO/AVC
> Duration                                 : 1 h 27 min
> Bit rate mode                            : Variable
> Bit rate                                 : 23.0 Mb/s
> Maximum bit rate                         : 40.0 Mb/s
> Width                                    : 1 920 pixels
> Height                                   : 1 080 pixels
> Display aspect ratio                     : 16:9
> Frame rate mode                          : Constant
> Frame rate                               : 25.000 FPS
> Color space                              : YUV
> Chroma subsampling                       : 4:2:0
> Bit depth                                : 8 bits
> Scan type                                : Progressive
> Bits/(Pixel*Frame)                       : 0.443
> Stream size                              : 13.8 GiB (98%)
> Writing library                          : x264 core 157 r2935 545de2f
> Encoding settings                        : cabac=1 / ref=4 /
> deblock=1:-1:-1
> / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.15 /
> mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 /
> deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=6 /
> lookahead_threads=1 / sliced_threads=0 / slices=4 / nr=0 / decimate=1 /
> interlaced=0 / bluray_compat=1 / constrained_intra=0 / bframes=3 /
> b_pyramid=1 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=1 /
> weightp=1 / keyint=25 / keyint_min=1 / scenecut=40 / intra_refresh=0 /
> rc_lookahead=25 / rc=2pass / mbtree=1 / bitrate=22951 / ratetol=1.0 /
> qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 /
> vbv_maxrate=40000 / vbv_bufsize=30000 / nal_hrd=vbr / filler=0 /
> ip_ratio=1.40 / aq=1:1.00
> Language                                 : English
> Default                                  : Yes
> Forced                                   : No
> Color range                              : Limited
> Color primaries                          : BT.709
> Transfer characteristics                 : BT.709
> Matrix coefficients                      : BT.709
>
>
>
> Part2:
> General
> Complete name                            :
> C:\Users\Felix\Downloads\Lossless\Movies\Test\temp2.mkv
> Format                                   : Matroska
> Format version                           : Version 2
> File size                                : 14.0 GiB
> Duration                                 : 1 h 27 min
> Overall bit rate mode                    : Variable
> Overall bit rate                         : 22.9 Mb/s
> Writing application                      : x264 r2935 545de2f
> Writing library                          : Haali Matroska Writer b0
>
> Video
> ID                                       : 1
> Format                                   : AVC
> Format/Info                              : Advanced Video Codec
> Format profile                           : High at L4.1
> Format settings                          : CABAC / 3 Ref Frames
> Format settings, CABAC                   : Yes
> Format settings, RefFrames               : 3 frames
> Codec ID                                 : V_MPEG4/ISO/AVC
> Duration                                 : 1 h 27 min
> Bit rate mode                            : Variable
> Bit rate                                 : 23.0 Mb/s
> Maximum bit rate                         : 40.0 Mb/s
> Width                                    : 1 920 pixels
> Height                                   : 1 080 pixels
> Display aspect ratio                     : 16:9
> Frame rate mode                          : Constant
> Frame rate                               : 25.000 FPS
> Color space                              : YUV
> Chroma subsampling                       : 4:2:0
> Bit depth                                : 8 bits
> Scan type                                : Progressive
> Bits/(Pixel*Frame)                       : 0.443
> Stream size                              : 13.8 GiB (98%)
> Writing library                          : x264 core 157 r2935 545de2f
> Encoding settings                        : cabac=1 / ref=4 /
> deblock=1:-1:-1
> / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.15 /
> mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 /
> deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=6 /
> lookahead_threads=1 / sliced_threads=0 / slices=4 / nr=0 / decimate=1 /
> interlaced=0 / bluray_compat=1 / constrained_intra=0 / bframes=3 /
> b_pyramid=1 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=1 /
> weightp=1 / keyint=25 / keyint_min=1 / scenecut=40 / intra_refresh=0 /
> rc_lookahead=25 / rc=2pass / mbtree=1 / bitrate=22952 / ratetol=1.0 /
> qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 /
> vbv_maxrate=40000 / vbv_bufsize=30000 / nal_hrd=vbr / filler=0 /
> ip_ratio=1.40 / aq=1:1.00
> Language                                 : English
> Default                                  : Yes
> Forced                                   : No
> Color range                              : Limited
> Color primaries                          : BT.709
> Transfer characteristics                 : BT.709
> Matrix coefficients                      : BT.709
>
>
>
> Best
> Felix
>
>
>From my own experience the concat input demuxer only works with conteiners
without global header like TS or MPEG. Other formats must use the concat
filter.


More information about the ffmpeg-user mailing list