Transcoding query
Posted: 06 Jul 2008 01:27
I am trying to convert some MP3 files in a folder to .ts format.
I am using the following...
for %%a in (*.mp3) do "C:\Program Files\VideoLAN\VLC\vlc.exe" -I dummy -vvv %%a --sout=#transcode{acodec=mp2a,ab=192,channels=6}:standard
access=file,mux=raw,dst=%%a.ts} vlc:quit
which works but there are a couple of flaws
1) The MP3 files have spaces in the file name but the code only works if I replace all the spaces with a _ which is very time consuming
2) The output file name becomes filename.mp3.ts
How do I change the code so I don't have to replace all the spaces in the file names and the output filename becomes filename.ts?
Thanks in anticipation
Kewa
I am using the following...
for %%a in (*.mp3) do "C:\Program Files\VideoLAN\VLC\vlc.exe" -I dummy -vvv %%a --sout=#transcode{acodec=mp2a,ab=192,channels=6}:standard
access=file,mux=raw,dst=%%a.ts} vlc:quit
which works but there are a couple of flaws
1) The MP3 files have spaces in the file name but the code only works if I replace all the spaces with a _ which is very time consuming
2) The output file name becomes filename.mp3.ts
How do I change the code so I don't have to replace all the spaces in the file names and the output filename becomes filename.ts?
Thanks in anticipation
Kewa