[FFmpeg-user] Concatenate mp4 file

frafart at free.fr frafart at free.fr
Fri Feb 21 11:54:18 CET 2014


Hello,

I want to concatenate 2 mp4 file, originated from an stream.

Here what I do :

- Generate TS file from an mpegts udp stream with ffmpeg segment (file001.ts and file002.ts).
- Convert this ts to mp4 (h264/aacplus) (file001.mp4 and file002.mp4)
- Concatenate this mp4 file :
  - Transform mp4 to ts (newsfile001.ts and newfile002.ts)
  - Concat TS to mp4 (file001_002.mp4).
(source http://trac.ffmpeg.org/wiki/How%20to%20concatenate%20(join,%20merge)%20media%20files)

The resulting file001_002.mp4 has an audible problem at the merge point.

For testing purpose, I try this :
- cat the 2 TS file in one
- convert this new TS file with the same command
It's ok.

I think my problem is in the convertion ts->mp4 but I don't find it.

All file can be downloded here :
http://frafart.free.fr/ffmpeg/

Thank you if you can help me.
Fabrice.

Here the complet ffmpeg output :
  
$ ffmpeg -i udp://226.168.22.8:5000 -force_key_frames 1 -c:v copy -c:a copy -map 0 -f segment -segment_time 30.000 -segment_time_delta 0.005 file%03d.ts
ffmpeg version 2.1.1 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jan  3 2014 20:35:09 with gcc 4.7 (Debian 4.7.2-5)
  configuration: --prefix=/tmp/ffmpeg/nux/build --extra-cflags=-I/tmp/ffmpeg/nux/build/include --extra-ldflags=-L/tmp/ffmpeg/nux/build/lib --extra-libs=-ldl --enable-gpl --enable-libass --enable-libaacplus --enable-libx264 --enable-nonfree --enable-shared
  libavutil      52. 48.101 / 52. 48.101
  libavcodec     55. 39.101 / 55. 39.101
  libavformat    55. 19.104 / 55. 19.104
  libavdevice    55.  5.100 / 55.  5.100
  libavfilter     3. 90.100 /  3. 90.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
[mpeg2video @ 0x1e6ffc0] Invalid frame dimensions 0x0.
    Last message repeated 6 times
Input #0, mpegts, from 'udp://226.168.22.8:5000':
  Duration: N/A, start: 3063.562678, bitrate: 192 kb/s
  Program 515 
    Stream #0:0[0x140]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x14a](fra): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s
Output #0, segment, to 'file%03d.ts':
  Metadata:
    encoder         : Lavf55.19.104
    Stream #0:0: Video: mpeg2video ([2][0][0][0] / 0x0002), yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=2-31, max. 15000 kb/s, 25 fps, 90k tbn, 25 tbc
    Stream #0:1(fra): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, 192 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 2334 fps= 26 q=-1.0 Lsize=N/A time=00:01:33.70 bitrate=N/A    
video:46719kB audio:2194kB subtitle:0 global headers:0kB muxing overhead -100.000044%
Received signal 2: terminating.
$


$ ls -l 
total 53520
-rw-r--r-- 1 yacuser yacuser 18212688 Feb 21 11:19 file000.ts
-rw-r--r-- 1 yacuser yacuser 18386400 Feb 21 11:19 file001.ts
-rw-r--r-- 1 yacuser yacuser 15571476 Feb 21 11:20 file002.ts
-rw-r--r-- 1 yacuser yacuser  2628804 Feb 21 11:20 file003.ts
$ 


$ ffmpeg -i file001.ts -y -movflags +faststart -c:v libx264 -vf yadif=0:1:0,scale=-1:288 -vprofile baseline -preset fast -crf 18 -maxrate 450k -bufsize 450k -pix_fmt yuv420p -c:a libaacplus -ab 64k -ac 2 file001.mp4
ffmpeg version 2.1.1 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jan  3 2014 20:35:09 with gcc 4.7 (Debian 4.7.2-5)
  configuration: --prefix=/tmp/ffmpeg/nux/build --extra-cflags=-I/tmp/ffmpeg/nux/build/include --extra-ldflags=-L/tmp/ffmpeg/nux/build/lib --extra-libs=-ldl --enable-gpl --enable-libass --enable-libaacplus --enable-libx264 --enable-nonfree --enable-shared
  libavutil      52. 48.101 / 52. 48.101
  libavcodec     55. 39.101 / 55. 39.101
  libavformat    55. 19.104 / 55. 19.104
  libavdevice    55.  5.100 / 55.  5.100
  libavfilter     3. 90.100 /  3. 90.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mpegts, from 'file001.ts':
  Duration: 00:00:30.64, start: 30.024000, bitrate: 4801 kb/s
  Program 1 
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x101]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s
[libx264 @ 0x1c182c0] using SAR=64/45
[libx264 @ 0x1c182c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 0x1c182c0] profile Constrained Baseline, level 2.1
[libx264 @ 0x1c182c0] 264 - core 138 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=0 ref=2 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=6 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=36 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=30 rc=crf mbtree=1 crf=18.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=450 vbv_bufsize=450 crf_max=0.0 nal_hrd=none ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'file001.mp4':
  Metadata:
    encoder         : Lavf55.19.104
    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 360x288 [SAR 64:45 DAR 16:9], q=-1--1, max. 450 kb/s, 12800 tbn, 25 tbc
    Stream #0:1: Audio: aac (libaacplus) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, s16, 64 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video -> libx264)
  Stream #0:1 -> #0:1 (mp2 -> libaacplus)
