[Bug 791311] AAC-sbr+ps audio playback failed: only glitches are observed

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Oct 17 05:35:06 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=791311

--- Comment #10 from Jai Soni <jpstorm93 at gmail.com> ---
Hi Edward,

The problem here is that , sample_rate is 24KHz for the audio buffer, and
qtdemux is also setting sample_rate as 24KHz, but later on in configure_stream
function it is overriding this to 48KHz, and my decoder is not able to play
this at 48Khz.
If the sample rate stays at 24KHz the playback is fine.

Moreover if i read sample_rate from the audio buffer it is 24KHz
eg:-

            samplingFreqIdx = ( GST_READ_UINT8 (data) & 0x03 ) << 1;
            samplingFreqIdx |= ( GST_READ_UINT8( (data) + 1 ) & 0x80 ) >> 7;

but if i read the sample_rate from the caps given by qtdemux it is 48Khz

eg:-   gst_structure_get_int( Struct, "rate", (gint *)&sampleRate )

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list