I use command line VLC to extract audio from videos and I have a little problem with quoting the destination filename/path.
The following command (built within batch files or directly in cmd) works well most of the times:
Code: Select all
cmd> "C:\Program Files\VideoLAN\VLC\vlc" -vvv -I dummy "M:\--- Path ---\file with spaces.mp4" --no-sout-video --sout-avcodec-strict=-2 --sout=#std{access=file,mux=mp4,dst="M:\--- Path ---\file with spaces.m4a"}
But when run with a path like "--- Path, with Comma ---", like this :
Code: Select all
cmd> "C:\Program Files\VideoLAN\VLC\vlc" -vvv -I dummy "M:\--- Path, with Comma ---\file with spaces.mp4" --no-sout-video --sout-avcodec-strict=-2 --sout=#std{access=file,mux=mp4,dst="M:\--- Path, with Comma ---\file with spaces.m4a"}
As per "https://wiki.videolan.org/Transcode" in the Windows section, I tried doubling the backslashes, to no avail.
While double-backslashing paths, I tried sinple-backslashing the comma, but it got interpreted as a path separator too.
It's not really clear if there is a "VLC" escape character, but it seems a comma is interpreted even in double quotes inside the curly braces.
[ Side notes about the Transcode wiki page:
- on Windows 7 x64 and VLC 2.2.4, using "--sout=#standard{..." or "--sout=#std{..." is the same. The doc is a bit obscure on that.
- I cant find anymore the "SendTo" scripts, were they removed ? I used them as a base for my current SendTo scripts. ]
Am I missing something or is it a VLC bug ?
Thanks !
PS: I know I could extract first to a "correct/without commas" temporary path, then copy the file, but ...