public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] libav/ffmpeg's bitrate options have no effect in Gentoo
@ 2011-09-06 11:48 Casper Ti. Vector
  2011-09-06 12:09 ` [gentoo-user] " Nikos Chantziaras
  0 siblings, 1 reply; 8+ messages in thread
From: Casper Ti. Vector @ 2011-09-06 11:48 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 890 bytes --]

Recently I found that the `-b' and `-ab' options used for setting the
output bitrate in ffmpeg and libav have no effect on my Gentoo machine.
With Ubuntu (and the Medibuntu repository enabled), this does not
happen.

For example, for any `<bitrate>' I use in
    % ffmpeg -ab <bitrate> -i test.ape test.mp3
I get only `test.mp3' in 64kbps bitrate (as default setting). It's
similar as for other audio/video formats and/or the `-b' option.

My Gentoo system is updated daily with global ~amd64 keyword in use. I
recently switched from ffmpeg to libav and they are both affected by
this issue.

Is anybody facing the same issue? Has anyone got any idea about the
possible causes and/or solutions? Please tell me if more information is
needed, thanks.

-- 
    Using GPG/PGP? Please get my current public key (ID: 0xAEF6A134,
valid from 2010 to 2013) from a key server.


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [gentoo-user] Re: libav/ffmpeg's bitrate options have no effect in Gentoo
  2011-09-06 11:48 [gentoo-user] libav/ffmpeg's bitrate options have no effect in Gentoo Casper Ti. Vector
@ 2011-09-06 12:09 ` Nikos Chantziaras
  2011-09-06 12:34   ` Casper Ti. Vector
  0 siblings, 1 reply; 8+ messages in thread
From: Nikos Chantziaras @ 2011-09-06 12:09 UTC (permalink / raw
  To: gentoo-user

On 09/06/2011 02:48 PM, Casper Ti. Vector wrote:
> Recently I found that the `-b' and `-ab' options used for setting the
> output bitrate in ffmpeg and libav have no effect on my Gentoo machine.
> With Ubuntu (and the Medibuntu repository enabled), this does not
> happen.
>
> For example, for any `<bitrate>' I use in
>      % ffmpeg -ab<bitrate>  -i test.ape test.mp3
> I get only `test.mp3' in 64kbps bitrate (as default setting). It's
> similar as for other audio/video formats and/or the `-b' option.
>
> My Gentoo system is updated daily with global ~amd64 keyword in use. I
> recently switched from ffmpeg to libav and they are both affected by
> this issue.
>
> Is anybody facing the same issue? Has anyone got any idea about the
> possible causes and/or solutions? Please tell me if more information is
> needed, thanks.

When running ffmpeg, it says:

"This program is not developed anymore and is only provided for 
compatibility. Use avconv instead (see Changelog for the list of 
incompatible changes)."

So try with avconv instead.  But for MP3, you should probably be using 
LAME with a VBR quality setting instead.




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Re: libav/ffmpeg's bitrate options have no effect in Gentoo
  2011-09-06 12:09 ` [gentoo-user] " Nikos Chantziaras
@ 2011-09-06 12:34   ` Casper Ti. Vector
  2011-09-06 14:42     ` Michael Mol
  0 siblings, 1 reply; 8+ messages in thread
From: Casper Ti. Vector @ 2011-09-06 12:34 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1042 bytes --]

Some additional information: the `-ab' and `-b' options seems to be
broken on my machine, since they accepts any argument, even those which
will cause error in the case of Ubuntu, for example `@@' or so.

Nevertheless, the option parsing is not completely broken, because an
unknown option ffmpeg will directly trigger a error in ffmpeg on my
machine, but `-ab' and `-b' (as expected) do not.

On Tue, Sep 06, 2011 at 03:09:13PM +0300, Nikos Chantziaras wrote:
> When running ffmpeg, it says:
> "This program is not developed anymore and is only provided for 
> compatibility. Use avconv instead (see Changelog for the list of 
> incompatible changes)."

