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 731601 - audioconvert: Does not always negotiate the best formats
audioconvert: Does not always negotiate the best formats
Status: RESOLVED DUPLICATE of bug 706884
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
1.2.4
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-06-13 02:44 UTC by Nicolas Dufresne (ndufresne)
Modified: 2014-06-13 06:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Original pipeline log as run on BSD (328.25 KB, text/x-log)
2014-06-13 02:44 UTC, Nicolas Dufresne (ndufresne)
Details

Description Nicolas Dufresne (ndufresne) 2014-06-13 02:44:29 UTC
Created attachment 278384 [details]
Original pipeline log as run on BSD

I've crafted the following pipeline from a situation that was described to me that is actually happening on BSD. I think I've seen this problem on Windows too without realizing that the bad audio quality was due to low depth being chosen.

gst-launch-1.0 audiotestsrc -v num-buffers=1 ! audio/x-raw,format=F32LE ! audioconvert name=c1 ! "audio/x-raw,layout=interleaved,rate=44100,format=S8,channels=[1,2];audio/x-raw,layout=interleaved,rate=44100,format=S16LE,channels=[1,2]" ! fakesink

In this case, audioconvert will fixate to S8, where S16LE would have given better results. I am not sure why the caps get split this way, but I think audioconvert should try and preserve quality in all cases.

Original pipeline was (trace attached):
gst-launch-1.0 filesrc location="file.ogg" ! oggdemux ! vorbisdec ! audioconvert ! audioresample ! osssink
Comment 1 berend 2014-06-13 02:52:18 UTC
Note that reversing audioresample and audioconvert does work:

gst-launch-1.0 filesrc location="file.ogg" ! oggdemux ! vorbisdec !
audioresample ! audioconvert ! osssink
Comment 2 Sebastian Dröge (slomo) 2014-06-13 06:28:43 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

*** This bug has been marked as a duplicate of bug 706884 ***