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 311070 - wavparse returns caps not in template
wavparse returns caps not in template
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins
0.8.10
Other Linux
: Normal normal
: 0.8.11
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-07-21 02:01 UTC by Shahms E. King
Modified: 2005-07-22 13:34 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
1.5 seconds of 24-bit 48000Hz wav file (421.92 KB, audio/x-wav)
2005-07-21 15:19 UTC, Shahms E. King
Details

Description Shahms E. King 2005-07-21 02:01:17 UTC
Distribution/Version: Fedora Core/4

gst-launch filesrc location=test.wav ! wavparse ! audioconvert ! wavenc ! fakesrc

Run the above command line where "test.wav" is a 24-bit WAV file and wavparse
reports the caps correctly, but they are outside the { 8, 16 } allowed for depth
and width in the caps template so it fails with an error.
Comment 1 Ronald Bultje 2005-07-21 05:30:48 UTC
Can you attach a sample for testing?
Comment 2 Shahms E. King 2005-07-21 15:19:05 UTC
Created attachment 49520 [details]
1.5 seconds of 24-bit 48000Hz wav file

The attached file orignally came from
http://www.archive.org/audio/etree-details-db.php?id=27237 in FLAC.  I decoded
it using the standalone decoder as the FLAC plugin suffers from a similar
24-bit issue and then snipped it to a reasonable size for attaching. It's the
first 1.5 seconds of the first track.  I'll file a bug for the flacdec plugin
as well.
Comment 3 Ronald Bultje 2005-07-22 13:34:35 UTC
2005-07-22  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>

        * gst-libs/gst/riff/riff-media.c:
        (gst_riff_create_audio_caps_with_data):
        * gst/wavparse/gstwavparse.c: (gst_wavparse_loop):
          Allow 24/32-bpp songs, too, and blockalign samples to the
          header-specified size (if any). Fixes #311070.