After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 549510 - audioresample doesn't negotiate ideal caps
audioresample doesn't negotiate ideal caps
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal normal
: 0.10.22
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-08-26 21:25 UTC by Michael Smith
Modified: 2008-10-28 16:24 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Michael Smith 2008-08-26 21:25:44 UTC
If audioresample needs to resample, it should resample to the nearest available rate. 

In a test with a 192kHz file (simulating what happens with real hardware that supports only these 3 sample rates):
  gst-launch filesrc location=~/media/testfiles/24bit-192kHz.flac ! decodebin ! audioconvert ! audioresample ! "audio/x-raw-float,rate=(int){44100,48000,96000}" ! fakesink silent=true -v

audioresample resamples to 44.1kHz, rather than 96kHz.
Comment 1 Sebastian Dröge (slomo) 2008-10-28 16:24:45 UTC
2008-10-28  Sebastian Dröge  <sebastian.droege@collabora.co.uk>

        * gst/audioresample/gstaudioresample.c:
        (gst_audioresample_class_init), (audioresample_fixate_caps):
        Fixate the rate to the nearest supported rate instead of
        the first one. Fixes bug #549510.