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 525321 - ms-gsm encoded with samplerate 22050 not supported by gsmdec
ms-gsm encoded with samplerate 22050 not supported by gsmdec
Status: RESOLVED DUPLICATE of bug 481354
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other All
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-03-31 13:04 UTC by kapil
Modified: 2008-03-31 13:45 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20


Attachments
added support for 1000-96000 samplerate (4.19 KB, patch)
2008-03-31 13:06 UTC, kapil
none Details | Review
samplerate 1000-96000 supported (4.19 KB, patch)
2008-03-31 13:45 UTC, kapil
none Details | Review

Description kapil 2008-03-31 13:04:03 UTC
Please describe the problem:
fail to decode because the source files were ms-gsm with samplerate of 22050, and the gsmdec plugin only support samplerate of 8000.

Steps to reproduce:
1. get any ms-gsm encoded wav file with samplerate != 8000 
2. gst-launch filesrc location=non8000gsm.wav ! wavparse ! gsmdec ! fakesink
3. 


Actual results:
pipeline exists 

Expected results:
gsmdec should decode the file , since its valid gsm.

Does this happen every time?
yes

Other information:
Comment 1 kapil 2008-03-31 13:06:49 UTC
Created attachment 108332 [details] [review]
added support for 1000-96000 samplerate
Comment 2 Sebastian Dröge (slomo) 2008-03-31 13:29:18 UTC
Does audio/x-gsm support other sampling rates too? Apart from that the patch looks fine although I don't get the use of gsmdec->encoded_samples :) Why don't you hardcode it anymore?

Also you probably want 8000 instead of 1000 in the sink template caps.
Comment 3 Wim Taymans 2008-03-31 13:42:07 UTC

*** This bug has been marked as a duplicate of 481354 ***
Comment 4 kapil 2008-03-31 13:45:35 UTC
Created attachment 108338 [details] [review]
samplerate 1000-96000 supported