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 > Programming and Hacking > Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 4th January 2010, 20:44   #1  |  Link
OvejaNegra
ekTOMBE STUDIOS
 
OvejaNegra's Avatar
 
Join Date: Dec 2005
Location: Cuba
Posts: 254
Sugestions for tool i'm making -> How to estimate resolution Vs Bitrate

As the title says. I'm making a batch tool for x264. I know there are not absolute values for any source, but sometimes you can have (maybe) an estimated resolution VS bitrate value, so you can estimate how much bitrate you need for a certain resolution.

Yes, i know there are not absolute value for this.
¿But how autoGK does that?
I was reading this:
http://www.mplayerhq.hu/DOCS/HTML/en...itrate-compute

but it was not too clear for me.

Is there any "general use" method to estimate the bitrate for a given resolution? (or to chose a resolution based on available bitrate)?

I know some people make a compressibility test, to estimate the optimal bitrate for some sources ( i think it's done with constant quantizer) but i don't know how.

Any suggesions
thanks
__________________
So, it works or not???
OvejaNegra is offline   Reply With Quote
Old 4th January 2010, 21:01   #2  |  Link
nurbs
Registered User
 
Join Date: Dec 2005
Posts: 1,460
The stuff described in your link is pretty worthless. See here why:
http://forum.doom9.org/showthread.ph...511#post841511
http://forum.doom9.org/showthread.ph...12#post1311212


I'm not 100% sure what the going method on compressibility tests is, but you could:

1) Find a CRF value for which you like the quality
As a start look at the range of 20 - 24. Higher number is lower quality.

2) Encode x% of your movie with that CRF value
You can use the avisynth function SelectRangeEvery(2000, 100) for instance to encode 5% of the movie (100 out of every 2000 frames).

3) Look at the resulting bitrate and reduce resolution accordingly, if the bitrate a lot different from your desired bitrate.
As described in the second link I posted there are some problems with that, so it's not as easy as just reducing the number of pixels by the same percentage as the bitrate you want to save, but at least it's a start.
nurbs is offline   Reply With Quote
Old 2nd February 2010, 17:22   #3  |  Link
ronnylov
Registered User
 
Join Date: Feb 2002
Location: Borås, Sweden
Posts: 492
But also remember that a lower resolution may need a lower CRF value to make it look equally good. This is because when a lower resolution is upscaled to fullscreen on the viewing display then the encoding artifacts will be more visible.
So you may need to redo step 1) "Find a CRF value for which you like the quality" for each lower resolution you test.
__________________
Ronny
ronnylov is offline   Reply With Quote
Old 3rd February 2010, 22:09   #4  |  Link
OvejaNegra
ekTOMBE STUDIOS
 
OvejaNegra's Avatar
 
Join Date: Dec 2005
Location: Cuba
Posts: 254
Yes, i just realized about that, thanks.
__________________
So, it works or not???
OvejaNegra is offline   Reply With Quote
Reply

Tags
bitrate, resolution, x264

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 12:36.


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