VP8/VP9 encoding is real slow!

HandBrake for Mac support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
msxyz
Posts: 4
Joined: Mon Jan 19, 2015 7:06 am

VP8/VP9 encoding is real slow!

Post by msxyz »

Please detail your question or problem in as much detail as possible:
Enconding using these two formats is 2-3 times slower than H265 with the same source and image settings.
Tell us about your environment. What version of HandBrake? What version of OSX are you running. etc.
HB 1.0.2 (17/01/2017 build) OSX El Capitain
If there was any exception or error displayed, please copy it and paste it here:
-
Please include the scan or encode log:
-

Code: Select all

 Paste a log of the scan or encode between these code brackets, or use a pastebin website and provide us with the URL it gives you. 
 Logs are required for all support requests.
Is there any issue with the current Handbrake versions and VP8/VP9 codecs? I need to make a transcode into one of these formats and I discovered this is a very, very slow process - much slower than x265 in fact (2-3 times slower with the same source and settings). If I remember correctly, certain Handbrake builds had VP9 running on a single thread, but VP8?
rollin_eng
Veteran User
Posts: 4859
Joined: Wed May 04, 2011 11:06 pm

Re: VP8/VP9 encoding is real slow!

Post by rollin_eng »

Could you please post your logs, instructions can be found here:

viewtopic.php?f=6&t=31236
msxyz
Posts: 4
Joined: Mon Jan 19, 2015 7:06 am

Re: VP8/VP9 encoding is real slow!

Post by msxyz »

I've tried doing a small 3 minute clip using the same preset. Only 1.5fps average.

