*Edit* I am using Windows 7 64 Bit, running VLC 2.1.5 32 bit (for compatibility with Firefox).
I have successfully used a command line of the form:
Code: Select all
vlc.exe "E:\Input Files\Test.mpg" --sout=#transcode{vcodec=h264,scale=Auto,acodec=mp3,ab=128,channels=2,samplerate=44100}:file{dst="F:\Output Files\Test.mp4",no-overwrite} vlc://quit
There are two problems with this:
1) The command line immediately proceeds to the next command prompt (while vlc is still running).
It doesn't wait for vlc to exit.
(In unix-speak I would say that the vlc process is running in a new shell or in the background).
No other windows commands do this (I haven't set anything to make this happen).
So it seems that if I put this syntax in a FOR ... DO loop it will iterate all the loops without waiting.
So I'll get all the input files opened at the same time and converted in parallel, which will kill Windows.
2) When I try to add the "Video Scaling" filter (croppadd), vlc opens and gives me a message that the H264 codec doesn't exist, and that this is "not vlc's problem"!
As soon as I remove the "vfilter=croppadd" syntax, vlc works correctly again.
ie: this fails
Code: Select all
vlc.exe "E:\Input Files\Test.mpg" --sout=#transcode{vcodec=h264,vfilter=croppadd{paddleft=120,paddright=120},scale=Auto,acodec=mp3,ab=128,channels=2,samplerate=44100}:file{dst="F:\Output Files\Test.mp4",no-overwrite} vlc://quit
"This is not an error inside VLC media player." - but it works as soon as I remove "vfilter=croppadd{paddleft=120,paddright=120}," from the command!Streaming / Transcoding failed:
It seems your Libav/FFmpeg (libavcodec) installation lacks the following encoder:
H264 - MPEG-4 AVC (part 10).
If you don't know how to fix this, ask for support from your distribution.
This is not an error inside VLC media player.
Do not contact the VideoLAN project about this issue.
Can anyone help?