AnimeSuki Forums

Register Forum Rules FAQ Community Today's Posts Search

Go Back   AnimeSuki Forum > Anime Related Topics > General Anime > Fansub Groups

Notices

Reply
 
Thread Tools
Old 2009-01-10, 12:44   Link #1
lubczyk
Senior Member
 
Join Date: Jan 2005
Fast h264 encoding settings?

Fast h264 encoding settings?

I just want to encode my anime quickly so that I can get ti doen faster. I don't mind a bigger filesize if the quality doesn't degrade too much. This is the commandline that I get from megui:

program --crf 16.0 --level 4.1 --ref 5 --mixed-refs --no-fast-pskip --bframes 3 --weightb --deblock 1:2 --subme 5 --partitions p8x8,b8x8,i4x4,i8x8 --8x8dct --ipratio 1.1 --pbratio 1.1 --vbv-bufsize 24000 --vbv-maxrate 24000 --qcomp 0.5 --me umh --merange 12 --threads auto --thread-input --aud --progress --no-dct-decimate --no-psnr --no-ssim --output "output" "input"

Basically, I want to get almost "transparent" quality from my encodes so I use CRF 16 and I don't use Trellis since it's CRF and I don't care about filesize. I don't see any difference in quality between Subpixel Refinement 5, 6 or 7. Lastly, I set Adaptive B-Frames to 1 - Fast and B-Frame Mode to Spatial since iI'm encoding animated content.

Are my eyes missing something? I don't see how going above (not below) Subme 5 or M.E. Multi-hex increases quality and I don't see the benefits of Trellis except for Two-Pass and a lower filesize.

Are there any quality benefits in settings like Trellis, mode 2 B-frames, and higher Motion Estimation values?
lubczyk is offline   Reply With Quote
Old 2009-01-10, 14:30   Link #2
Tofusensei
Senior Member
 
 
Join Date: May 2003
Location: Tokyo, Japan
Send a message via AIM to Tofusensei
i7 imo

-Tofu
Tofusensei is offline   Reply With Quote
Old 2009-01-10, 16:32   Link #3
Dark Shikari
x264 Developer
 
 
Join Date: Feb 2008
Quote:
Originally Posted by lubczyk View Post
Fast h264 encoding settings?

I just want to encode my anime quickly so that I can get ti doen faster. I don't mind a bigger filesize if the quality doesn't degrade too much. This is the commandline that I get from megui:

program --crf 16.0 --level 4.1 --ref 5 --mixed-refs --no-fast-pskip --bframes 3 --weightb --deblock 1:2 --subme 5 --partitions p8x8,b8x8,i4x4,i8x8 --8x8dct --ipratio 1.1 --pbratio 1.1 --vbv-bufsize 24000 --vbv-maxrate 24000 --qcomp 0.5 --me umh --merange 12 --threads auto --thread-input --aud --progress --no-dct-decimate --no-psnr --no-ssim --output "output" "input"

Basically, I want to get almost "transparent" quality from my encodes so I use CRF 16 and I don't use Trellis since it's CRF and I don't care about filesize. I don't see any difference in quality between Subpixel Refinement 5, 6 or 7. Lastly, I set Adaptive B-Frames to 1 - Fast and B-Frame Mode to Spatial since iI'm encoding animated content.

Are my eyes missing something? I don't see how going above (not below) Subme 5 or M.E. Multi-hex increases quality and I don't see the benefits of Trellis except for Two-Pass and a lower filesize.

Are there any quality benefits in settings like Trellis, mode 2 B-frames, and higher Motion Estimation values?
Quality and bitrate are equivalent. 20% higher quality at the same bitrate means--equivalently--20% less bitrate at the same quality (roughly).

If you just need fast encoding, try:

--qp 18 --deblock 1:1 --subme 1 --partitions none --me dia --no-cabac --threads auto

Also, seriously, stop adjusting ipratio/pbratio/qcomp. Leave those at defaults. And don't use VBV when you don't need it! I can't figure out why people keep messing with obscure settings--do they think that the developers are dumb and can't pick reasonable defaults or something?
Dark Shikari is offline   Reply With Quote
Old 2009-01-10, 16:56   Link #4
TheFluff
Excessively jovial fellow
 
 
Join Date: Dec 2005
Location: ISDB-T
Age: 37
if you want fast encoding maybe you should think twice before using a setting called "no fast <thing>"

