Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Audio encoding

Reply
 
Thread Tools Search this Thread Display Modes
Old 5th August 2021, 16:16   #1  |  Link
tijgert
Registered User
 
Join Date: Mar 2005
Location: Amsterdam
Posts: 46
How to batch reduce DTS-HD to DTS core with MKVmerge? (or any other way)

I need to convert a bunch of .MKV's that contain DTS-HD tracks into DTS core tracks, so basically strip the lossless HD part and keep the smaller core in the same video file, not as a separate audio file.
I'd like to batch convert them if possible, but I don't know how.
I think MKVmerge might be able to with the proper command as MKVtoolnix can do it with the gui, just not in batch.

Does anyone have the proper syntax for this or have another suggestion?
tijgert is offline   Reply With Quote
Old 5th August 2021, 18:01   #2  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,462
Try this mkv2core.bat file in a folder with the mkv's to convert:
Quote:
@echo off
rem Set the path to MkvMerge:
set MKVMERGE=C:\Portable\MkvToolNix\mkvmerge.exe
FOR %%I in (*.mkv) DO "%MKVMERGE%" -o "%%~nI_core.mkv" --reduce-to-core -1 "%%I"
pause
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 8th August 2021, 21:21   #3  |  Link
tijgert
Registered User
 
Join Date: Mar 2005
Location: Amsterdam
Posts: 46
I appreciate it, this gets me there!
tijgert is offline   Reply With Quote
Old 24th May 2022, 08:49   #4  |  Link
tijgert
Registered User
 
Join Date: Mar 2005
Location: Amsterdam
Posts: 46
I had to use this script again but also found another one in the meantime:
Quote:
@echo off
if not exist New\ md New

for %%a in (*.mkv) do Call :process "%%a"
goto :end

:process
Title "%~n1"
"mkvmerge.exe" --ui-language en --output "New\%~n1.mkv" --reduce-to-core 2 --title "%~n1" "%~n1.mkv"
goto :eof

:end
What I am failing to learn is why one script says --reduce-to-core 2 and the other --reduce-to-core -1

I can't find what the difference is.
tijgert is offline   Reply With Quote
Old 24th May 2022, 09:44   #5  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
The number refers to the TrackID. Since counting starts at 0 the "2" means the 3rd track will be reduced to core. "-1" is special and means mkvmerge tries to apply the option to all tracks.

https://mkvtoolnix.download/doc/mkvm...erge.track_ids
sneaker_ger is offline   Reply With Quote
Old 24th May 2022, 11:15   #6  |  Link
tijgert
Registered User
 
Join Date: Mar 2005
Location: Amsterdam
Posts: 46
Great, now that you point me to it I see the switch setting
tijgert is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:41.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.