View Single Post
Old 14th September 2021, 21:13   #2  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Quote:
Is it possible to determine the preset of an encoding via mediainfo?
Determine the preset "of an encoding", in the general case? Nope. What is "preset" even supposed to mean, in the general case?

If we are talking specifically about H.264 (AVC) streams that have been encoded by x264, then you can determine the x264 settings that were used to create that particular stream, e.g. via MediaInfo.

This is possible, because the x264 encoder software happens to "embed" its settings into the produced H.264 stream as meta data (custom SEI message).

But keep in mind that the effective x264 settings, that were used for a particular encode, are the result of the combination of the selected "--preset" and the selected "--tune" – plus any options that were set manually on top!

Having said that, if you want to figure out the closest preset/tune combination for the particular x264 settings of a given encode, then you should have a look at the x264 help screen:
https://pastebin.com/BVnttbZC

For example, "me=umh" is only used in the "slower" and "slowest" presets, but these presets also use "ref=8" and "ref=16" – which already tells us that none of your examples above exactly matches one of x264's presets

(Either that, or they were created with some old version of x264; the presets have changed over time)

Quote:
Which setting would be better in your point of view for an action movie?
As always:

Set "--tune" to whatever matches the type of footage your are encoding, set "--preset" to the slowest preset that you can afford, and finally adjust "--crf" until the resulting quality matches your demands.

That's pretty much it
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 14th September 2021 at 21:54.
LoRd_MuldeR is offline   Reply With Quote