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 796858 - wasapi: weird/totally garbled sound when playing back video
wasapi: weird/totally garbled sound when playing back video
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
1.14.2
Other Windows
: High blocker
: 1.14.3
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-07-24 01:09 UTC by tomislavtustonic
Modified: 2018-08-02 11:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Recorded output (653.62 KB, video/mp4)
2018-07-24 01:09 UTC, tomislavtustonic
Details
output of gst-launch-1.0 (51.70 KB, text/plain)
2018-07-24 01:10 UTC, tomislavtustonic
Details
Recorded output with sound (578.92 KB, video/mp4)
2018-07-24 01:15 UTC, tomislavtustonic
Details
Recorded output with sound (578.92 KB, video/mp4)
2018-07-24 01:17 UTC, tomislavtustonic
Details
wasapi debug log (1.43 KB, text/plain)
2018-07-24 22:03 UTC, tomislavtustonic
Details

Description tomislavtustonic 2018-07-24 01:09:14 UTC
Created attachment 373126 [details]
Recorded output

Hello

There's a weird sound and video skips frames in GStreamer 1.14.2.
I tried with 
gst-launch-1.0 playbin -v uri=http://freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm
Comment 1 tomislavtustonic 2018-07-24 01:10:21 UTC
Created attachment 373127 [details]
output of gst-launch-1.0
Comment 2 tomislavtustonic 2018-07-24 01:15:47 UTC
Created attachment 373128 [details]
Recorded output with sound
Comment 3 tomislavtustonic 2018-07-24 01:17:01 UTC
Created attachment 373129 [details]
Recorded output with sound
Comment 4 Nirbheek Chauhan 2018-07-24 08:05:32 UTC
(In reply to tomislavtustonic from comment #0)
> There's a weird sound and video skips frames in GStreamer 1.14.2.
> I tried with 
> gst-launch-1.0 playbin -v
> uri=http://freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-
> 480p.webm

Does this also happen with 1.14.1? Also, please set the following environment variables:

GST_DEBUG=wasapi*:4
GST_DEBUG_FILE=debug-log.txt

then run the gst-launch pipeline again, and then paste debug-log.txt here.
Comment 5 tomislavtustonic 2018-07-24 22:02:47 UTC
It's fine with GStreamer 1.14.1.

Debug log is in the attachment.

Also, please note that video playback also isn't working properly.

Thanks,
Tom
Comment 6 tomislavtustonic 2018-07-24 22:03:14 UTC
Created attachment 373149 [details]
wasapi debug log
Comment 7 Christoph Reiter (lazka) 2018-07-27 18:03:23 UTC
This might help: https://bugzilla.gnome.org/show_bug.cgi?id=796354#c39

This fixes a regression I introduced which made it into 1.14.2
Comment 8 Nirbheek Chauhan 2018-08-02 11:30:57 UTC
commit f06c2fe05102419bd70c64e93880e37b7319313a (HEAD -> 1.14, origin/1.14)
Author: Christoph Reiter <reiter.christoph@gmail.com>
Date:   Sun May 27 14:31:55 2018 +0200

    wasapisink: fix regression in shared mode segment size

    In commit fd806628a8 (839cc3926 in the stable branch) I changed the
    segment size to match exactly the buffer size.  I missed that this is
    only valid in exclusive mode and in shared mode the buffer size is
    a multiple of the device period.

    Revert the logic for the shared mode.

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

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