Login  Register

Wrong bitrate reported after using lamemp3enc

classic Classic list List threaded Threaded
2 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Wrong bitrate reported after using lamemp3enc

Valey Carmid
2 posts
The audio stream should be 192 kb/s, yet when I do something like:

httpsrc location=http://domain.com/foo.mp3  ! audioconvert ! lamemp3enc bitrate=192 ! xingmux ! filesink=foo.mp3

The bitrate is reported by the file command to be:

foo.mp3:  Audio file with ID3 version 2.4.0, contains: MPEG ADTS, layer III, v1,  48 kbps, 44.1 kHz, JntStereo

I don't have the actual gst-launch command since I'm just coding the elements, but the flow should be the same. Why did lamemp3enc encode at 48kb/s when it should be 192 kb/s?

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Wrong bitrate reported after using lamemp3enc

David Schleef
65 posts
On Sat, Dec 08, 2012 at 08:51:08PM -0800, Valey Carmid wrote:
> The audio stream should be 192 kb/s, yet when I do something like:
>
>  httpsrc location=http://domain.com/foo.mp3  ! audioconvert ! lamemp3enc bitrate=192 ! xingmux ! filesink=foo.mp3
>
> The bitrate is reported by the file command to be:
>
> foo.mp3:  Audio file with ID3 version 2.4.0, contains: MPEG ADTS, layer III, v1,  48 kbps, 44.1 kHz, JntStereo
>
> I don't have the actual gst-launch command since I'm just coding the elements, but the flow should be the same. Why did lamemp3enc encode at 48kb/s when it should be 192 kb/s?

You did not select "target=bitrate", so the bitrate property is ignored.



David

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel