wavenc - change bitrate

Sebastian Dröge sebastian at centricular.com
Mon Apr 7 23:42:37 PDT 2014


On So, 2014-04-06 at 21:12 -0700, cxphong wrote:
> Hello, 
> 
> My piple to convert mp3 to wav:
> 
> *gst-launch-0.10 filesrc location=file.mp3 ! mad ! audioconvert !
> "audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)16,
> depth=(int)16, rate=(int)44100, channels=(int)2" ! audiorate ! wavenc !
> filesink location=test.wav -v*
> 
> Output:
> ffmpeg -i test.wav
> 
>  *Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo,
> s16, 1411 kb/s*
> 
> How to change bit rate from 1411 kb/s to 320kb/s? Thanks all!

wavenc is writing raw PCM data. Other than changing the sample width,
sample rate or number of channels there is no way to adjust the bitrate.

Maybe you want to encode your raw audio to another codec before putting
it into a container format?

-- 
Sebastian Dröge, Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140408/547e2c92/attachment.sig>


More information about the gstreamer-devel mailing list