[FFmpeg-user] Video concatenation not working.

ನಾಗೇಶ್ ಸುಬ್ರಹ್ಮಣ್ಯ (Nagesh S) nageshblore at gmail.com
Fri Dec 6 22:42:54 CET 2013


Hi,
I have two mp4 files that I am trying to concatenate with the demuxer. The
resulting video is just a blank green screen with some flicker here and
there. What am I missing ?

The list.txt does have the two video files I wish to concatenate. If it
helps, the first one is a video generated out of a png image.

Here is the command and result:

user at host:~/mp4$ ffmpeg -f concat -i list.txt -c copy output.mp4
ffmpeg version git-2013-12-01-975110a Copyright (c) 2000-2013 the FFmpeg
developers
  built on Dec  2 2013 02:23:37 with gcc 4.8 (Ubuntu/Linaro 4.8.1-10ubuntu9)
  configuration: --prefix=/home/user/ffmpeg_build
--extra-cflags=-I/home/user/ffmpeg_build/include
--extra-ldflags=-L/home/user/ffmpeg_build/lib --bindir=/home/user/bin
--extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac
--enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis
--enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab
  libavutil      52. 56.100 / 52. 56.100
  libavcodec     55. 44.100 / 55. 44.100
  libavformat    55. 22.100 / 55. 22.100
  libavdevice    55.  5.102 / 55.  5.102
  libavfilter     3. 91.100 /  3. 91.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
[concat @ 0x2dca900] Estimating duration from bitrate, this may be
inaccurate
Input #0, concat, from 'list.txt':
  Duration: 00:00:00.00, start: 0.000000, bitrate: 2234 kb/s
    Stream #0:0: Video: h264 (High 4:4:4 Predictive) (avc1 / 0x31637661),
yuv444p, 720x486 [SAR 1:1 DAR 40:27], 2152 kb/s, 25 fps, 25 tbr, 12800 tbn,
50 tbc
Output #0, mp4, to 'output.mp4':
  Metadata:
    encoder         : Lavf55.22.100
    Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv444p, 720x486
[SAR 1:1 DAR 40:27], q=2-31, 2152 kb/s, 25 fps, 12800 tbn, 12800 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[concat @ 0x2dca900] Invalid stream index 1
    Last message repeated 5247 times
[concat @ 0x2dca900] Invalid stream index 1time=00:00:00.28
bitrate=51720.5kbits/s
    Last message repeated 4903 times
[concat @ 0x2dca900] Invalid stream index 1 time=00:00:00.55
bitrate=60579.8kbits/s
    Last message repeated 5426 times
[concat @ 0x2dca900] Invalid stream index 1 time=00:00:00.84
bitrate=72399.4kbits/s
    Last message repeated 5365 times
[concat @ 0x2dca900] Invalid stream index 1 time=00:00:01.13
bitrate=103296.4kbits/s
    Last message repeated 3800 times
frame= 8620 fps=3537 q=-1.0 Lsize=   19020kB time=00:00:01.34
bitrate=115698.0kbits/s
video:18985kB audio:0kB subtitle:0 global headers:0kB muxing overhead
0.186236%


More information about the ffmpeg-user mailing list