GNOME Bugzilla – Bug 310380
audioresample needs porting to 0.9
Last modified: 2005-11-14 12:40:45 UTC
The audioscale element needs to be ported to GStreamer 0.9, preferably using GstBaseTransform. As it is part of the base plugins set this is a high priority.
Under no circumstances should audioscale continue. It was rewritten as audioresample a long time ago. The library it uses should be copied into gst-plugins-base.
OK Computer! I note for posterity that said plugin is located in gst-plugins/ext/audioresample and gst-plugins/gst-libs/gst/resample.
No, audioresample uses a library at https://cvs.comedi.org/cgi-bin/viewcvs.cgi/audioresample/. I'll copy it into gst-plugins-base shortly.
thanks for copying. I ported audioresample, it uses basetransform now as well. Some conversions make it unhappy though. This one shows an invalid write: /home/thomas/gst/head/gstreamer/tools/.libs/lt-gst-launch-0.9 -v sinesrc num-buffers=2 ! audioresample ! audio/x-raw-int,rate=16000 ! fakesink This one throws an error, because resample writes more bytes than it was told to (grep for "bastard" in the log), which also causes an invalid write. /home/thomas/gst/head/gstreamer/tools/.libs/lt-gst-launch-0.9 -v sinesrc num-buffers=2 ! audio/x-raw-int,rate=44100 ! audioresample ! audio/x-raw-int,rate=8000 ! fakesink There are also cases where resample writes less bytes than it reported it was going to. The previous pipeline will probably do that for the first buffer, and then error out on too many bytes on the second.
Because audioresample was ported, I'm closing this one. I opened a new bug for the problems mentioned in comment #4, bug #321427.