Press [q] to stop, [?] for help
[mp4 @ 0x1c17d20] Starting second pass: moving the moov atom to the beginning of the filerop=0    
frame=  767 fps=165 q=-1.0 Lsize=    1810kB time=00:00:30.68 bitrate= 483.3kbits/s dup=3 drop=0    
video:1557kB audio:240kB subtitle:0 global headers:0kB muxing overhead 0.767159%
[libx264 @ 0x1c182c0] frame I:4     Avg QP:25.22  size: 23654
[libx264 @ 0x1c182c0] frame P:763   Avg QP:26.45  size:  1964
[libx264 @ 0x1c182c0] mb I  I16..4: 13.2%  0.0% 86.8%
[libx264 @ 0x1c182c0] mb P  I16..4:  0.2%  0.0%  0.3%  P16..4: 37.9% 11.2%  4.7%  0.0%  0.0%    skip:45.8%
[libx264 @ 0x1c182c0] coded y,uvDC,uvAC intra: 77.2% 79.6% 48.5% inter: 22.0% 17.2% 2.2%
[libx264 @ 0x1c182c0] i16 v,h,dc,p: 27% 31% 24% 18%
[libx264 @ 0x1c182c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 22% 17%  6%  6%  7%  5%  7%  6%
[libx264 @ 0x1c182c0] i8c dc,h,v,p: 49% 31% 16%  4%
[libx264 @ 0x1c182c0] ref P L0: 79.7% 20.3%
[libx264 @ 0x1c182c0] kb/s:415.43
$ 




$ ffmpeg -i file002.ts -y -movflags +faststart -c:v libx264 -vf yadif=0:1:0,scale=-1:288 -vprofile baseline -preset fast -crf 18 -maxrate 450k -bufsize 450k -pix_fmt yuv420p -c:a libaacplus -ab 64k -ac 2 file002.mp4
ffmpeg version 2.1.1 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jan  3 2014 20:35:09 with gcc 4.7 (Debian 4.7.2-5)
  configuration: --prefix=/tmp/ffmpeg/nux/build --extra-cflags=-I/tmp/ffmpeg/nux/build/include --extra-ldflags=-L/tmp/ffmpeg/nux/build/lib --extra-libs=-ldl --enable-gpl --enable-libass --enable-libaacplus --enable-libx264 --enable-nonfree --enable-shared
  libavutil      52. 48.101 / 52. 48.101
  libavcodec     55. 39.101 / 55. 39.101
  libavformat    55. 19.104 / 55. 19.104
  libavdevice    55.  5.100 / 55.  5.100
  libavfilter     3. 90.100 /  3. 90.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mpegts, from 'file002.ts':
  Duration: 00:00:29.75, start: 60.672000, bitrate: 4187 kb/s
  Program 1 
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x101]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s
[libx264 @ 0x7ed480] using SAR=64/45
[libx264 @ 0x7ed480] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 0x7ed480] profile Constrained Baseline, level 2.1
[libx264 @ 0x7ed480] 264 - core 138 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=0 ref=2 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=6 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=36 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=30 rc=crf mbtree=1 crf=18.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=450 vbv_bufsize=450 crf_max=0.0 nal_hrd=none ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'file002.mp4':
  Metadata:
    encoder         : Lavf55.19.104
    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 360x288 [SAR 64:45 DAR 16:9], q=-1--1, max. 450 kb/s, 12800 tbn, 25 tbc
    Stream #0:1: Audio: aac (libaacplus) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, s16, 64 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video -> libx264)
  Stream #0:1 -> #0:1 (mp2 -> libaacplus)