hth
__________________
| ffmpegsource
17:43:13 <~deculture> Also, TheFluff, you are so fucking slowpoke.jpg that people think we dropped the DVD's.
17:43:16 <~deculture> nice job, fag!

01:04:41 < Plorkyeran> it was annoying to typeset so it should be annoying to read
TheFluff is offline   Reply With Quote
Old 2009-01-10, 19:28   Link #5
lubczyk
Senior Member
 
Join Date: Jan 2005
Quote:
Originally Posted by Dark Shikari View Post
Quality and bitrate are equivalent. 20% higher quality at the same bitrate means--equivalently--20% less bitrate at the same quality (roughly).

If you just need fast encoding, try:

--qp 18 --deblock 1:1 --subme 1 --partitions none --me dia --no-cabac --threads auto

Also, seriously, stop adjusting ipratio/pbratio/qcomp. Leave those at defaults. And don't use VBV when you don't need it! I can't figure out why people keep messing with obscure settings--do they think that the developers are dumb and can't pick reasonable defaults or something?
But there's just so many numbers. They all have to mean something!!!
lubczyk is offline   Reply With Quote
Old 2009-01-10, 23:48   Link #6
Soichiro
Real-life Lolicon
 
 
Join Date: Jun 2008
They do mean something, but you shouldn't mess with them unless you know what they mean and have a reason to change them.
Soichiro is offline   Reply With Quote
Old 2009-01-11, 06:41   Link #7
lubczyk
Senior Member
 
Join Date: Jan 2005
Ok, I've settled on something like this:

Quote:
program --qp 16 --level 4.1 --ref 8 --mixed-refs --deblock 1:2 --no-cabac --subme 1 --partitions none --me dia --threads auto --thread-input --aud --progress --no-psnr --no-ssim --output "output" "input"
I've found that multiple reference frames really improve overall image quality during playback, so I stuck those in there.
lubczyk is offline   Reply With Quote
Old 2009-01-11, 07:34   Link #8
TGEN
Far out, man!
*Fansubber
 
Join Date: Jul 2008
Age: 40
Quote:
Originally Posted by lubczyk View Post
I've found that multiple reference frames really improve overall image quality during playback, so I stuck those in there.
Then you can drop the --level 4.1 too (and bump it to 16).
TGEN is offline   Reply With Quote
Old 2009-01-11, 08:00   Link #9
Dark Shikari
x264 Developer
 
 
Join Date: Feb 2008
Quote:
Originally Posted by lubczyk View Post
Ok, I've settled on something like this:



I've found that multiple reference frames really improve overall image quality during playback, so I stuck those in there.
Mixed-refs doesn't even do anything with partitions none...
Dark Shikari is offline   Reply With Quote
Old 2009-01-11, 14:15   Link #10
Soichiro
Real-life Lolicon
 
 
Join Date: Jun 2008
And 16 refs is a waste of time either way, even on anime. (IIRC ref frames increase time exponentially (or at least linearly) the higher they get, and benefit increases logarithmically, so the more you add, the less benefit you get). 8 is the highest I'd go, especially if you're using completely horrible (fast) settings on everything else.
Soichiro is offline   Reply With Quote
Old 2009-01-11, 16:17   Link #11
Dark Shikari
x264 Developer
 
 
Join Date: Feb 2008
Quote:
Originally Posted by Soichiro View Post
And 16 refs is a waste of time either way, even on anime. (IIRC ref frames increase time exponentially (or at least linearly)
Linearly, and that's only of the time spent on the motion search. At least with me dia/subme1, that isn't much time, though I agree with such low settings its a tad silly.
Quote:
Originally Posted by Soichiro View Post
the higher they get, and benefit increases logarithmically, so the more you add, the less benefit you get). 8 is the highest I'd go, especially if you're using completely horrible (fast) settings on everything else.
For anime, I find the benefit becomes almost linear after the first few refs (~1% more compression for each ref after ~6).
Dark Shikari is offline   Reply With Quote
Old 2009-01-11, 19:51   Link #12
checkers
Part 8
*IT Support
 
 
Join Date: Jul 2006
Location: Western Australia
Age: 35
Send a message via MSN to checkers
That deblock is quite high. Not that it will really matter for such a low CRF, but still...
checkers is offline   Reply With Quote
Old 2009-01-12, 05:07   Link #13
lubczyk
Senior Member
 
