LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-25-2010, 03:38 PM   #1
Ehtetur
Member
 
Registered: Mar 2008
Location: Denver, CO
Distribution: Red Hat Enterprise Linux
Posts: 52

Rep: Reputation: 16
mencoder: how to keep audio bitrate setting at 192 kbps


I need some help with mencoder settings... I'm doing a simple transcoding of an avi file from FFmpeg MPEG4 codec to XVID MPEG-4 codec.
The problem is that the audio bitrate is changing from 192 kbps to 32 kbps. The audio codec for both files is mp3 (MPEG-1 layer 3).

(I'm transcoding the FFmpeg MPEG4 encoded avi because my blu-ray player doesn't see, let alone play it. Any XVID MPEG-4 encoded avi files the blu-ray player sees and plays fine).

I ran mencoder trying the four settings below but the audio bitrate still comes out at 32 kbps:
Code:
mencoder camping_en.avi -ovc xvid  -oac mp3lame -xvidencopts bitrate=192 -o camping_us.avi
mencoder camping_en.avi -ovc xvid  -oac mp3lame -xvidencopts bitrate=687 -o camping_us.avi
mencoder camping_en.avi -ovc xvid  -oac mp3lame -xvidencopts bitrate=9146 -o camping_us.avi
mencoder camping_en.avi -ovc xvid  -oac mp3lame -xvidencopts bitrate=192000 -o camping_us.avi << OK, this was a WTF, but I'm desperate!
Anyone have an idea how to keep the bitrate at 192 kbps?
 
Old 11-25-2010, 03:51 PM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
Your settings are changing the video bitrate, not the audio bitrate.

To set the audio bitrate, use the flag '-lameopts cbr:br=192' (constant bit rate, bit rate 192kpbs). The mencoder man page should have some examples.

Incidentally, you may not need to reencode both the video and audio streams (depending on what the player can handle). You can use the '-vcodec copy' and '-acodec copy' flags to just copy the streams.

Last edited by neonsignal; 11-25-2010 at 03:57 PM.
 
Old 11-25-2010, 03:59 PM   #3
Ehtetur
Member
 
Registered: Mar 2008
Location: Denver, CO
Distribution: Red Hat Enterprise Linux
Posts: 52

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by neonsignal View Post
Your settings are changing the video bitrate, not the audio bitrate.

To set the audio bitrate, use the flag '-lameopts cbr:br=192' (constant bit rate, bit rate 192kpbs). The mencoder man page should have some examples.
Thanks neonsignal, that did it! =)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mencoder ignores audio bitrate parameter Mistreated Linux - Software 4 01-10-2010 12:51 PM
m-audio 192 functionality jgag Ubuntu 1 09-20-2007 10:19 AM
48000Hz bitrate Audio distorted fabre Debian 5 12-09-2006 03:22 PM
VLC shuffle playlist broken? cann't play 192 kbps aac songs? aldimeneira Linux - Software 0 10-11-2006 07:02 PM
Mencoder 2pass bitrate control TheShemeta Linux - Software 1 12-17-2003 03:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration