[FFmpeg-user] Concatenating MP4 Problems

Young Kim shadowing71 at gmail.com
Tue Nov 6 01:36:36 CET 2012


Hello,

I'm attempting to concatenate MP4 videos through ffmpeg. The command output is shown below. I've tried variations of the filter_complex including the map version shown in the FAQ, but I keep on getting the same error. Any suggestions?

[ykim at ykim ~]$ /home/ykim/encodebuild/bin/ffmpeg -i /home/ykim/assets/pre_roll.mp4 -i /home/ykim/video.mp4 -i /home/ykim/assets/post_roll.mp4 -filter_complex concat=n=3:v=1:a=1 test3.mp4

ffmpeg version N-46272-gbacebe1 Copyright (c) 2000-2012 the FFmpeg developers
  built on Nov  2 2012 15:03:17 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4)
  configuration: --prefix=/home/ykim/encodebuild --enable-runtime-cpudetect --disable-debug --disable-ffserver --disable-ffplay --disable-ffprobe --disable-shared --enable-libfaac --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-libass --enable-libfreetype --enable-gpl --enable-nonfree --extra-libs='-lfontconfig -lfreetype -lexpat -lenca -lfribidi'
  libavutil      52.  1.100 / 52.  1.100
  libavcodec     54. 70.100 / 54. 70.100
  libavformat    54. 35.100 / 54. 35.100
  libavdevice    54.  3.100 / 54.  3.100
  libavfilter     3. 21.106 /  3. 21.106
  libswscale      2.  1.102 /  2.  1.102
  libswresample   0. 16.100 /  0. 16.100
  libpostproc    52.  1.100 / 52.  1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/ykim/assets/pre_roll.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isomavc1
    creation_time   : 2012-11-06 00:11:53
  Duration: 00:00:03.88, start: 0.000000, bitrate: 894 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 848x480 [SAR 107:106 DAR 107:60], 799 kb/s, 29.97 fps, 29.97 tbr, 11988 tbn, 59.94 tbc
    Metadata:
      creation_time   : 2012-11-06 00:11:53
      handler_name    : video.h264 - Imported with GPAC 0.4.6-DEV (internal rev. 8)
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 95 kb/s
    Metadata:
      creation_time   : 2012-11-06 00:11:53
      handler_name    : GPAC ISO Audio Handler
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/home/ykim/video.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf54.35.100
  Duration: 00:02:00.12, start: 0.023220, bitrate: 554 kb/s
    Stream #1:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 848x480 [SAR 427:424 DAR 427:240], 420 kb/s, 23.98 fps, 23.98 tbr, 11988 tbn, 47.95 tbc
    Metadata:
      handler_name    : VideoHandler
    Stream #1:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 127 kb/s
    Metadata:
      handler_name    : SoundHandler
Input #2, mov,mp4,m4a,3gp,3g2,mj2, from '/home/ykim/assets/post_roll.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isomavc1
    creation_time   : 2012-11-06 00:09:54
  Duration: 00:00:03.88, start: 0.000000, bitrate: 898 kb/s
    Stream #2:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 848x480 [SAR 107:106 DAR 107:60], 803 kb/s, 29.97 fps, 29.97 tbr, 11988 tbn, 59.94 tbc
    Metadata:
      creation_time   : 2012-11-06 00:09:54
      handler_name    : video.h264 - Imported with GPAC 0.4.6-DEV (internal rev. 8)
    Stream #2:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 95 kb/s
    Metadata:
      creation_time   : 2012-11-06 00:09:54
      handler_name    : GPAC ISO Audio Handler
File 'test3.mp4' already exists. Overwrite ? [y/N] y
Input link in1:v0 parameters (size 848x480, SAR 427:424) do not match the corresponding output link in0:v0 parameters (848x480, SAR 107:106)
[Parsed_concat_0 @ 0x38d9980] Failed to configure output pad on Parsed_concat_0


Thanks,
Young Kim



More information about the ffmpeg-user mailing list