[FFmpeg-user] crf mode in libvpx

Boštjan Strojan bostjan.strojan at gmail.com
Sun Feb 5 20:42:57 CET 2012


On Sun, Feb 5, 2012 at 12:20 AM, James Darnley <james.darnley at gmail.com> wrote:
> In all your subsequent discussion I haven't seen that you actually tried
> the option mentioned in the title of this thread, namely crf.  Why not?
>  If I read the source correctly, it looks like it should be a straight
> map to the cq-level option of vpxenc (or what ever its name is).

That was actually the first thing i have tried, here is a retry, dump:


ffmpeg -i /Users/b/Desktop/test/test.mov -strict -2 -vcodec libvpx
-acodec vorbis -crf 20 /Users/b/Desktop/test/test___.webm
ffmpeg version N-37510-g8c48652 Copyright (c) 2000-2012 the FFmpeg developers
  built on Feb  2 2012 22:02:52 with clang 3.0 (tags/Apple/clang-211.12)
  configuration: --prefix=/Volumes/tempdisk/sw --enable-gpl
--enable-libx264 --enable-libvpx --cc=clang --enable-runtime-cpudetect
  libavutil      51. 37.100 / 51. 37.100
  libavcodec     54.  0.102 / 54.  0.102
  libavformat    54.  0.100 / 54.  0.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 61.100 /  2. 61.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/b/Desktop/test/test.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2010-10-16 12:44:55
  Duration: 00:00:41.80, start: 0.000000, bitrate: 72767 kb/s
    Stream #0:0(eng): Video: prores (apch / 0x68637061), yuv422p10le,
1280x720, 71215 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 25 tbn, 25 tbc
    Metadata:
      creation_time   : 2010-10-16 12:44:55
      handler_name    : ?Apple Alias Data Handler
    Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz,
2 channels, s16, 1536 kb/s
    Metadata:
      creation_time   : 2010-10-16 12:44:55
      handler_name    : ?Apple Alias Data Handler
    Stream #0:2(eng): Data: none (tmcd / 0x64636D74)
    Metadata:
      creation_time   : 2010-10-16 12:45:06
      handler_name    : ?Apple Alias Data Handler
      timecode        : 01:00:00:00
Incompatible pixel format 'yuv422p10le' for codec 'libvpx',
auto-selecting format 'yuv420p'
[buffer @ 0x10a517360] w:1280 h:720 pixfmt:yuv422p10le tb:1/1000000
sar:1/1 sws_param:
[buffersink @ 0x10a518600] auto-inserting filter 'auto-inserted scale
0' between the filter 'src' and the filter 'out'
[scale @ 0x10a518a20] w:1280 h:720 fmt:yuv422p10le -> w:1280 h:720
fmt:yuv420p flags:0x4
[libvpx @ 0x7fab5a092400] v1.0.0
Output #0, webm, to '/Users/b/Desktop/test/test___.webm':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2010-10-16 12:44:55
    encoder         : Lavf54.0.100
    Stream #0:0(eng): Video: vp8, yuv420p, 1280x720 [SAR 1:1 DAR
16:9], q=-1--1, 200 kb/s, 1k tbn, 25 tbc
    Metadata:
      creation_time   : 2010-10-16 12:44:55
      handler_name    : ?Apple Alias Data Handler
    Stream #0:1(eng): Audio: vorbis, 48000 Hz, 2 channels, s16, 128 kb/s
    Metadata:
      creation_time   : 2010-10-16 12:44:55
      handler_name    : ?Apple Alias Data Handler
Stream mapping:
  Stream #0:0 -> #0:0 (prores -> libvpx)
  Stream #0:1 -> #0:1 (pcm_s16le -> vorbis)
Press [q] to stop, [?] for help
frame=   30 fps=  0 q=0.0 size=       4kB time=00:00:00.24 bitrate=
126.8kbits/s
frame=   42 fps= 38 q=0.0 size=       4kB time=00:00:00.72 bitrate=
42.3kbits/s
frame=   55 fps= 34 q=0.0 size=      36kB time=00:00:01.24 bitrate=
235.9kbits/s
frame=   65 fps= 29 q=0.0 size=      56kB time=00:00:01.64 bitrate=
282.2kbits/s
frame=   70 fps= 25 q=0.0 size=      62kB time=00:00:01.84 bitrate=
277.3kbits/s
lines cut here
frame= 1000 fps= 23 q=0.0 size=    1220kB time=00:00:39.04 bitrate=
256.1kbits/s
frame= 1010 fps= 23 q=0.0 size=    1250kB time=00:00:39.44 bitrate=
259.7kbits/s
frame= 1024 fps= 23 q=0.0 size=    1250kB time=00:00:40.00 bitrate=
256.0kbits/s
frame= 1039 fps= 23 q=0.0 size=    1282kB time=00:00:40.60 bitrate=
258.7kbits/s
frame= 1045 fps= 22 q=0.0 Lsize=    1327kB time=00:00:41.80 bitrate=
260.1kbits/s

video:1228kB audio:75kB global headers:3kB muxing overhead 1.545843%

thanks,

b.


More information about the ffmpeg-user mailing list