Hi,
I'm looking for a way to run a script file in folder that contains mkv files and copy the video and subtitles and everything else as is except the audio, convert it to AC3, and saving the new files in the same name using ffmpeg.
the issue I'm facing is when I open the bat file is just open and closes immediately.FOR %%f IN (*.mkv) DO C:\Users\ConvertDTStoAC3\ffmpeg\bin\ffmpeg.exe -i %%f -map 0 -vcodec copy -scodec copy -acodec ac3 -b:a 640k “%%~dpnf-AC3.mkv"
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 8 of 8
Thread
-
-
you used a different type of opening and closing quotation mark (“ %%~dpnf-AC3.mkv ") (“” / "" (valid))
also check the filenames as it suggests ProWo ..
I recommend applying 'pause' to the end of the script ... so the cmd window stays open and shows you where the error ..
Code:FOR %%f IN (*.mkv) DO C:\Users\ConvertDTStoAC3\ffmpeg\bin\ffmpeg.exe -i %%f -map 0 -vcodec copy -scodec copy -acodec ac3 -b:a 640k %%~dpnf-AC3.mkv pause
責任者-MDX -
-
Thank you so much man! I also needed the guy below you to notice the different quote mark, but even after that I couldn't get this to work until I removed spaces from source files. I appreciate the hell out of you taking the time to answer questions like these. Even years later could come in handy. Thanks again!
-
Thank you so much man! I also needed the guy above you to know to remove spaces in source file, but even with that I needed to correct that Quotation mark from OP's script.
I appreciate the hell out of you taking the time to answer questions like these. Even years later could come in handy. Thanks again!
Similar Threads
-
How to batch convert/multiplex any files with ffmpeg
By Baldrick in forum User guidesReplies: 215Last Post: 1st Dec 2023, 11:38 -
FFMPEG - Looking for simple batch script to convert entire folder
By steptoe in forum Video ConversionReplies: 6Last Post: 20th Mar 2017, 22:49 -
Mkv convert dts sound into ac3
By fits79 in forum AudioReplies: 5Last Post: 5th Jan 2017, 21:41 -
Need help with ffmpeg script to batch convert audio in MKV files
By mikeveli20 in forum AudioReplies: 5Last Post: 18th Nov 2016, 13:21 -
How to convert AC3 True-HD to DTS ?
By Kernell in forum AudioReplies: 15Last Post: 29th May 2016, 21:42