creating batch file for multiple transcodes

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
dwarrenku
New Cone
New Cone
Posts: 1
Joined: 14 Nov 2006 22:18

creating batch file for multiple transcodes

Postby dwarrenku » 14 Nov 2006 22:22

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

jjbarrows
New Cone
New Cone
Posts: 2
Joined: 19 Apr 2007 13:56

playlist

Postby jjbarrows » 19 Apr 2007 13:59

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

fruitval
New Cone
New Cone
Posts: 2
Joined: 17 Apr 2007 19:06

Postby fruitval » 21 Apr 2007 07:20

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


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 45 guests