HandBrake Activity Log for Session: 2017-02-01 13:37:27 +0100
Handbrake Version: 20170129183038-56aca27-master (2017020101)
Another_World_2.mkv
Preset: Custom
[13:37:27] macgui: QueueCore scanning specifically for title: 1
[13:37:27] CPU: Intel(R) Core(TM) i5-4570R CPU @ 2.70GHz
[13:37:27] - Intel microarchitecture Haswell
[13:37:27] - logical processor count: 4
[13:37:27] hb_scan: path=/Users/TestOSX/Downloads/Another_World_2.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:274: failed opening UDF image /Users/TestOSX/Downloads/Another_World_2.mkv
disc.c:352: error opening file BDMV/index.bdmv
disc.c:352: error opening file BDMV/BACKUP/index.bdmv
[13:37:27] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[13:37:27] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '/Users/TestOSX/Downloads/Another_World_2.mkv':
Metadata:
ENCODER : Lavf54.63.104
Duration: 00:03:10.22, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (High)
yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], PAR 1:1 DAR 16:9
29.97 fps, 1k tbn (default)
Stream #0:1(und): Audio: ac3
48000 Hz, 2 channels, fltp (default)
[13:37:27] scan: decoding previews for title 1
[13:37:27] scan: audio 0x1: ac3, rate=48000Hz, bitrate=256000 Unknown (AC3) (2.0 ch)
[13:37:28] scan: 10 previews, 1920x1080, 29.970 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[13:37:28] libhb: scan thread found 1 valid title(s)
[13:37:28] macgui: QueueCore scan done
[13:37:28] macgui: QueueCore started encoding Another_World_2.mkv
[13:37:28] 1 job(s) to process
[13:37:28] macgui: QueueCore with preset Custom
[13:37:28] starting job
[13:37:28] NLMeans using SSE2 optimizations
[13:37:28] NLMeans thread started for segment 0
[13:37:28] NLMeans thread started for segment 1
[13:37:28] NLMeans thread started for segment 2
[13:37:28] NLMeans thread started for segment 3
[13:37:28] work: only 1 chapter, disabling chapter markers
[13:37:28] job configuration:
[13:37:28] * source
[13:37:28] + /Users/TestOSX/Downloads/Another_World_2.mkv
[13:37:28] + title 1, chapter(s) 1 to 1
[13:37:28] + container: matroska,webm
[13:37:28] * destination
[13:37:28] + /Users/TestOSX/Movies/Another_World_2.mkv
[13:37:28] + container: Matroska (libavformat)
[13:37:28] * video track
[13:37:28] + decoder: h264
[13:37:28] + filters
[13:37:28] + Framerate Shaper (mode=1:rate=27000000/900900)
[13:37:28] + frame rate: 29.970 fps -> constant 29.970 fps
[13:37:28] + Denoise (nlmeans) (y-strength=7:y-origin-tune=0.5:y-patch-size=5:y-range=3:y-frame-count=2:y-prefilter=1:cb-strength=7:cb-origin-tune=0.5:cb-patch-size=5:cb-range=3:cb-frame-count=2:cb-prefilter=1:cr-strength=7:cr-origin-tune=0.5:cr-patch-size=5:cr-range=3:cr-frame-count=2:cr-prefilter=1)
[13:37:28] + Crop and Scale (width=1280:height=540:crop-top=140:crop-bottom=140:crop-left=12:crop-right=12)
[13:37:28] + source: 1920 * 1080, crop (140/140/12/12): 1896 * 800, scale: 1280 * 540
[13:37:28] + Output geometry
[13:37:28] + storage dimensions: 1280 x 540
[13:37:28] + pixel aspect ratio: 1 : 1
[13:37:28] + display dimensions: 1280 x 540
[13:37:28] + encoder: VP8 (libvpx)
[13:37:28] + preset: slow
[13:37:28] + quality: 15.00 (CQ)
[13:37:28] * audio track 1
[13:37:28] + decoder: Unknown (AC3) (2.0 ch) (track 1, id 0x1)
[13:37:28] + bitrate: 256 kbps, samplerate: 48000 Hz
[13:37:28] + mixdown: Stereo
[13:37:28] + encoder: AAC (Apple AudioToolbox)
[13:37:28] + bitrate: 160 kbps, samplerate: 48000 Hz
[13:37:28] sync: expecting 5700 video frames
[13:37:28] encavcodecInit: VP8 encoder
[13:37:28] encavcodec: encoding at CQ 15.00
[13:37:28] encavcodec: encoding with stored aspect 1/1
[13:37:28] sync: first pts video is 0
[13:37:28] sync: "Chapter 1" (1) at frame 1 time 0
[13:37:57] sync: first pts audio 0x1 is 506880
[14:37:52] reader: done. 1 scr changes
[14:38:18] work: average encoding speed for job is 1.558143 fps
[14:38:18] vfr: 5700 frames output, 0 dropped and 2 duped for CFR/PFR
[14:38:18] vfr: lost time: 0 (0 frames)
[14:38:18] vfr: gained time: 0 (0 frames) (0 not accounted for)
[14:38:18] ac3-decoder done: 5765 frames, 0 decoder errors
[14:38:18] h264-decoder done: 5698 frames, 0 decoder errors
[14:38:18] sync: got 5698 frames, 5700 expected
[14:38:18] sync: framerate min 9.901 fps, max 29.970 fps, avg 29.959 fps
[14:38:18] mux: track 0, 5700 frames, 4651808 bytes, 195.64 kbps, fifo 8192
[14:38:18] mux: track 1, 8648 frames, 3763607 bytes, 158.28 kbps, fifo 16384
[14:38:18] libhb: work result = 0
Woodstock
Veteran User
Posts: 4623
Joined: Tue Aug 27, 2013 6:39 am

Re: VP8/VP9 encoding is real slow!

Post by Woodstock »

VP9 is slow. If you read some of the threads here about it, you will see that it has been getting to the point where you can encode a 90 minute movie in less than a day, where it use to take a month.

History: viewtopic.php?f=26&t=27343
mduell
Veteran User
Posts: 8206
Joined: Sat Apr 21, 2007 8:54 pm

Re: VP8/VP9 encoding is real slow!

Post by mduell »

Lousy encoders.
msxyz
Posts: 4
Joined: Mon Jan 19, 2015 7:06 am

Re: VP8/VP9 encoding is real slow!

Post by msxyz »

Woodstock wrote:VP9 is slow. If you read some of the threads here about it, you will see that it has been getting to the point where you can encode a 90 minute movie in less than a day, where it use to take a month.

History: viewtopic.php?f=26&t=27343
Ouch!

I hope AM1 will be better in this regard. X264 encoding speed is the main reason why I haven't switched to x265.
User avatar
s55
HandBrake Team
Posts: 10360
Joined: Sun Dec 24, 2006 1:05 pm

Re: VP8/VP9 encoding is real slow!

Post by s55 »

I'd expect it to be worse if it ends up doing more work and more complex computations.
Post Reply