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 791311 - AAC-sbr+ps audio playback failed: only glitches are observed
AAC-sbr+ps audio playback failed: only glitches are observed
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
1.12.0
Other Linux
: Normal major
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-12-06 16:42 UTC by Jai Soni
Modified: 2018-11-03 15:24 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jai Soni 2017-12-06 16:42:11 UTC
Dear Members,


I am trying to play one AAC (sbr+ps) (mp4a.40.29, mp4a.40.5) content through gstreamer version 1.12.0 , and i only observe audio glitches and silence. I am able to play normal AAC codec content (mp4a.40.2). I am using Qtdemux for demuxing part.

Working content:-(mp4a.40.2)
https://www.dropbox.com/s/99adkfmu5f0mbvo/Spring_3000k_track2_dashinit.mp4?dl=0



Non working content:- (mp4a.40.5)
https://www.dropbox.com/s/88qia0qpz2h73dy/tearsofsteel_audio_32K_init.mp4?dl=0
Comment 1 Sebastian Dröge (slomo) 2017-12-06 16:47:22 UTC
This plays without any glitches for me with git master and 1.12.3.
Comment 2 Sebastian Dröge (slomo) 2017-12-06 16:47:53 UTC
Are you using gst-libav built with the internal ffmpeg version or a system version? In case of system version, which would that be?
Comment 3 Jai Soni 2017-12-06 16:51:09 UTC
Can you tell me your command line pipeline , so i can confirm.
Comment 4 Sebastian Dröge (slomo) 2017-12-06 17:10:19 UTC
Just "gst-play-1.0 the_file.mp4", nothing complicated
Comment 5 Nicolas Dufresne (ndufresne) 2017-12-06 17:29:32 UTC
Same here, just work (Fedora 27 + Rpmfusion) 1.12.3.
Comment 6 Nicolas Dufresne (ndufresne) 2017-12-06 17:32:39 UTC
Fwiw, it's using avdec_aac here.
Comment 7 Tim-Philipp Müller 2017-12-06 17:42:55 UTC
What ffmpeg version do you have installed Jai?
Comment 8 Jai Soni 2017-12-11 12:18:41 UTC
More details about this issue:-


I am able to play this content if read sample frequency from the codecdata (buffer) that will return the value as 24k.

But the sample rate is coming from caps is 48k, and if i set that as sample frequency idx then i hear only glitches.


Also i downloaded these contents from dashif mpd's , where there already some backward comp bug is raised??
https://github.com/Dash-Industry-Forum/Test-Vectors/issues/9

If any of you guys have one aac(sbr+ps) content , then please share as i am not able find this on google. Thanks in advance.
Comment 9 Edward Hervey 2018-08-23 06:49:21 UTC
This plays fine for me with current GStreamer. Jai, can you confirm (by using gst-play-1.0) ? If it doesn't work, please specify the exact version of GStreamer you're using (and from which distribution).
Comment 10 Jai Soni 2018-10-17 05:35:06 UTC
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 )
Comment 11 GStreamer system administrator 2018-11-03 15:24:19 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/421.