I need to batch-demux AC3 audio from MPEG files. I looked at the command-line for DGMPGDec's DGIndex.exe program, and I can't find the option to ONLY demux the audio from an MPEG file (not saving a d2v project). Is there any way to do this from the command-line (the same thing as going to File --> Demux Audio Only)? On the side, is there any way to change the filename format of the demuxed audio (e.g. from "myfile.mpg" to "myfile.ac3" instead of something like "myfile T01 2_0ch 256Kbps.ac3")?
+ Reply to Thread
Results 1 to 5 of 5
Originally Posted by Soopafresh
If I have a mpglist.txt (or voblist.txt) that contains:
I would like to get .d2v and .ac3 of the same name (or ac3 files with all of the format info tacked on if that cannot be dropped). The batch file that soopafresh posted above names that files 'x'. Is there a way with a single batch file (or multiple if needed) to take the first line of the mpglist.txt file as an argument like %1 (and then the next line, etc) and use that to create the output names?
Also, what does the last line (for %%aa in...) do?
Found a thread over on Doom9 to help me figure this out.
Here is the bat file that I ended up with:
FOR /F "usebackq" %%A IN (`dir /b /on *.mpg`) DO dgindex -IF=[%%A] -FO=0 -AT=[template.avs] -OF=[%%~nA] -HIDE -EXIT