[FFmpeg-user] split video

johnd john at jjdev.com
Tue Jan 22 22:52:29 CET 2013


On Tue, Jan 22, 2013 at 09:41:28PM +0000, Carl Eugen Hoyos wrote:
> johnd <john <at> jjdev.com> writes:
> 
> > ffmpeg -y -ss 0 -t 5 -i ../original_video.mp4 
> > -s 320x180 -vcodec libx264 -acodec libfdk_aac 0.ts
> 
> Complete, uncut console output missing / 
> t is not an input but an output option.
> (Do not place it in front of -i but in 
> front of the output file name)


same problem after moving -t

here is the output:


-------------------------------


ffmpeg -y -ss 0 -i ../original_video.mp4 -t 5 -s 320x180 -vcodec \
libx264 -acodec libfdk_aac 0.ts 


ffmpeg version N-49127-ge4eebc2 Copyright (c) 2000-2013 the FFmpeg
developers
  built on Jan 21 2013 16:01:42 with gcc 4.7.1 (GCC)
  configuration: --enable-filter=color --enable-libx264 --enable-gpl
--enable-libfdk-aac --enable-nonfree
  libavutil      52. 15.100 / 52. 15.100
  libavcodec     54. 90.100 / 54. 90.100
  libavformat    54. 61.102 / 54. 61.102
  libavdevice    54.  3.102 / 54.  3.102
  libavfilter     3. 33.100 /  3. 33.100
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '../original_video.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 1
    compatible_brands: mp42avc1
    creation_time   : 2012-04-10 22:08:20
  Duration: 00:43:14.06, start: 0.000000, bitrate: 2111 kb/s
    Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p,
640x360, 1982 kb/s, 29.97 fps, 29.97 tbr, 2997 tbn, 5994 tbc
    Metadata:
      creation_time   : 2012-04-10 22:08:21
      handler_name    : Apple Video Media Handler
    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo,
fltp, 124 kb/s
    Metadata:
      creation_time   : 2012-04-10 22:08:22
      handler_name    : Apple Sound Media Handler
[libx264 @ 0x30cd3a0] using cpu capabilities: MMX2 SSE2Fast SSSE3
FastShuffle SSE4.1 Cache64
[libx264 @ 0x30cd3a0] profile High, level 1.3
Output #0, mpegts, to '0.ts':
  Metadata:
    major_brand     : mp42
    minor_version   : 1
    compatible_brands: mp42avc1
    encoder         : Lavf54.61.102
    Stream #0:0(eng): Video: h264, yuv420p, 320x180, q=-1--1, 90k tbn,
29.97 tbc
    Metadata:
      creation_time   : 2012-04-10 22:08:21
      handler_name    : Apple Video Media Handler
    Stream #0:1(eng): Audio: aac, 44100 Hz, stereo, s16, 128 kb/s
    Metadata:
      creation_time   : 2012-04-10 22:08:22
      handler_name    : Apple Sound Media Handler
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> libx264)
  Stream #0:1 -> #0:1 (aac -> libfdk_aac)
Press [q] to stop, [?] for help
frame=  150 fps=0.0 q=-1.0 Lsize=     225kB time=00:00:05.01 bitrate=
367.0kbits/s    
video:106kB audio:79kB subtitle:0 global headers:0kB muxing overhead
20.867935%
[libx264 @ 0x30cd3a0] frame I:15    Avg QP:22.10  size:  3796
[libx264 @ 0x30cd3a0] frame P:49    Avg QP:23.19  size:   864
[libx264 @ 0x30cd3a0] frame B:86    Avg QP:24.90  size:   113
[libx264 @ 0x30cd3a0] consecutive B-frames: 20.0%  9.3%  4.0% 66.7%
[libx264 @ 0x30cd3a0] mb I  I16..4: 20.4% 44.8% 34.8%
[libx264 @ 0x30cd3a0] mb P  I16..4:  4.7%  7.8%  3.3%  P16..4: 26.0%
14.7%  6.6%  0.0%  0.0%    skip:36.8%
[libx264 @ 0x30cd3a0] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8: 29.0%
1.0%  0.2%  direct: 0.4%  skip:69.4%  L0:42.6% L1:52.8% BI: 4.6%
[libx264 @ 0x30cd3a0] 8x8 transform intra:46.3% inter:64.5%
[libx264 @ 0x30cd3a0] coded y,uvDC,uvAC intra: 54.9% 4.8% 3.5% inter:
5.9% 6.2% 1.2%
[libx264 @ 0x30cd3a0] i16 v,h,dc,p: 60% 25%  6%  9%
[libx264 @ 0x30cd3a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 24% 17%  4%  4%
5%  5%  6%  6%
[libx264 @ 0x30cd3a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 39% 24% 10%  4%  5%
5%  5%  4%  4%
[libx264 @ 0x30cd3a0] i8c dc,h,v,p: 94%  4%  2%  0%
[libx264 @ 0x30cd3a0] Weighted P-Frames: Y:2.0% UV:0.0%
[libx264 @ 0x30cd3a0] ref P L0: 75.1% 14.5%  6.1%  2.6%  1.7%
[libx264 @ 0x30cd3a0] ref B L0: 91.7%  6.8%  1.5%
[libx264 @ 0x30cd3a0] ref B L1: 93.1%  6.9%
[libx264 @ 0x30cd3a0] kb/s:174.20




john at ldev:ffplay  0.ts 
ffplay version N-49127-ge4eebc2 Copyright (c) 2003-2013 the FFmpeg
developers
  built on Jan 21 2013 16:01:42 with gcc 4.7.1 (GCC)
  configuration: --enable-filter=color --enable-libx264 --enable-gpl
--enable-libfdk-aac --enable-nonfree
  libavutil      52. 15.100 / 52. 15.100
  libavcodec     54. 90.100 / 54. 90.100
  libavformat    54. 61.102 / 54. 61.102
  libavdevice    54.  3.102 / 54.  3.102
  libavfilter     3. 33.100 /  3. 33.100
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
^HInput #0, mpegts, from '0.ts':
  Duration: 00:00:05.02, start: 1.353556, bitrate: 366 kb/s
  Program 1 
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p, 320x180, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x101](eng): Audio: aac ([15][0][0][0] / 0x000F), 44100
Hz, stereo, fltp, 116 kb/s
Frame changed from size:0x0 to size:320x180
  11.96 A-V:  0.006 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0 


More information about the ffmpeg-user mailing list