From Grip to Sound Juicer

Michael Wiktowy michael.wiktowy at gmail.com
Mon Jun 2 15:08:30 UTC 2008


On Mon, Jun 2, 2008 at 2:40 AM, Francois <frmas at free.fr> wrote:
>> audio/x-raw-int,rate=44100,channels=2 ! lame name=enc mode=1
>> bitrate=320 ! id3v2mux
>
> I used to use this command line using grip :
> "-V 0 --noreplaygain -b %b -m s %w %m"
> with "kbits_per_sec 224"
>
> So if I want to adjust it to what you said, is it correct that way :
> audio/x-raw-int,rate=44100,channels=2 ! lame name=enc mode=0
> vbr-quality=0 bitrate=224 noreplaygain ! id3v2mux
> ???
>
> another question : "mode 0" .. I suppose it means "variable bitrate"? "mode
> 1" is ??

I don't think you can directly use the same commandline options in gst
pipelines. I found this reference for the lame encoder:
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-ugly-plugins/html/gst-plugins-ugly-plugins-lame.html

Based on the examples in the link I sent before, I was under the
impression that mode=0 specificed VBR (variable bit rate) and mode=1
specified CBR (constant bit rate) but looking at this latest link, I
am not so sure now since it specifies "Stereo" as the default.

You might have more success with just using one of the presets. Remove
all the mode/vbr-quality/bitrate stuff and just put in preset=extreme
for very good encoding (VBR at target bitrate of 245 kbps) or
preset=insane (CBR at 320 kbps) for the best you can get. You will get
big files with either of these. Both preset=standard (VBR at target
bitrate of 190 kbps) and preset=medium (VBR at target bitrate of 165
kbps) will give you a lot better than CBR at 128 kbps.

http://wiki.hydrogenaudio.org/index.php?title=LAME#Encoder_Presets

/Mike




More information about the users mailing list