Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Encoding video with MEncoder (MEncoder SVN R34540 (Ubuntu)) with AC3 codec from lavc, results in no sound on VLC 2.03. The encoded video sounds OK on Totem or Mplayer but there is no sound on VLC.

VLC plays AC3 sound from original video, but when I use -oac copy option with MEncoder the result is the same.

My OS: Ubuntu 12.04 x64

share|improve this question
    
Perhaps you could try using the latest version, instead. You can download it here from the official Video-LAN site. Hope I helped :) –  Mochan Dec 10 '12 at 21:28
    
Thank you, but 2.03 is the latest version of vlc for precise (12.04). I've tried vlc 2.04 in LinuxMint on virtualbox with same negative results. –  Miguel Dec 10 '12 at 21:37
    
I see. I thought that 2.04 was latest, according to the front page (though I'm in Windows, so it could be incorrect as you said). It's definitely unusual, and I'm afraid I won't be of much used. I hope your question is solved quickly :) –  Mochan Dec 11 '12 at 7:41
add comment

1 Answer

Could you try using avconv instead? AFAIK, they share a lot of the same encoders, so this will test if the problem is a mencoder-specific issue. To copy all streams, use:

avconv -i input.avi -c copy output.avi

(obviously use whatever file extensions are appropriate to your needs)

share|improve this answer
    
I've tried avconv and it works as expected. –  Miguel Dec 11 '12 at 15:41
    
avconv command line: avconv -i input.mkv -c:a ac3 -b 128k -c:v mpeg4 output.avi mencoder command line: mencoder input.mkv -oac lavc -ovc lavc -lavcopts vcodec=mpeg4:acodec=ac3:abitrate=128 -o output.avi -channels 5 In both cases, the input file: video -> h264 audio -> ac3 6 channels If I use -oac copy with mencoder I get no sound, too. The problem here is the mencoder+vlc combination, becasue the same encoded video with mencoder plays ok (with sound) in totem or mplayer. –  Miguel Dec 11 '12 at 15:52
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.