Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 11th January 2021, 17:31   #1  |  Link
iAvoe
Registered User
 
Join Date: Sep 2017
Posts: 15
Revisiting rc-lookahead, opencl and lookahead-threads

I don't post a lot in this forum, so please forgive me if I'm not following some rules/guidelines

--lookahead-threads is to estimate the cost of establishing intra, inter reference, and b-frame prediction;
and the purpose of cost estimation is to reduce uncertainty of compression decision.

--opencl enables "opencl-lookahead", which offloads extra lookahead-threads to GPU
when CPU is working on other things at the same time, but requires estimation to be finished too.

I believe the recommendation for lookahead-threads (enables opencl) should be updated since GPU capability (and VRAM speed) has improved a lot.
Meanwhile posts discussion about these 2 options are dated back to like GTX 480

--rc-lookahead is for estimating VBV, IBP frame and mbtree costs, which is completely handled by CPU fwiw,
and the recommendation for this one is vague, while people often go above 40.
I've also found out that this option is bind-ed to keyint (I'll try find that info if you needs);
which now, I feel the best value is going to be around keyint÷2
iAvoe is offline   Reply With Quote
Old 11th January 2021, 21:34   #2  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 3,954
My intuition was that that the maximum useful value of --rc-lookahead would be the higher of vbv-maxrate/vbv-bufsize in seconds or keyint - min-keyint.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Reply

Tags
frame rate, parameters

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:55.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.