Press [q] to stop, [?] for help
[mp4 @ 0x7efea0] Starting second pass: moving the moov atom to the beginning of the filedrop=0    
frame=  745 fps=162 q=-1.0 Lsize=    1760kB time=00:00:29.80 bitrate= 483.7kbits/s dup=4 drop=0    
video:1513kB audio:233kB subtitle:0 global headers:0kB muxing overhead 0.768627%
[libx264 @ 0x7ed480] frame I:3     Avg QP:26.87  size: 25878
[libx264 @ 0x7ed480] frame P:742   Avg QP:27.55  size:  1983
[libx264 @ 0x7ed480] mb I  I16..4: 12.8%  0.0% 87.2%
[libx264 @ 0x7ed480] mb P  I16..4:  0.2%  0.0%  0.2%  P16..4: 38.9%  9.3%  4.1%  0.0%  0.0%    skip:47.3%
[libx264 @ 0x7ed480] coded y,uvDC,uvAC intra: 71.8% 72.5% 41.5% inter: 22.2% 15.9% 1.9%
[libx264 @ 0x7ed480] i16 v,h,dc,p: 34% 23% 26% 17%
[libx264 @ 0x7ed480] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 21% 18%  6%  5%  6%  6%  7%  6%
[libx264 @ 0x7ed480] i8c dc,h,v,p: 53% 27% 17%  3%
[libx264 @ 0x7ed480] ref P L0: 78.7% 21.3%
[libx264 @ 0x7ed480] kb/s:415.85
$ 



$ ffmpeg -i file001.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts new_file001.ts
ffmpeg version 2.1.1 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jan  3 2014 20:35:09 with gcc 4.7 (Debian 4.7.2-5)
  configuration: --prefix=/tmp/ffmpeg/nux/build --extra-cflags=-I/tmp/ffmpeg/nux/build/include --extra-ldflags=-L/tmp/ffmpeg/nux/build/lib --extra-libs=-ldl --enable-gpl --enable-libass --enable-libaacplus --enable-libx264 --enable-nonfree --enable-shared
  libavutil      52. 48.101 / 52. 48.101
  libavcodec     55. 39.101 / 55. 39.101
  libavformat    55. 19.104 / 55. 19.104
  libavdevice    55.  5.100 / 55.  5.100
  libavfilter     3. 90.100 /  3. 90.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file001.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf55.19.104
  Duration: 00:00:30.68, start: 0.000000, bitrate: 483 kb/s
    Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 360x288 [SAR 64:45 DAR 16:9], 415 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 64 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Output #0, mpegts, to 'new_file001.ts':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf55.19.104
    Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p, 360x288 [SAR 64:45 DAR 16:9], q=2-31, 415 kb/s, 25 fps, 90k tbn, 25 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, 64 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[adts @ 0xdf0060] Encoder did not produce proper pts, making some up.
frame=  767 fps=0.0 q=-1.0 Lsize=    2049kB time=00:00:30.68 bitrate= 547.0kbits/s    
video:1557kB audio:240kB subtitle:0 global headers:0kB muxing overhead 14.056781%
$ 




$ ffmpeg -i file002.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts new_file002.ts
ffmpeg version 2.1.1 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jan  3 2014 20:35:09 with gcc 4.7 (Debian 4.7.2-5)
  configuration: --prefix=/tmp/ffmpeg/nux/build --extra-cflags=-I/tmp/ffmpeg/nux/build/include --extra-ldflags=-L/tmp/ffmpeg/nux/build/lib --extra-libs=-ldl --enable-gpl --enable-libass --enable-libaacplus --enable-libx264 --enable-nonfree --enable-shared
  libavutil      52. 48.101 / 52. 48.101
  libavcodec     55. 39.101 / 55. 39.101
  libavformat    55. 19.104 / 55. 19.104
  libavdevice    55.  5.100 / 55.  5.100
  libavfilter     3. 90.100 /  3. 90.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file002.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf55.19.104
  Duration: 00:00:29.80, start: 0.000000, bitrate: 483 kb/s
    Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 360x288 [SAR 64:45 DAR 16:9], 416 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 63 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Output #0, mpegts, to 'new_file002.ts':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf55.19.104
    Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p, 360x288 [SAR 64:45 DAR 16:9], q=2-31, 416 kb/s, 25 fps, 90k tbn, 25 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, 63 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[adts @ 0x2441ec0] Encoder did not produce proper pts, making some up.
frame=  745 fps=0.0 q=-1.0 Lsize=    1989kB time=00:00:29.80 bitrate= 546.8kbits/s    
video:1513kB audio:233kB subtitle:0 global headers:0kB muxing overhead 13.928306%
$ 




