[FFmpeg-trac] #5672(ffmpeg:new): concat demuxer truncates output duration
FFmpeg
trac at avcodec.org
Tue Jun 28 00:45:25 CEST 2016
#5672: concat demuxer truncates output duration
----------------------------------------+----------------------------------
Reporter: jseeley78 | Type: defect
Status: new | Priority: normal
Component: ffmpeg | Version: 3.0.2
Keywords: concat demuxer | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
----------------------------------------+----------------------------------
Summary of the bug:
The Concat demuxer is truncating output; I didn't start seeing this until
moving to version 3.0.2. Normally I'm joining multiple files, but for
simplicity the steps below are using the concat demuxer with a single
file. The source file is about 90secs, but after running via the concat
demuxer the output is only 7secs. ffmpeg lists the error 'concat.txt:
Invalid argument' however I am getting a 0 exit code.
How to reproduce:
{{{
ffmpeg -f concat -i concat.txt -c copy -y output.flv
ffmpeg version 3.0.2 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.9.2 (Debian 4.9.2-10)
configuration: --prefix=/usr --extra-version=streamme --build-
suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu
--incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --disable-debug
--disable-shared --enable-static --extra-cflags=--static --enable-gpl
--disable-stripping --disable-decoder=libopenjpeg --disable-
decoder=libschroedinger --enable-avresample --enable-avisynth --enable-
gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b
--enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig
--enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm
--enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-
openal --enable-libopus --enable-libpulse --enable-librtmp --enable-
libschroedinger --enable-libshine --enable-libsnappy --enable-libspeex
--enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265
--enable-libxvid --enable-libzvbi --enable-opengl --enable-nonfree
--enable-libfdk-aac --enable-libx264 --enable-x11grab --enable-libdc1394
--enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264
--enable-libopencv
libavutil 55. 17.103 / 55. 17.103
libavcodec 57. 24.102 / 57. 24.102
libavformat 57. 25.100 / 57. 25.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 31.100 / 6. 31.100
libavresample 3. 0. 0 / 3. 0. 0
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
[flv @ 0x3a72620] Auto-inserting h264_mp4toannexb bitstream filter
Input #0, concat, from 'concat.txt':
Duration: N/A, start: 0.000000, bitrate: 3 kb/s
Stream #0:0: Video: h264 (Baseline), yuv420p(tv), 640x360 [SAR 1:1 DAR
16:9], 30.30 fps, 30 tbr, 1k tbn, 60 tbc
Stream #0:1: Audio: speex, 16000 Hz, mono, s16, 3 kb/s
Output #0, flv, to 'output.flv':
Metadata:
encoder : Lavf57.25.100
Stream #0:0: Video: h264 ([7][0][0][0] / 0x0007), yuv420p, 640x360
[SAR 1:1 DAR 16:9], q=2-31, 30.30 fps, 30 tbr, 1k tbn, 1k tbc
Stream #0:1: Audio: speex ([11][0][0][0] / 0x000B), 16000 Hz, mono, 3
kb/s
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
concat.txt: Invalid argument
frame= 150 fps=0.0 q=-1.0 Lsize= 712kB time=00:00:07.37 bitrate=
791.0kbits/s speed= 186x
video:702kB audio:4kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.923229%
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/5672>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list