I'm using the following command line to transcode, trying to get a MPEG-PS file with AC-3 audio. It correctly outputs MPEG-2 video but no audio:
Code: Select all
vlc -I dummy inputfile.mkv --sout #transcode{scale=1.0,samplerate=48000,channels=6,ab=640,vb=4096,keyint=16,acodec=mp2a,vcodec=mp2v}:std{access=file,mux=ps,dst="file.mpeg"}
The input file is MKV containing H.264 and AC-3 so I'm not sure why lame would be involved.
This is followed by the error "main stream error: Failed to create audio filter".
If I change "mp2a" to "a52" there is audio but the channels are wrong; the center channel becomes the rear left channel, so all voices sound like they're coming from your rear-left.
This is all with VLC 2.0.5 by the way, and confirmed with several videos.
Thanks for any help!