[FFmpeg-user] Concat limited to certain file types?

Jan Ehrhardt phpdev at ehrhardt.nl
Tue Oct 16 16:40:16 CEST 2012


Is the concat protocol limited to certain filetypes?

I am trying to transcode and join 2 MP4 files, recorded
by a Panasonic HC-V10 camcorder.

Source files:
http://x32.elijst.nl/S1000001.MP4 
http://x32.elijst.nl/S1000002.MP4

Commandline:
ffmpeg.exe -i concat:"S1000001.MP4|S1000002.MP4" -vf scale=384:288 \
	-aspect 4:3 -sws_flags bicubic -vcodec libx264 \
	-b 320k -r 25 -strict -2 -acodec aac -ab 96k -ar 48000 -ac 2 \
	-x264opts
global_header=1:partitions=p8x8+b8x8+i8x8:level_idc=30:cabac=0:subq=3:qp_min=0:qp_max=51:qp_step=4:me=dia:subme=0:mixed_refs=0:me_range=16:chroma_me=1:trellis=0:8x8dct=0:cqm=flat:chroma_qp_offset=0:nr=0:keyint=25:min_keyint=12:scenecut=0:ratetol=1.0:qcomp=0.60:ip_factor=1.4:weightp=0:fast_pskip=1:frameref=1:bframes=0:mbtree=1:rc_lookahead=15:sliced_threads=0:threads=8\
	mp4concat-ffmpeg.mp4 

Output:
http://x32.elijst.nl/mp4concat-ffmpeg.mp4
The output is byte by byte identical to a transcode of the
first file alone. FFmpeg just stops after the first one.

If I transcode the files one by one all goes as expected.
Is there any way to do a concat on these MP4 files?

Complete and uncut output follows below.

Jan


Using the latest Zeranoe 32-bit static build:

ffmpeg version N-45279-g1a104bf Copyright (c) 2000-2012 the FFmpeg developers
  built on Oct 10 2012 19:19:16 with gcc 4.7.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype
--enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
--enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      51. 74.100 / 51. 74.100
  libavcodec     54. 65.100 / 54. 65.100
  libavformat    54. 31.100 / 54. 31.100
  libavdevice    54.  3.100 / 54.  3.100
  libavfilter     3. 19.102 /  3. 19.102
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 16.100 /  0. 16.100
  libpostproc    52.  1.100 / 52.  1.100
[h264 @ 0231bbe0] AVC: nal size 29034
[h264 @ 0231bbe0] no frame!
[h264 @ 0231bbe0] AVC: nal size -1922622160
[h264 @ 0231bbe0] no frame!
[h264 @ 0231bbe0] AVC: nal size -531498059
[h264 @ 0231bbe0] no frame!
[h264 @ 0231bbe0] AVC: nal size -168804334
[h264 @ 0231bbe0] no frame!
[h264 @ 0231bbe0] AVC: nal size 1650737613
[h264 @ 0231bbe0] no frame!
[h264 @ 0231bbe0] AVC: nal size 8388608
[h264 @ 0231bbe0] no frame!
[h264 @ 0231bbe0] AVC: nal size -862150784
[h264 @ 0231bbe0] no frame!
[h264 @ 0231bbe0] AVC: nal size 2126981594
[h264 @ 0231bbe0] no frame!
[h264 @ 0231bbe0] AVC: nal size 1344536332
[h264 @ 0231bbe0] no frame!
[h264 @ 0231bbe0] AVC: nal size -1077805632
[h264 @ 0231bbe0] no frame!
[h264 @ 0231bbe0] AVC: nal size -77514979
[h264 @ 0231bbe0] no frame!
[h264 @ 0231bbe0] AVC: nal size 135200853
[h264 @ 0231bbe0] no frame!
[h264 @ 0231bbe0] AVC: nal size 820139573
[h264 @ 0231bbe0] no frame!
[h264 @ 0231bbe0] AVC: nal size 259299403
[h264 @ 0231bbe0] no frame!
[h264 @ 0231bbe0] AVC: nal size 1476381464
[h264 @ 0231bbe0] no frame!
[h264 @ 0231bbe0] AVC: nal size -1347386985
[h264 @ 0231bbe0] no frame!
[h264 @ 0231bbe0] AVC: nal size -1613502833
[h264 @ 0231bbe0] no frame!
[h264 @ 0231bbe0] AVC: nal size -2069083297
[h264 @ 0231bbe0] no frame!
[h264 @ 0231bbe0] AVC: nal size -229004721
[h264 @ 0231bbe0] no frame!
[h264 @ 0231bbe0] AVC: nal size 942723670
[h264 @ 0231bbe0] no frame!
[h264 @ 0231bbe0] AVC: nal size -573046408
[h264 @ 0231bbe0] no frame!
[h264 @ 0231bbe0] AVC: nal size 1414228237
[h264 @ 0231bbe0] no frame!
[h264 @ 0231bbe0] AVC: nal size 250171837
[h264 @ 0231bbe0] no frame!
[h264 @ 0231bbe0] AVC: nal size -986042530
[h264 @ 0231bbe0] no frame!
[h264 @ 0231bbe0] AVC: nal size -1035486555
[h264 @ 0231bbe0] no frame!
[aac @ 02308700] channel element 3.12 is not allocated
[h264 @ 0231bbe0] AVC: nal size 14394
[h264 @ 0231bbe0] AVC: nal size 1637483542
[h264 @ 0231bbe0] no frame!
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'concat:S1000001.MP4|S1000002.MP4':
  Metadata:
    minor_version   : 1
    major_brand     : mp42
    compatible_brands: mp42avc1
  Duration: 00:00:05.00, start: 0.000000, bitrate: 20761 kb/s
    Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 6121 kb/s, 50 fps, 50 tbr, 60k tbn, 100 tbc
    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, s16, 246 kb/s
    Stream #0:2(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 6170 kb/s, 50 fps, 50 tbr, 60k tbn, 100 tbc
    Stream #0:3(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, s16, 237 kb/s
