The script is huge and very specific, but it could be a good starting point for anyone wanting to do something similar.
FR.zip (4.1 KB)
First thing, I hard coded the paths. You’re going to have a time setting those up for your computer.
I also hard coded the amount of processes to run at a time. Those will need to be adjusted according to your machine’s ability.
It wants a version of ffmpeg that has libx265 apart from the TVAI ffmepg.
The flow goes: it looks for a file that lists out all the folders you want to process (Example included in the zip). Once that is loaded it looks at all the mkv, mov or mpeg files and if they have a txt file with the same name, it adds them to be processed. The text file lists out all the options you want to run on it. Example
-ff True —de-DVD pass/split into parts. It only can split into two parts right now.
-ss null —Set start time.
-t 00:06:34.753 —Set part one duration
-r 23.976 —Set frame rate.
-amq True —Do AMQ pass at 100% scale?
-prot True —Do the hard-coded Proteus setting pass?
-ahq null —Run AHQ pass, this will run before prot if you should choose to do both, but it was not meant to do both.
-type png —Input type for the prot pass. Not really helpful, but you could put mov here if you don’t have -ff nor -amq set to True.
-fin True —Encode result to H.265
-pt2 True —Is there a second part?
-ss2 00:07:21.198 —Second part start
-t2 00:35:21.084 —Second part duration
-clean True —Delete all image files when done?
Anyway, you don’t have to include all of the options or even put True it just checks for null and if it’s something else it takes that as a do it.
Enjoy.