Generating distinct .ts output names from a .bat file

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.
poiuytrewq
New Cone
New Cone
Posts: 2
Joined: 19 Jan 2007 02:59

Generating distinct .ts output names from a .bat file

Postby poiuytrewq » 19 Jan 2007 03:05

I am not sure whether the issue here is VLC or bat files, but here goes.

I have set up a .bat file that automatically transcodes my media for viewing on my dreambox using this line:

"%ProgramFiles%\VideoLan\VLC\vlc" -vvv %1 :sout=#transcode{vcodec=mp2v,vb=3072,scale=1,acodec=mp2a,ab=192,channels=2}:duplicate{dst=std{access=file,mux=ts,dst="D:\MyVideos\DreamShare\stream.ts"}}

The one problem with it though, is that it automatically generates the same output name for each file i input: stream.ts

I would like to reconfigure this so that each output is named unquely or (ideally) after the input file.

eg. panda.wmv becomes panda.ts after it is transcoded.

Does anyone know how to do this?

p.

Tappen
Cone that earned his stripes
Cone that earned his stripes
Posts: 150
Joined: 30 Oct 2006 07:55

Postby Tappen » 19 Jan 2007 06:47

http://labmice.techtarget.com/articles/batchcmds.htm

It will tell you to use "%~p1%~n1.ts" instead of "D:\MyVideos\DreamShare\stream.ts"

poiuytrewq
New Cone
New Cone
Posts: 2
Joined: 19 Jan 2007 02:59

Postby poiuytrewq » 19 Jan 2007 09:16

http://labmice.techtarget.com/articles/batchcmds.htm

It will tell you to use "%~p1%~n1.ts" instead of "D:\MyVideos\DreamShare\stream.ts"
Thanks! It seems that %~n1 actually did the trick... thanks...

p.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Bing [Bot] and 17 guests