[FFmpeg-user] how can I do make the ffmpeg Convertered fasted

huffman huffman at mukewang.com
Fri Nov 15 02:54:44 CET 2013


you are welcome

[root at vmlin5102 deploy]# /usr/bin/time -v ffmpeg -y -threads 8 -i mk.mp4 -vcodec libx264 -preset superfast -s 300x200 -threads 8  mk.thread.flv
ffmpeg version 2.0.1 Copyright (c) 2000-2013 the FFmpeg developers
  built on Sep 22 2013 14:52:07 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-3)
  configuration: --prefix=/data/ffmpeg --enable-nonfree --enable-libfdk-aac --enable-gpl --enable-libx264 --enable-libmp3lame
  libavutil      52. 38.100 / 52. 38.100
  libavcodec     55. 18.102 / 55. 18.102
  libavformat    55. 12.100 / 55. 12.100
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 79.101 /  3. 79.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'mk.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isomavc1
    creation_time   : 2013-10-21 10:09:48
    encoder         : FormatFactory : www.pcfreetime.com
  Duration: 00:02:24.54, start: 0.000000, bitrate: 655 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 856x480 [SAR 480:481 DAR 856:481], 528 kb/s, SAR 427:428 DAR 427:240, 25 fps, 25 tbr, 100 tbn, 50 tbc
    Metadata:
      creation_time   : 2013-10-21 10:09:48
      handler_name    : video
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s
    Metadata:
      creation_time   : 2013-10-21 10:09:48
      handler_name    : sound
[libx264 @ 0x3084ce0] using SAR=427/360
[libx264 @ 0x3084ce0] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 SlowShuffle
[libx264 @ 0x3084ce0] profile High, level 1.3
[libx264 @ 0x3084ce0] 264 - core 138 r2 9e941d1 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x3 me=dia subme=1 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=8 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 pb_ratio=1.30 aq=1:1.00
Output #0, flv, to 'mk.thread.flv':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isomavc1
    encoder         : Lavf55.12.100
    Stream #0:0(und): Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p, 300x200 [SAR 427:360 DAR 427:240], q=-1--1, 1k tbn, 25 tbc
    Metadata:
      creation_time   : 2013-10-21 10:09:48
      handler_name    : video
    Stream #0:1(und): Audio: mp3 (libmp3lame) ([2][0][0][0] / 0x0002), 44100 Hz, stereo, fltp
    Metadata:
      creation_time   : 2013-10-21 10:09:48
      handler_name    : sound
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> libx264)
  Stream #0:1 -> #0:1 (aac -> libmp3lame)
Press [q] to stop, [?] for help
frame= 3609 fps=336 q=-1.0 Lsize=    5403kB time=00:02:24.56 bitrate= 306.2kbits/s    
video:2987kB audio:2259kB subtitle:0 global headers:0kB muxing overhead 3.000365%
[libx264 @ 0x3084ce0] frame I:19    Avg QP:16.61  size:  5862
[libx264 @ 0x3084ce0] frame P:1276  Avg QP:18.23  size:  1497
[libx264 @ 0x3084ce0] frame B:2314  Avg QP:19.61  size:   448
[libx264 @ 0x3084ce0] consecutive B-frames: 12.6%  4.2%  4.7% 78.6%
[libx264 @ 0x3084ce0] mb I  I16..4: 25.0% 32.3% 42.7%
[libx264 @ 0x3084ce0] mb P  I16..4:  1.8%  1.6%  1.6%  P16..4: 51.5%  0.0%  0.0%  0.0%  0.0%    skip:43.6%
[libx264 @ 0x3084ce0] mb B  I16..4:  0.3%  0.2%  0.3%  B16..8: 15.8%  0.0%  0.0%  direct: 9.2%  skip:74.3%  L0:37.2% L1:48.4% BI:14.5%
[libx264 @ 0x3084ce0] 8x8 transform intra:30.6% inter:28.6%
[libx264 @ 0x3084ce0] coded y,uvDC,uvAC intra: 60.6% 67.7% 44.5% inter: 9.5% 13.9% 2.8%
[libx264 @ 0x3084ce0] i16 v,h,dc,p: 45% 27%  2% 26%
[libx264 @ 0x3084ce0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 20% 11%  6%  6%  8%  6%  8%  7%
[libx264 @ 0x3084ce0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 29% 13%  5%  4%  5%  5%  4%  5%
[libx264 @ 0x3084ce0] i8c dc,h,v,p: 31% 31% 30%  8%
[libx264 @ 0x3084ce0] Weighted P-Frames: Y:2.0% UV:1.3%
[libx264 @ 0x3084ce0] kb/s:169.44
        Command being timed: "ffmpeg -y -threads 8 -i mk.mp4 -vcodec libx264 -preset superfast -s 300x200 -threads 8 mk.thread.flv"
        User time (seconds): 22.41
        System time (seconds): 0.54
        Percent of CPU this job got: 211%
        Elapsed (wall clock) time (h:mm:ss or m:ss): 0:10.88
        Average shared text size (kbytes): 0
        Average unshared data size (kbytes): 0
        Average stack size (kbytes): 0
        Average total size (kbytes): 0
        Maximum resident set size (kbytes): 204160
        Average resident set size (kbytes): 0
        Major (requiring I/O) page faults: 0
        Minor (reclaiming a frame) page faults: 12379
        Voluntary context switches: 35068
        Involuntary context switches: 86
        Swaps: 0
        File system inputs: 0
        File system outputs: 13432
        Socket messages sent: 0
        Socket messages received: 0
        Signals delivered: 0
        Page size (bytes): 4096
        Exit status: 0




thanks


huffman

From: Lou
Date: 2013-11-15 09:38
To: FFmpeg user questions
CC: huffman
Subject: Re: [FFmpeg-user] how can I do make the ffmpeg Convertered fasted
On Fri, 15 Nov 2013 09:23:56 +0800
huffman <huffman at mukewang.com> wrote:

>        command: 
> /usr/bin/time -v ffmpeg -y -threads 8 -i mk.mp4 -vcodec libx264
> -preset superfast -s 300x200 -threads 8  mk.thread.flv 

Please include the complete ffmpeg console output for this command.


More information about the ffmpeg-user mailing list