I want to use the following to convert some M4A files to MP3. It works fine, but it displays the VLC GUI for each file and shows 'quit' as a second file to be converted. Is there a 'silent' mode, where it does the conversion with not graphics interface? Or is there something wrong with my syntax?
@echo off
for /f "delims=|" %%f in ('dir /b *.m4a') do (
CALL "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" "%%f" --sout=#transcode{acodec=mp3,ab=128,vcodec=dummy}:std{access="file",mux=raw,dst="converted/%%"} vlc://quit
)
UPDATE: I edited per Answer #1
@echo off
for /f "delims=|" %%f in ('dir /b *.m4a') do (
CALL "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" "%%f" --intf dummy --sout=#transcode{acodec=mp3,ab=128,vcodec=dummy}:std{access="file",mux=raw,dst=converted/"%%f"} vlc://quit
move "%%f" trash/"%%f"
)
What it does is open a DOS command window as each file is processed. What I want is a totally silent mode (if possible). I have another batch file which does something similar (rips CD files to MP3) and it seems to work like that:
FOR /R D:\ %%G IN (*.cda) DO (
"C:\Program Files (x86)\VideoLAN\VLC\vlc" -I http cdda:///D:/ --cdda-track=!y! :sout=#transcode{vcodec=none,acodec=%e%,ab=320,channels=2,samplerate=44100}:std{access="file",mux=raw,dst="%t%!PADDED!.%e%"} vlc://quit
)
What am I missing?
Comments
Post a Comment