Discussion:
[Gnash-commit] [bug #48052] Sound gets distorted when .swf file loops
David Griffith
2016-05-30 00:10:54 UTC
Permalink
URL:
<http://savannah.gnu.org/bugs/?48052>

Summary: Sound gets distorted when .swf file loops
Project: Gnash - The GNU Flash player
Submitted by: dgriffi
Submitted on: Mon 30 May 2016 12:10:52 AM GMT
Category: None
Severity: 3 - Normal
Release: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any

_______________________________________________________

Details:

When this music video loops back to the beginning, the audio is distorted This
doesn't happen with Adobe Flash.

http://www.albinoblacksheep.com/flash/ekkosangen

I originally reported this at
https://github.com/lightspark/lightspark/issues/267 whereupon I was told that
Lightspark automatically calls Gnash for version 6 swf files.




_______________________________________________________

Reply to this item at:

<http://savannah.gnu.org/bugs/?48052>

_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
David Griffith
2016-05-30 23:31:43 UTC
Permalink
Follow-up Comment #2, bug #48052 (project gnash):

Gnash 0.8.11dev (master-2-939bcfb)
Renderer: AGG
Hardware Acceleration: none
GUI: GTK2
Media: FFmpeg (avcodec version: 56.26.100)

Sorry about the "beginning" part. The place it loops back to is correct.

_______________________________________________________

Reply to this item at:

<http://savannah.gnu.org/bugs/?48052>

_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
David Griffith
2016-05-30 23:32:42 UTC
Permalink
Follow-up Comment #3, bug #48052 (project gnash):

The hiccup you noticed is also present with Adobe Flash, so I guess it's an
error in the swf file.

_______________________________________________________

Reply to this item at:

<http://savannah.gnu.org/bugs/?48052>

_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
Nutchanon Wetchasit
2016-05-31 10:16:59 UTC
Permalink
Follow-up Comment #4, bug #48052 (project gnash):

I have checked the specific version you reported, and I could reproduce the
problem: as soon as the animation repeats, the music sounds staggered (it
quickly alternates between music and silence gaps), and animation played in
slow motion.

This problem affects both libAV-based decoding and GStreamer-based decoding.
Though GStreamer symptom is worse: the problem starts instantly at the
beginning of playback (libAV decoder plays correctly the first time, and
problem starts at the first repeat).

Note: For GStreamer-based decoding, the symptom is the same, no matter of
backing library it uses. (Tested using libAV, libMAD, and Fluendo MP3)

Gnash: 0.8.11dev (git 939bcfb 26-Mar-2015)
libAV: libavcodec53 6:0.8.17-1, libavformat 6:0.8.17-1, libavutil 6:0.8.17-1
(debian)
GStreamer: libgstreamer0.10-0 0.10.36-1.2, gstreamer0.10-0 0.10.36-1.2,
gstreamer0.10-ffmpeg 0.10.13-5, gstreamer0.10-plugins-ugly 0.10.19-2+b2,
gstreamer0.10-fluendo-mp3 0.10.15.debian-1 (debian)
Flash Player: 11.2.202.491 Standalone
System: Debian GNU Linux 7.0 Wheezy i386


_______________________________________________________

Reply to this item at:

<http://savannah.gnu.org/bugs/?48052>

_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
Nutchanon Wetchasit
2016-05-31 10:18:35 UTC
Permalink
Follow-up Comment #5, bug #48052 (project gnash):

I have done a reverse-regression test (5ad81af working -> 939bcfb broken) and
found that this problem (both libAV/FFmpeg and GStreamer-based decoding) has
been fixed in:

commit 41ae739439c796f7f310f813f18cc12287b2e450
Author: Sandro Santilli <***@keybit.net>
Date: Sat Dec 5 17:14:26 2015 +0100

Revert "Reduce malloc() churn for SWF-embedded audio."

This reverts commit a9f7f743c66f2f36d81c348da238d94877473372.

Conflicts:
libsound/LiveSound.h

The change resulted in a degraded audio quality as described in
https://savannah.gnu.org/bugs/?46607

:040000 040000 8e44d8cc7c30bc6c8a4609e80b749cd062a147db
4a2659d225f6b325511a0bb51bea2d46c696f525 M libbase
:040000 040000 71fc5c0ab349d8766c1f6b3d2fd899a27f10f92f
62406d7735ebb3a05e8d197b60956b29e79fc656 M libsound


So, this issue could considered a duplicate of bug #46607.

Upgrading to lastest development version of Gnash should fix the problem.

But if you can't upgrade, you can manually apply the changeset of commit
41ae739
<http://git.savannah.gnu.org/cgit/gnash.git/patch/?id=41ae739439c796f7f310f813f18cc12287b2e450>
on source code of your version to fix this problem as well.

Gnash: 0.8.11dev (git 939bcfb 26-Mar-2015 with 41ae739 patch)
System: Debian GNU/Linux 7.0 Wheezy i386

_______________________________________________________

Reply to this item at:

<http://savannah.gnu.org/bugs/?48052>

_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/

Loading...