$ ffmpeg -f mpegts -i "concat:new_file001.ts|new_file002.ts" -c copy -bsf:a aac_adtstoasc file001_002.mp4
ffmpeg version 2.1.1 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jan  3 2014 20:35:09 with gcc 4.7 (Debian 4.7.2-5)
  configuration: --prefix=/tmp/ffmpeg/nux/build --extra-cflags=-I/tmp/ffmpeg/nux/build/include --extra-ldflags=-L/tmp/ffmpeg/nux/build/lib --extra-libs=-ldl --enable-gpl --enable-libass --enable-libaacplus --enable-libx264 --enable-nonfree --enable-shared
  libavutil      52. 48.101 / 52. 48.101
  libavcodec     55. 39.101 / 55. 39.101
  libavformat    55. 19.104 / 55. 19.104
  libavdevice    55.  5.100 / 55.  5.100
  libavfilter     3. 90.100 /  3. 90.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mpegts, from 'concat:new_file001.ts|new_file002.ts':
  Duration: 00:00:29.76, start: 1.400000, bitrate: 1111 kb/s
  Program 1 
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p, 360x288 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x101](und): Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 68 kb/s
Output #0, mp4, to 'file001_002.mp4':
  Metadata:
    encoder         : Lavf55.19.104
    Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 360x288 [SAR 64:45 DAR 16:9], q=2-31, 25 fps, 90k tbn, 90k tbc
    Stream #0:1(und): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 68 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 1512 fps=0.0 q=-1.0 Lsize=    3577kB time=00:01:00.46 bitrate= 484.7kbits/s    
video:3079kB audio:482kB subtitle:0 global headers:0kB muxing overhead 0.459282%
$ 





$ cat file001.ts file002.ts > file001_002..ts
$


$ ffmpeg -i file001_002.ts -y -movflags +faststart -c:v libx264 -vf yadif=0:1:0,scale=-1:288 -vprofile baseline -preset fast -crf 18 -maxrate 450k -bufsize 450k -pix_fmt yuv420p -c:a libaacplus -ab 64k -ac 2 catts_file001_002.mp4 
ffmpeg version 2.1.1 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jan  3 2014 20:35:09 with gcc 4.7 (Debian 4.7.2-5)
  configuration: --prefix=/tmp/ffmpeg/nux/build --extra-cflags=-I/tmp/ffmpeg/nux/build/include --extra-ldflags=-L/tmp/ffmpeg/nux/build/lib --extra-libs=-ldl --enable-gpl --enable-libass --enable-libaacplus --enable-libx264 --enable-nonfree --enable-shared
  libavutil      52. 48.101 / 52. 48.101
  libavcodec     55. 39.101 / 55. 39.101
  libavformat    55. 19.104 / 55. 19.104
  libavdevice    55.  5.100 / 55.  5.100
  libavfilter     3. 90.100 /  3. 90.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mpegts, from 'file001_002.ts':
  Duration: 00:01:00.40, start: 30.024000, bitrate: 4497 kb/s
  Program 1 
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x101]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s
[libx264 @ 0x887480] using SAR=64/45
[libx264 @ 0x887480] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 0x887480] profile Constrained Baseline, level 2.1
[libx264 @ 0x887480] 264 - core 138 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=0 ref=2 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=6 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=36 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=30 rc=crf mbtree=1 crf=18.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=450 vbv_bufsize=450 crf_max=0.0 nal_hrd=none ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'catts_file001_002.mp4':
  Metadata:
    encoder         : Lavf55.19.104
    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 360x288 [SAR 64:45 DAR 16:9], q=-1--1, max. 450 kb/s, 12800 tbn, 25 tbc
    Stream #0:1: Audio: aac (libaacplus) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, s16, 64 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video -> libx264)
  Stream #0:1 -> #0:1 (mp2 -> libaacplus)
Press [q] to stop, [?] for help
[mp4 @ 0x889ea0] Starting second pass: moving the moov atom to the beginning of the filedrop=0    
frame= 1511 fps=165 q=-1.0 Lsize=    3571kB time=00:01:00.44 bitrate= 484.0kbits/s dup=3 drop=0    
video:3073kB audio:472kB subtitle:0 global headers:0kB muxing overhead 0.732476%
[libx264 @ 0x887480] frame I:7     Avg QP:26.15  size: 25282
[libx264 @ 0x887480] frame P:1504  Avg QP:26.99  size:  1974
[libx264 @ 0x887480] mb I  I16..4: 14.6%  0.0% 85.4%
[libx264 @ 0x887480] mb P  I16..4:  0.2%  0.0%  0.3%  P16..4: 38.4% 10.3%  4.4%  0.0%  0.0%    skip:46.4%
[libx264 @ 0x887480] coded y,uvDC,uvAC intra: 74.9% 76.4% 44.5% inter: 22.2% 16.7% 2.0%
[libx264 @ 0x887480] i16 v,h,dc,p: 30% 26% 28% 16%
[libx264 @ 0x887480] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 21% 18%  6%  6%  7%  6%  7%  6%
[libx264 @ 0x887480] i8c dc,h,v,p: 51% 28% 17%  3%
[libx264 @ 0x887480] ref P L0: 79.1% 20.9%
[libx264 @ 0x887480] kb/s:416.45
$ 


More information about the ffmpeg-user mailing list