VideoHelp Forum




+ Reply to Thread
Results 1 to 8 of 8
  1. 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
    Quote Quote  
  2. 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"
    Quote Quote  
  3. Originally Posted by jagabo View Post
    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"

    Thank you it's working but with one small issue is that it keeps converting even if it's already finished from the batch it goes all over again.
    Quote Quote  
  4. 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.
    Quote Quote  
  5. Originally Posted by jagabo View Post
    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.
    Okay, I tried to do it with in ~dpnf but it was going wrong every time forgive me I'm not filmier with commands.
    Could you please tell me how to put the output in a new folder inside the original folder ?
    Quote Quote  
  6. 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"
    That will create a subdirectory called AC3 and put all the new files in that folder (same name as original).
    Quote Quote  
  7. Originally Posted by jagabo View Post
    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"
    That will create a subdirectory called AC3 and put all the new files in that folder (same name as original).

    i'ts working perfectly thanks man I relay appreciate it.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!