Hi,
I have below script working fine but I need it before converting DTS audio file duplicate it.
Let's say I have MKV file contains three components.
vidoeo
DTS
Subtitle
what I want after running the script these four components
video
AC3
DTS
subtitle
FOR %%f IN (*.mkv) DO C:\Users\MS141\Desktop\ConvertDTStoAC3\ffmpeg\bin\ffmpeg.exe -i %%f -map 0 -vcodec copy -scodec copy -acodec ac3 -b:a 640k %%~dpnf-AC3.mkv
+ Reply to Thread
Results 1 to 8 of 8
-
-
Try the -map options like in this thread:
https://stackoverflow.com/questions/21567029/ffmpeg-to-duplicate-an-audio-stream-and-e...his-new-stream -
The command line in that thread didn't work. But a small modification does:
Code:FOR %%f IN (*.mkv) DO ffmpeg.exe -i "%%f" -map 0:v -c:v copy -scodec copy -map 0:a -c:a:0 copy -map 0:a -c:a:1 ac3 -b:a 640k "%%~dpnf-AC3.mkv"
-
-
The problem is you're creating new MKV files in the same folder -- the batch process sees the new files and and tries to process them too. Put the new files is a different folder.
-
-
Something like:
Code:MD AC3 FOR %%f IN (*.mkv) DO ffmpeg.exe -i "%%f" -map 0:v -c:v copy -scodec copy -map 0:a -c:a:0 copy -map 0:a -c:a:1 ac3 -b:a 640k "AC3\%%~nf.mkv"
-
Similar Threads
-
Converting an AAC Mono file to AAC Stereo, higher audio bitrate?
By brightmademedia in forum AudioReplies: 2Last Post: 17th Jun 2017, 09:41 -
Premiere: Duplicate left audio channel to the right channel?
By ash_melb in forum EditingReplies: 7Last Post: 21st Oct 2015, 11:32 -
Audio Sync Issue Converting MKV to File Folder Structure Using AVStoDVD
By Polotzka in forum Newbie / General discussionsReplies: 1Last Post: 23rd Sep 2015, 01:05 -
Detect duplicate frames and write to text file
By nesburf in forum Video ConversionReplies: 15Last Post: 27th Aug 2015, 08:09