LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   lame -vs- oggenc (https://www.linuxquestions.org/questions/linux-software-2/lame-vs-oggenc-349866/)

ubuntu-norm 08-04-2005 05:24 AM

lame -vs- oggenc
 
Hello all,

I am using both to run a test of both encodders.

For mp3
Code:

lame -b <bitrate> infile outfile
For ogg
Code:

oggenc -b <bitrate> infile -o outfile
What I can't find a good answer to is what are the defaults for both commands. I want to compare apples to apples. So if one defaults to Variable Bitrate encodeing and the other defaults to Average Bitrate, then the test I am doing would be in error.

Also if you have any input on how a test comparing the two formats should be done, please post those as well.

Thanks,

Norm

titopoquito 08-04-2005 05:59 AM

If you want to get an overview about encoders, their quality and other info take a look at http://www.hydrogenaudio.org/forums/index.php?act=idx. There you can find lots of info about these kind of questions and good comparisons (that are done quite objectively).

Simon Bridge 08-04-2005 06:00 AM

http://w-ber.ormgas.com/mp3_vs_vorbis/

sparxxx13 12-29-2005 02:21 PM

lame
 
hey im using lame too and im wondering if you can change the bitrate to higher than 128 the default?

ubuntu-norm 12-29-2005 02:24 PM

It's been a while since I visited this. I think you can. Check out the man page on lame.

sparxxx13 12-29-2005 02:37 PM

could i have a link to that please. thx

ubuntu-norm 12-29-2005 02:52 PM

This is the best one on the internet I could find http://www.die.net/doc/linux/man/man1/lame.1.html

The most up to date one will be on your computer, just type

Code:

man lame
at the console.

sparxxx13 12-29-2005 05:49 PM

nice link but it didn't tell me this: is there a way when making a higher bit rate like 320 to 128 to my songs. Is there a way i can do the whole folder at once or just one song at a time?

ubuntu-norm 12-29-2005 06:05 PM

Code:

ABR and VBR options:

-b bitrate
    For MPEG1 (sampling frequencies of 32, 44.1 and 48 kHz) n = 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320

    For MPEG2 (sampling frequencies of 16, 22.05 and 24 kHz) n = 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160

    Specifies the minimum bitrate to be used. However, in order to avoid wasted space, the smallest frame size available will be used during silences.
-B bitrate
    For MPEG1 (sampling frequencies of 32, 44.1 and 48 kHz) n = 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320

    For MPEG2 (sampling frequencies of 16, 22.05 and 24 kHz) n = 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160

    Specifies the maximum allowed bitrate.

    Note: If you own an mp3 hardware player build upon a MAS 3503 chip, you must set maximum bitrate to no more than 224 kpbs.
-F

If I am understanding you correctly the switch you want is:
#if you are using MPEG1
Code:

lame -v -B 320
Aparently lame does not support bitrates higher than 160 for MPEG2

Hope this helps

Simon Bridge 12-30-2005 02:51 AM

sparxxx13: lame will do only one file at a time. To do an entire folder of mp3s, you must write a script.

Simon Bridge 12-30-2005 02:53 AM

ubuntu-norm: did you get the answer you were after?


All times are GMT -5. The time now is 01:56 AM.