Opened 11 years ago
Closed 11 years ago
#3161 closed defect (worksforme)
libvpx crf does nothing
Reported by: | LinAGKar | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | undetermined |
Version: | 2.0.2 | Keywords: | libvpx |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
When encoding with libvpx "crf" does not seem to change the quality or bitrate, for example "-crf 4" and "-crf 63" gives almost exactly the same output.
Attachments (2)
Change History (5)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
crf=4:
> ffmpeg -i Big\ Buck\ Bunny.mkv -t 15 -an -vcodec libvpx -crf 4 Big\ Buck\ Bunny\ 4.webm ffmpeg version 2.0.2 Copyright (c) 2000-2013 the FFmpeg developers built on Oct 19 2013 08:34:03 with gcc 4.7 (SUSE Linux) configuration: --shlibdir=/usr/lib64 --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib64 --enable-shared --disable-static --enable-debug --disable-stripping --extra-cflags='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/gsm' --enable-gpl --enable-x11grab --enable-version3 --enable-pthreads --enable-avfilter --enable-libpulse --enable-libvpx --enable-libopus --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libxvid --enable-libx264 --enable-libschroedinger --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-postproc --enable-libdc1394 --enable-librtmp --enable-libfreetype --enable-avresample --enable-libtwolame --enable-libvo-aacenc 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 libavresample 1. 1. 0 / 1. 1. 0 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 Input #0, matroska,webm, from 'Big Buck Bunny.mkv': Metadata: ENCODER : Lavf55.12.100 Duration: 00:09:56.46, start: 0.000000, bitrate: 309088 kb/s Stream #0:0: Video: ffv1 (FFV1 / 0x31564646), bgr0, 1920x1080, SAR 1:1 DAR 16:9, 24 fps, 24 tbr, 1k tbn, 1k tbc (default) Stream #0:1: Audio: flac, 48000 Hz, 5.1(side), s32 (default) [libvpx @ 0x1eac7a0] v1.1.0 Output #0, webm, to 'Big Buck Bunny 4.webm': Metadata: encoder : Lavf55.12.100 Stream #0:0: Video: vp8 (libvpx), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 200 kb/s, 1k tbn, 24 tbc (default) Stream mapping: Stream #0:0 -> #0:0 (ffv1 -> libvpx) Press [q] to stop, [?] for help frame= 360 fps=6.7 q=0.0 Lsize= 779kB time=00:00:15.00 bitrate= 425.6kbits/s video:776kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.394523%
crf=63:
> ffmpeg -i Big\ Buck\ Bunny.mkv -t 15 -an -vcodec libvpx -crf 63 Big\ Buck\ Bunny\ 63.webm ffmpeg version 2.0.2 Copyright (c) 2000-2013 the FFmpeg developers built on Oct 19 2013 08:34:03 with gcc 4.7 (SUSE Linux) configuration: --shlibdir=/usr/lib64 --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib64 --enable-shared --disable-static --enable-debug --disable-stripping --extra-cflags='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/gsm' --enable-gpl --enable-x11grab --enable-version3 --enable-pthreads --enable-avfilter --enable-libpulse --enable-libvpx --enable-libopus --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libxvid --enable-libx264 --enable-libschroedinger --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-postproc --enable-libdc1394 --enable-librtmp --enable-libfreetype --enable-avresample --enable-libtwolame --enable-libvo-aacenc 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 libavresample 1. 1. 0 / 1. 1. 0 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 Input #0, matroska,webm, from 'Big Buck Bunny.mkv': Metadata: ENCODER : Lavf55.12.100 Duration: 00:09:56.46, start: 0.000000, bitrate: 309088 kb/s Stream #0:0: Video: ffv1 (FFV1 / 0x31564646), bgr0, 1920x1080, SAR 1:1 DAR 16:9, 24 fps, 24 tbr, 1k tbn, 1k tbc (default) Stream #0:1: Audio: flac, 48000 Hz, 5.1(side), s32 (default) [libvpx @ 0x16087a0] v1.1.0 Output #0, webm, to 'Big Buck Bunny 63.webm': Metadata: encoder : Lavf55.12.100 Stream #0:0: Video: vp8 (libvpx), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 200 kb/s, 1k tbn, 24 tbc (default) Stream mapping: Stream #0:0 -> #0:0 (ffv1 -> libvpx) Press [q] to stop, [?] for help frame= 360 fps=6.8 q=0.0 Lsize= 778kB time=00:00:15.00 bitrate= 425.0kbits/s video:775kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.391042%
comment:3 by , 11 years ago
Component: | FFmpeg → undetermined |
---|---|
Keywords: | crf removed |
Resolution: | → worksforme |
Status: | new → closed |
For future tickets: Please always test current FFmpeg as explained on http://ffmpeg.org/bugreports.html
$ ffmpeg -f lavfi -i testsrc -crf 4 -t 15 4.webm ffmpeg version 2.0.2 Copyright (c) 2000-2013 the FFmpeg developers built on Dec 9 2013 11:02:30 with gcc 4.7 (SUSE Linux) configuration: --enable-gpl --enable-libvpx 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, lavfi, from 'testsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc [libvpx @ 0x36147a0] v1.2.0 Output #0, webm, to '4.webm': Metadata: encoder : Lavf55.12.100 Stream #0:0: Video: vp8 (libvpx), yuv420p, 320x240 [SAR 1:1 DAR 4:3], q=-1--1, 200 kb/s, 1k tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (rawvideo -> libvpx) Press [q] to stop, [?] for help frame= 375 fps=0.0 q=0.0 Lsize= 261kB time=00:00:15.00 bitrate= 142.4kbits/s video:258kB audio:0kB subtitle:0 global headers:0kB muxing overhead 1.199901%
$ ffmpeg -f lavfi -i testsrc -crf 63 -t 15 63.webm ffmpeg version 2.0.2 Copyright (c) 2000-2013 the FFmpeg developers built on Dec 9 2013 11:02:30 with gcc 4.7 (SUSE Linux) configuration: --enable-gpl --enable-libvpx 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, lavfi, from 'testsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc [libvpx @ 0x22f87a0] v1.2.0 Output #0, webm, to '63.webm': Metadata: encoder : Lavf55.12.100 Stream #0:0: Video: vp8 (libvpx), yuv420p, 320x240 [SAR 1:1 DAR 4:3], q=-1--1, 200 kb/s, 1k tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (rawvideo -> libvpx) Press [q] to stop, [?] for help frame= 375 fps=0.0 q=0.0 Lsize= 75kB time=00:00:15.00 bitrate= 40.9kbits/s video:72kB audio:0kB subtitle:0 global headers:0kB muxing overhead 3.847820%
Note:
See TracTickets
for help on using tickets.
To make this a valid ticket please include your actual ffmpeg command and the complete console output. Also include any input files if necessary and all other required information so anyone can attempt to duplicate the issue.