Replies: 2 comments 3 replies
-
From a quick glance at the x265 code, it seems feasible if you can calculate a good target for the aggregate of the scene frames. x265 also provides MaxCLL/MaxFALL values in the same log. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Also, it doesn't really need to be implemented in the code. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Note firstly I'm not asking you to write this, I'd likely do it (slowly) if it seems reasonable.
I only did a first pass over the MadVR parsing code so I may be off-base on what it's using here, but (without --use-custom-targets) it appears to only be using the average scene PQ and max scene PQ values (and the MaxCLL / MaxFALL if not specified).
When re-encoding a file, x265 can output various per-frame statistics in CSV format including, importantly:
It would seem as though the scenecut + luma average + max could be used to calculate the average and max PQ per scene across the entire file, and used without the scenecuts to calculate the MaxCLL and MaxFALL values. Do you see any particular issues with using this data to calculate these items?
Scene cut detection is on by default in x265 but I'm not sure how well the default version works. I have to force --no-open-gop and keep the max I-frame distance very low to keep seeking from being broken in DV files so I have concerns about that interfering.
I wouldn't be against writing the code for this, I just wanted to get your opinion on whether it seemed doable before diving in and finding that the data wasn't usable for some reason. The full histogram seems necessary to compensate for the letterbox black areas so doing it this way might require specifying their dimensions to adjust the average upwards regardless of whether a crop is required in the DV data but I can't think of any other problems since CSV is easy to parse and the luma averages are all there.
Beta Was this translation helpful? Give feedback.
All reactions