Page 1 of 1

creating batch file for multiple transcodes

Posted: 14 Nov 2006 22:22
by dwarrenku
I have created a batch file to automatically transcode files to mp4 for my ipod. Here is the code:

Code: Select all

@echo off "C:\Progra~1\VideoLAN\VLC\vlc.exe" %1 --sout=#transcode{vcodec=mp4v,vb=1500,scale=.5,acodec=mp4a,ab=128,channels=2,canvas-width=320,canvas-height=240} :duplicate{dst=std{access=file,mux=mp4,dst="%1.mp4"}}
The problem I have though is that I want to be able to encode multiple files. So if I have four episodes of a show, I can just drag them to the .bat file and have the program go through all four shows, saving each show with it's designated name. Is there any way to do this?

Thanks in advance

playlist

Posted: 19 Apr 2007 13:59
by jjbarrows
hi,
i want to do the same thing, and read an blog about someone doing this on a MAC using a playlist - i do not know enough to get any further than you have already though, but if you can feed vlc a play list then maybe it will work.
-joseph

Posted: 21 Apr 2007 07:20
by fruitval
Do you mind me asking what version you have?

Try this mate:

Code: Select all

@Set VLC_IPOD_Encoder=%0 @If [%1]==[/Encode] GoTo Encode :Shift_Loop @If [%1]==[] GoTo Done @Call "%VLC_IPOD_Encoder%" /Encode %1 @Shift @GoTo Shift_loop :Encode @"C:\Program Files\VideoLAN\VLC\vlc.exe" "%2" --sout=#transcode{vcodec=mp4v,vb=1500,scale=.5,acodec=mp4a,ab=128,channels=2,canvas-width=320,canvas-height=240}:duplicate{dst=std{access=file,mux=mp4,dst="%2.mp4"}} @GoTo End :Done @Echo Done :End