Page 1 of 1

Cooonverting videos for Zune

Posted: 09 Jul 2010 07:09
by troys
I'm trying to convert mov and mp4 files for use on Zune. I made the following batch files based on the how-to instructions on this site. When I drag a file to the batch file, it exits without converting. How do I troubleshoot?

Troy

Code: Select all

@REM Set this next line to where you want your output files: @SET outdir=e:\video\ @REM No further changes should be needed below for VLC 0.9.8a @SET infile=%1 @SET infile=%infile:"=% @FOR /F "delims=" %%i in ("%infile%") do SET filename=%%~ni @SET outfile=%outdir%%filename%.wmv "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" -vvv --sout="#transcode{vcodec=WMV2,vb=750,width=320,canvas-height=240,acodec=wma,ab=128,channels=2}:duplicate{dst=std{access=file,mux=asf,dst=%outfile%}}" "%infile%" --play-and-exit pause

Re: Cooonverting videos for Zune

Posted: 09 Jul 2010 14:43
by ILEoo
add --extraintf=logger to place log-output to vlc-log.txt.

And you shouldn't need duplicate in that chain at all.

Re: Cooonverting videos for Zune

Posted: 09 Jul 2010 18:46
by troys
Thanks for the reply. The command being run is

Code: Select all

E:\p\feck\ifm-hd>"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" -vvv --sout="#tra nscode{vcodec=WMV2,vb=750,width=320,canvas-height=240,acodec=wma,ab=128,channels =2}" "E:\p\fred\ijk-hd\vint.mov" --extrainf=logger --play-and-exit
and i get the error
The command line options couldn't be loaded, check that they are valid.

Help very much appreciated.

Re: Cooonverting videos for Zune

Posted: 10 Jul 2010 15:30
by VLC_help
Transcode itself isn't enough, you need output also. So something like

Code: Select all

vlc --play-and-exit input.mov :sout=#transcode{vcodec=WMV2,vb=800,scale=1,acodec=wma2,ab=128,channels=2,samplerate=44100}:file{mux=asf,dst=output.wmv}

Re: Cooonverting videos for Zune

Posted: 10 Jul 2010 19:39
by troys
I am getting the same error as before. Here is what I have:
The command line options couldn't be loaded, check that they are valid.

Code: Select all

E:\p\f\i>"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --play-and-exit - -extrainf=logger "E:\p\f\i\decV.mp4" :sout=#transcode{vcodec=WMV 2,vb=800,scale=1,acodec=wma2,ab=128,channels=2,samplerate=44100}:file{mux=asf,ds t=E:\p\f\i\decV.mp4.wmv}

Re: Cooonverting videos for Zune

Posted: 11 Jul 2010 16:15
by VLC_help
Should the command be on one line?