Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Analog Kid

macrumors G3
Original poster
Mar 4, 2003
9,430
12,696
I'm trying to write a batch conversion script that converts media from MKV rips to HEVC. Handbrake has the option to convert to 10bit HEVC, but the files are much larger. I presume the 10bit mode is there for HDR content, so no reason to convert SDR content using that profile. Is there a way to detect by script which video files are HDR?
 
I don’t see an option in HandBrakeCLI that could be used to detect HDR, but maybe you could use ffmpeg.
Take a look at this AppleScript that detects the audio track
https://forums.macrumors.com/threads/unable-to-remove-audio-in-quicktime-player-10-4.2354189/
https://handbrake.fr/docs/en/latest/cli/command-line-reference.html
Yeah, I've been looking through the documentation on ffprobe, which sounds like it might be able to do those kinds of queries, but man is it dense...
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.