Forgot to mention, but avconv suffers from the same problem...

> So try with avconv instead.  But for MP3, you should probably be using 
> LAME with a VBR quality setting instead.

In fact I don't quite know what you mean in this sentence :|

-- 
    Using GPG/PGP? Please get my current public key (ID: 0xAEF6A134,
valid from 2010 to 2013) from a key server.


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Re: libav/ffmpeg's bitrate options have no effect in Gentoo
  2011-09-06 12:34   ` Casper Ti. Vector
@ 2011-09-06 14:42     ` Michael Mol
  2011-09-06 14:56       ` Casper Ti. Vector
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Mol @ 2011-09-06 14:42 UTC (permalink / raw
  To: gentoo-user

On Tue, Sep 6, 2011 at 8:34 AM, Casper Ti. Vector
<caspervector@gmail.com> wrote:
> On Tue, Sep 06, 2011 at 03:09:13PM +0300, Nikos Chantziaras wrote:
>> So try with avconv instead.  But for MP3, you should probably be using
>> LAME with a VBR quality setting instead.
> In fact I don't quite know what you mean in this sentence :|

'lame' is an MP3 encoder. VBR is 'variable bitrate', which means that
high-information sections in the input stream get more bits in the
output bitstream, and low-information sections in the input stream get
fewer bits in the output bitstream. An encoded song might use 192Kb/s
for a few seconds, and then 32Kb/s for a second, and jump up to
256Kb/s for a quarter-second before dropping down to 128Kb/s--but
still sound to your ear like it was encoded at a constant bitrate of
256Kb/s. All so that audio fidelity is maintained when there's
something there to actually hear.

Or, more simply:
* 'lame' is an MP3 encoder
* 'VBR' stands for 'variable bitrate', and offers a better
size/quality tradeoff scale than saying "I want 192Kb/s"

-- 
:wq



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Re: libav/ffmpeg's bitrate options have no effect in Gentoo
  2011-09-06 14:42     ` Michael Mol
@ 2011-09-06 14:56       ` Casper Ti. Vector
  2011-09-06 16:29         ` Nikos Chantziaras
  0 siblings, 1 reply; 8+ messages in thread
From: Casper Ti. Vector @ 2011-09-06 14:56 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1325 bytes --]

But VBR seems to be disabled with the command line I used...
And, whether VBR is enabled, the wrong parsing of the argument of
bitrate options indicate that some error must exist somewhere.

On Tue, Sep 06, 2011 at 10:42:06AM -0400, Michael Mol wrote:

> 'lame' is an MP3 encoder. VBR is 'variable bitrate', which means that
> high-information sections in the input stream get more bits in the
> output bitstream, and low-information sections in the input stream get
> fewer bits in the output bitstream. An encoded song might use 192Kb/s
> for a few seconds, and then 32Kb/s for a second, and jump up to
> 256Kb/s for a quarter-second before dropping down to 128Kb/s--but
> still sound to your ear like it was encoded at a constant bitrate of
> 256Kb/s. All so that audio fidelity is maintained when there's
> something there to actually hear.
> 
> Or, more simply:
> * 'lame' is an MP3 encoder
> * 'VBR' stands for 'variable bitrate', and offers a better
> size/quality tradeoff scale than saying "I want 192Kb/s"

Thanks, I understand what LAME and VBR is, but was just mistook the idea
of the original sentence as "use the `lame' program instead of `ffmpeg'
or `libav'" :]

-- 
    Using GPG/PGP? Please get my current public key (ID: 0xAEF6A134,
valid from 2010 to 2013) from a key server.


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [gentoo-user] Re: libav/ffmpeg's bitrate options have no effect in Gentoo
  2011-09-06 14:56       ` Casper Ti. Vector