Join Date: Jan 2005
Quote:
Originally Posted by checkers View Post
That deblock is quite high. Not that it will really matter for such a low CRF, but still...
For hand-drawn animated content, I find that deblock 1,2 gets rid of renegade blocks on large same-color textures quite well.
lubczyk is offline   Reply With Quote
Old 2009-01-13, 19:46   Link #14
Utils
Inactive Member
 
Join Date: Jan 2004
Quote:
Originally Posted by Dark Shikari View Post
I can't figure out why people keep messing with obscure settings--do they think that the developers are dumb and can't pick reasonable defaults or something?
That's EXACTLY why we do it. I do it with all programs. If there's a setting I don't understand I Google it to make sure I'm not missing out on something or possibly making it worse. This is especially true of open source software because they usually lack tooltips or a help menu.
Utils is offline   Reply With Quote
Old 2009-01-13, 21:30   Link #15
Dark Shikari
x264 Developer
 
 
Join Date: Feb 2008
Quote:
Originally Posted by Utils View Post
That's EXACTLY why we do it. I do it with all programs. If there's a setting I don't understand I Google it to make sure I'm not missing out on something or possibly making it worse. This is especially true of open source software because they usually lack tooltips or a help menu.
But x264 does have a documentation page large enough that people have complained about it being too detailed.

And furthermore, it's one thing to look up what something does--it's another to wildly adjust obscure settings. Just because you know what something does doesn't magically mean it becomes sensible to change it, at least without first dropping by the IRC channel and asking if it's a good idea!
Dark Shikari is offline   Reply With Quote
Old 2009-01-13, 22:05   Link #16
Utils
Inactive Member
 
Join Date: Jan 2004
@Dark Shikari
> But x264 does have a documentation page...
Thus proving my point. I hate to repeat myself but like I said, they usually don't have built-in help. And also sometimes the information is vague anyway.


> And furthermore, it's one thing to look up what something does--it's another to wildly adjust obscure settings.
Well, some of us out there like to actually learn new things and will research obscure subjects when we encounter them. By learning about a subject it's no longer obscure, you feel me. I don't understand why you want people to stay ignorant when something interests them. That's not cool :(

> Just because you know what something does doesn't magically mean it becomes sensible to change it...
LOL, I have to repeat myself again? "...Make sure I'm not missing out on something or possibly making it worse." I added emphasis. I'll even reiterate: finding out what something does gives us the knowledge to know whether to leave it alone or change it for our particular function.

Knowledge is power, Dark Shikari.
Utils is offline   Reply With Quote
Old 2009-01-14, 00:52   Link #17
fireshark
CRF Believer
*Fansubber
 
 
Join Date: Jan 2007
Send a message via AIM to fireshark
You're talking to the x264 developer there
fireshark is offline   Reply With Quote
Old 2009-01-14, 10:21   Link #18
edogawaconan
Hi
*Fansubber
 
 
Join Date: Aug 2006
Send a message via MSN to edogawaconan Send a message via Yahoo to edogawaconan
Quote:
Originally Posted by Utils View Post
finding out what something does gives us the knowledge to know whether to leave it alone or change it for our particular function.
it is not enough.
__________________
edogawaconan is offline   Reply With Quote
Old 2009-01-14, 14:18   Link #19
TGEN
Far out, man!
*Fansubber
 
Join Date: Jul 2008
Age: 40
I personally don't see anything wrong with people screwing up 'interesting' options. It's part of the learning process.
TGEN is offline   Reply With Quote
Old 2009-01-15, 02:44   Link #20
comatose
Senior Member
 
Join Date: Dec 2007
Quote:
Originally Posted by edogawaconan View Post
it is not enough.
Coupled with some research (that's trial and error), yes, it is.
comatose is offline   Reply With Quote
Reply


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 -5. The time now is 06:20.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
We use Silk.