GUI and Batch Conversion give different results

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.
Davy
Blank Cone
Blank Cone
Posts: 14
Joined: 13 Jan 2011 18:44

GUI and Batch Conversion give different results

Postby Davy » 12 Oct 2011 16:08

If I convert an mp4 video downloaded from YouTube using the VLC GUI I get a usuable file. VLC displays the parameters used as:

sout=#transcode{vcodec=WMV2,vb=2000,scale=1,acodec=wma2,ab=128,channels=2,samplerate=44100}:file{dst='E:\Delete\TestTarget\blue light gui wmv2 wma2.asf'}
I can display the resulting file using VLC and edit it using Windows Movie Maker.

But if I use Visual Basic Script to do a batch conversion and use the VLC parameters:
sVLCparams = """C:\Program Files\VideoLAN\VLC\vlc.exe"" -I dummy -v " & """" & cFOL & sFileName & """" & " --sout=#transcode{vcodec=WMV2,vb=2000,scale=1,acodec=wma2,ab=128,channels=2,samplerate=44100}:standard{access=file,mux=asf,dst=" & """" & cFOLREN & sFileNameRoot & ".wmv" & """}" & " vlc://quit"
then I get the same size output file but the VBS script generates hundreds of 'vbv buffer overflow' errors. VLC can play the converted file but Windows Movie Maker cannot display the file.

The main difference between the parameters is that the VBS method uses the 'standard' parameter - without this the conversion does not run or causes VLC to crash.

Since I have a lot of files to convert I would liketo get the VBS batch program working. Anybody any thoughts what the difference might be? And whilst I'm asking, how do I know what to set the vb parameter to? Most files are 480 pixels wide.

thanks, Davy

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: GUI and Batch Conversion give different results

Postby VLC_help » 13 Oct 2011 15:44

So if you replace standard with file, it works correctly?

Davy
Blank Cone
Blank Cone
Posts: 14
Joined: 13 Jan 2011 18:44

Re: GUI and Batch Conversion give different results

Postby Davy » 13 Oct 2011 18:23

Dear VLC-help,
Thanks for that - Yes substituting ':file' for ':standard' does make an output file that I can now edit with Windows Movie Maker so thats a big step forward. Still get thousands of 'vbv buffer overflow errors though.
But how did you know about :file? - the help documentation I have from the Wiki (wiki.videolan.org/Documentation:Streaming_How to/Advanced Streaming ...) does not mention a :file module.
So my parameter line is now includes:
:file{access=file,mux=asf,dst= etc.
The GUI-generated parameters do not have the 'access' and 'mux' elements so I don't know how it 'knows' that the output should be to a file and what the mux should be.

thanks, Davy

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: GUI and Batch Conversion give different results

Postby VLC_help » 14 Oct 2011 19:38

With file mux is selected from file extension. So it must be set correctly.

EDIT: Any many VLC related documents are unfortunately outdated.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 38 guests