I'm looking for help with batch automations to create MKV files.
To start with, I've figured out how to convert MP4 to MKV using the following code:
Unfortunately, either the video and subtitles are duplicated, or the subtitle tracks are not embedded, as the lines between "(" and ")" must be removed. This is a pity, as this method works perfectly well when you have different subtitles for the same episode, as they are automatically detected for each one.
Is there a technique for doing this correctly?
Then in the final phase, I'd like to change the name of these files so that I can sort them in my library.
For example, I have :
Special Ops Lioness 01x01 Sacrificial Soldiers.mkv
Special Ops Lioness 01x02 The Beating.mkv
Special Ops Lioness 01x03 Bruise Like a Fist.mkv
And I'd like to get something like :
Once again, what would be a simple way of achieving this?
The best thing would be to have everything in a single batch!
+ Reply to Thread
Results 1 to 2 of 2
in the final phase, I'd like to change the name of these files so that I can sort them in my library.
Try this code. Manipulate as required
set title=Special Ops Lioness 01x02 The Beating.mkv set pt1=%title:~0,19% set pt2=%title:~20,2% set pt3=%title:~23,2% set title1=%pt1%.S%pt2%E%pt3%.1080p.mkv set title1=%title1: =.% echo %title1%
Input : Special Ops Lioness 01x02 The Beating.mkv
Output : Special.Ops.Lioness.S01E02.1080p.mkv