[libx264 @ 04aac580] using SAR=1/1
[libx264 @ 04aac580] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
[libx264 @ 04aac580] profile Constrained Baseline, level 3.0
[libx264 @ 04aac580] 264 - core 128 r2216 198a7ea - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=1:0:0 analyse=0x1:0x110 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16
chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=25 keyint_min=12 scenecut=0
intra_refresh=0 rc_lookahead=15 rc=abr mbtree=1 bitrate=320 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=51 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'mp4concat-ffmpeg.mp4':
  Metadata:
    minor_version   : 1
    major_brand     : mp42
    compatible_brands: mp42avc1
    encoder         : Lavf54.31.100
    Stream #0:0(eng): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 384x288 [SAR 1:1 DAR 4:3], q=-1--1, 320 kb/s, 12800 tbn, 25 tbc
    Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp, 96 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> libx264)
  Stream #0:1 -> #0:1 (aac -> aac)
Press [q] to stop, [?] for help
frame=  101 fps=0.0 q=36.0 size=     164kB time=00:00:03.58 bitrate= 374.4kbits/s dup=0 drop=95    
frame=  194 fps=191 q=36.0 size=     369kB time=00:00:07.44 bitrate= 405.6kbits/s dup=0 drop=189    
frame=  253 fps=187 q=-1.0 Lsize=     548kB time=00:00:10.12 bitrate= 444.0kbits/s dup=0 drop=247    

video:424kB audio:118kB subtitle:0 global headers:0kB muxing overhead 1.256829%
[libx264 @ 04aac580] frame I:11    Avg QP:29.93  size:  8024
[libx264 @ 04aac580] frame P:242   Avg QP:33.91  size:  1426
[libx264 @ 04aac580] mb I  I16..4: 29.5%  0.0% 70.5%
[libx264 @ 04aac580] mb P  I16..4:  3.0%  0.0%  0.0%  P16..4: 40.2% 11.0%  1.4%  0.0%  0.0%    skip:44.4%
[libx264 @ 04aac580] final ratefactor: 30.56
[libx264 @ 04aac580] coded y,uvDC,uvAC intra: 46.3% 46.8% 22.6% inter: 15.3% 8.2% 0.1%
[libx264 @ 04aac580] i16 v,h,dc,p: 27% 38% 17% 18%
[libx264 @ 04aac580] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 25% 14%  9%  5%  5%  7%  5%  7%
[libx264 @ 04aac580] i8c dc,h,v,p: 50% 21% 22%  7%
[libx264 @ 04aac580] kb/s:342.58



More information about the ffmpeg-user mailing list