Domanda

I've tried various iterations of the following attempting to extract the audio files from many webm's using mkvextract, I can't see what I am doing wrong.

FORFILES /P vid\ /C "cmd /c echo mkvextract tracks @path 2:\processed\@fname.ogg"
FORFILES /P vid\ /C "mkvextract tracks @path 2:\processed\@fname.ogg"
pause

My Directory structure

|-run.bat    
|-Mkvextract.eve
|-vid
  |-vid 1.webm
  |-vid 2.webm
|-processed
  |-outputgoeshere

The path leading to this contains spaces as do the webm files.

MKVExtract documentation: http://www.bunkus.org/videotools/mkvtoolnix/doc/mkvextract.html#mkvextract.escaping

forfiles documentation: http://ss64.com/nt/forfiles.html

È stato utile?

Soluzione

In this batch file correct the path to c:\vid and mkvextract.exe and the last term may need modification. It's worth a try.

@echo off
for /r "c:\vid" %%a in (*.webm) do (
   "c:\folder\mkvextract.exe" tracks "%%a" 2:\processed\"%%~nxa.ogg"
)
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top