GNOME Bugzilla – Bug 525321
ms-gsm encoded with samplerate 22050 not supported by gsmdec
Last modified: 2008-03-31 13:45:35 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:
Created attachment 108332 [details] [review] added support for 1000-96000 samplerate
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.
*** This bug has been marked as a duplicate of 481354 ***
Created attachment 108338 [details] [review] samplerate 1000-96000 supported