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 > High Efficiency Video Coding (HEVC)

Reply
 
Thread Tools Search this Thread Display Modes
Old 21st February 2017, 11:52   #1  |  Link
bob88
Registered User
 
Join Date: Nov 2016
Posts: 57
Predetermine bitrate at CRF?

Hello,
Is there a program that can maybe analyze every 1000th frame and show what bitrate would be used at a certain CRF setting? I just get a lot of varying file sizes depending on the source and am looking for an easy way to determine the result before compressing. Making five 2 second samples and testing them one by one is annoying.
Thank you.
bob88 is offline   Reply With Quote
Old 21st February 2017, 18:19   #2  |  Link
Asmodian
Registered User
 
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,406
There have been many attempts in the past but they are all inaccurate, you end up needing to encode most of the source because scene to scene variability is so high. Using one frame in 1000 doesn't work at all.

If you need predictable files sizes two pass is the way to go, the first pass is as fast as any test that is reasonably accurate and you end up with very predictable file sizes.
__________________
madVR options explained
Asmodian is offline   Reply With Quote
Old 21st February 2017, 19:00   #3  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by Asmodian View Post
There have been many attempts in the past but they are all inaccurate, you end up needing to encode most of the source because scene to scene variability is so high.
Not my experience. I tested this quite a bit with encoding 1% up to 10% of the source and the bitrate predictions were pretty accurate at 2% or higher.
Quote:
Originally Posted by Asmodian View Post
Using one frame in 1000 doesn't work at all.
I can agree with that.
__________________
Groucho's Avisynth Stuff
Groucho2004 is offline   Reply With Quote
Old 21st February 2017, 20:04   #4  |  Link
bob88
Registered User
 
Join Date: Nov 2016
Posts: 57
Well it seemed like a good idea to me... Maybe it could even save the 1000th frames as a jpg, one copy of the original and one at different CRFs so you can compare them. It's not just about file size, its also about finding out if the quality is good enough for your needs and easily finding the perfect settings for your specific situation. Frames are easier to compare than 2 sec samples. Anyway... anybody know a program with GUI for win that can do something like that?
bob88 is offline   Reply With Quote
Old 21st February 2017, 21:11   #5  |  Link
Motenai Yoda
Registered User
 
Motenai Yoda's Avatar
 
Join Date: Jan 2010
Posts: 709
you can do a compression test by avisynth or IIRC ffmpeg to encode only 40/50 frames every interval of ie 800/1000 frames to encode only 5% of the whole video.
__________________
powered by Google Translator
Motenai Yoda is offline   Reply With Quote
Old 21st February 2017, 21:11   #6  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
bob88, just a note:
It is pointless to judge the quality of a movie encode based on the inspection of few individual frames. The conclusion can be totally wrong, or is at least incomplete. It's like judging the beauty of a waterfall by inspecting a few droplets. You should always watch an encoded sequence of few seconds duration at least to get a halfway valid impression about the visual quality.
Sharc is offline   Reply With Quote
Old 22nd February 2017, 00:00   #7  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,750
Since the whole point of CRF is to use as few bits as required to deliver the target video quality, this seems like sort of an impossible-by-definition question. Maybe you can work back to the problem you're trying to solve?
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 23rd February 2017, 00:26   #8  |  Link
WhatZit
Registered User
 
Join Date: Aug 2016
Posts: 60
Quote:
Originally Posted by bob88 View Post
Making five 2 second samples and testing them one by one is annoying.
All I do is find one single scene that most represents the typical content of the video (usually by scrubbing it through a preview panel), and make a single 30 second CRF sample from that point.

This quick and dirty "average" guesstimate allows me to identify if things like grain or light characteristics are going to blow out bitrate across the whole film, irrespective of motion.

I also consider the resultant bitrate of that typical scene as the minimum I could expect from the whole CRF encode, and can adjust accordingly.
WhatZit is offline   Reply With Quote
Reply

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 15:04.


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