@ 2011-09-06 16:29         ` Nikos Chantziaras
  2011-09-06 16:46           ` Michael Mol
  2011-09-06 23:27           ` Casper Ti. Vector
  0 siblings, 2 replies; 8+ messages in thread
From: Nikos Chantziaras @ 2011-09-06 16:29 UTC (permalink / raw
  To: gentoo-user

On 09/06/2011 05:56 PM, Casper Ti. Vector wrote:
>> Or, more simply:
>> * 'lame' is an MP3 encoder
>> * 'VBR' stands for 'variable bitrate', and offers a better
>> size/quality tradeoff scale than saying "I want 192Kb/s"
>
> Thanks, I understand what LAME and VBR is, but was just mistook the idea
> of the original sentence as "use the `lame' program instead of `ffmpeg'
> or `libav'" :]

Actually, that's what I meant :-/  Use the 'lame' program.  The package 
is "media-sound/lame".  After emerging it, you can encode a file with 
"lame -V 0 input.wav"




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Re: libav/ffmpeg's bitrate options have no effect in Gentoo
  2011-09-06 16:29         ` Nikos Chantziaras
@ 2011-09-06 16:46           ` Michael Mol
  2011-09-06 23:27           ` Casper Ti. Vector
  1 sibling, 0 replies; 8+ messages in thread
From: Michael Mol @ 2011-09-06 16:46 UTC (permalink / raw
  To: gentoo-user

On Tue, Sep 6, 2011 at 12:29 PM, Nikos Chantziaras <realnc@arcor.de> wrote:
> On 09/06/2011 05:56 PM, Casper Ti. Vector wrote:
>>>
>>> Or, more simply:
>>> * 'lame' is an MP3 encoder
>>> * 'VBR' stands for 'variable bitrate', and offers a better
>>> size/quality tradeoff scale than saying "I want 192Kb/s"
>>
>> Thanks, I understand what LAME and VBR is, but was just mistook the idea
>> of the original sentence as "use the `lame' program instead of `ffmpeg'
>> or `libav'" :]
>
> Actually, that's what I meant :-/  Use the 'lame' program.  The package is
> "media-sound/lame".  After emerging it, you can encode a file with "lame -V
> 0 input.wav"

You're talking past each other. Casper thought you meant 'lame' as an
adjective, not as a proper noun.

-- 
:wq



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Re: libav/ffmpeg's bitrate options have no effect in Gentoo
  2011-09-06 16:29         ` Nikos Chantziaras
  2011-09-06 16:46           ` Michael Mol
@ 2011-09-06 23:27           ` Casper Ti. Vector
  1 sibling, 0 replies; 8+ messages in thread
From: Casper Ti. Vector @ 2011-09-06 23:27 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 648 bytes --]

OK, but I was actually converting an FLV file, and didn't want to use
both programs, especially when ffmpeg already has support for
libmp3lame.

Anyway, there must be some problem in ffmpeg/libav (probably) or
something else (less probable than the former) on my computer.

On Tue, Sep 06, 2011 at 07:29:56PM +0300, Nikos Chantziaras wrote:
> Actually, that's what I meant :-/  Use the 'lame' program.  The package 
> is "media-sound/lame".  After emerging it, you can encode a file with 
> "lame -V 0 input.wav"

-- 
    Using GPG/PGP? Please get my current public key (ID: 0xAEF6A134,
valid from 2010 to 2013) from a key server.


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-09-06 23:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-06 11:48 [gentoo-user] libav/ffmpeg's bitrate options have no effect in Gentoo Casper Ti. Vector
2011-09-06 12:09 ` [gentoo-user] " Nikos Chantziaras
2011-09-06 12:34   ` Casper Ti. Vector
2011-09-06 14:42     ` Michael Mol
2011-09-06 14:56       ` Casper Ti. Vector
2011-09-06 16:29         ` Nikos Chantziaras
2011-09-06 16:46           ` Michael Mol
2011-09-06 23:27           ` Casper Ti. Vector

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox