GNOME Bugzilla – Bug 356596
[wavparse] Does not support GSM encoded audio
Last modified: 2006-09-19 10:26:54 UTC
Hi, wavparse from gst-plugins-good 0.10.4 does not support GSM encoded audio. When playing such file it reports: gst-launch-0.10 -v playbin uri=file:///home/tarvid/Desktop/msg0000.WAV Setting pipeline to PAUSED ... /playbin0/decoder.sink: caps = NULL /playbin0/decoder/typefind.src: caps = audio/x-wav Pipeline is PREROLLING ... ERROR: from element /playbin0/decoder/wavparse0: Could not determine type of stream. Additional debug info: gstwavparse.c(1211): gst_wavparse_stream_headers (): /playbin0/decoder/wavparse0: No caps found for format 0x31, 1 channels, 8000 Hz ERROR: pipeline doesn't want to preroll. Setting pipeline to NULL ... /playbin0/decoder/typefind.src: caps = NULL FREEING pipeline ... An example file is here: http://librarian.launchpad.net/4105794/msg0000.WAV Bye Ubuntu Bug: https://launchpad.net/distros/ubuntu/+source/gstreamer0.10/+bug/55132
mplayer can play this file correctly btw.
This required patches in 3 modules: gst-plugins-base: * gst-libs/gst/riff/riff-media.c: (gst_riff_create_audio_caps), (gst_riff_create_audio_template_caps): Reorder the audio formats a bit for clarity. Detect and create caps for MSGSM and MSN (WAV49). Fixes #356596. gst-plugins-good: * gst/wavparse/gstwavparse.c: Add ms-gsm to the src template. gst-plugins-bad: * ext/gsm/gstgsmdec.c: (gst_gsmdec_init), (gst_gsmdec_sink_setcaps), (gst_gsmdec_sink_event), (gst_gsmdec_chain): * ext/gsm/gstgsmdec.h: Handle WAV49 variant (GSM in WAV). Some small cleanups. Not sure how to milestone this...