bugGnash - The GNU Flash player - Bugs: bug #48052, Sound gets distorted when .swf...

 
 

bug #48052: Sound gets distorted when .swf file loops

Submitter:  David Griffith <dgriffi>
Submitted:  Mon 30 May 2016 12:10:52 AM UTC
   
 
Category:  None Severity:  3 - Normal
Release:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 31 May 2016 10:18:34 AM UTC, comment #5: 

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 <strk@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 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

Nutchanon Wetchasit <nachanon>
Tue 31 May 2016 10:16:58 AM UTC, comment #4: 

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

Nutchanon Wetchasit <nachanon>
Mon 30 May 2016 11:32:42 PM UTC, comment #3: 

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

David Griffith <dgriffi>
Mon 30 May 2016 11:31:43 PM UTC, comment #2: 

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.

David Griffith <dgriffi>
Mon 30 May 2016 10:58:01 AM UTC, comment #1: 

I have tried using lastest development version of Gnash to play the animation, and I couldn't reproduce the distorted audio problem. I tried both libAV-based and GStreamer-based decoder using:

$ gnash -vv --media=ffmpeg 'http://www.albinoblacksheep.com/flash10/tirrel/ekkosangen(www.albinoblacksheep.com).swf'


and:

$ gnash -vv --media=gst 'http://www.albinoblacksheep.com/flash10/tirrel/ekkosangen(www.albinoblacksheep.com).swf'


I only noticed a small hiccup/skip just before "Come on, let's go" as the animation repeats; and Adobe Flash Player has the hiccup too (but kind of shorter).

So, this leads to obligatory questions:

  • Which Gnash version you are using? (Right-click on the animation, select Help > About; this information will be in bold text in "Gnash 0.8.XX (zzzz-NNNNN-abcdefg)" format)
  • Which audio decoder type Gnash used? (Right-click on the animation, select Help > About, and look for a line containing word "Media:")
  • Which GNU/Linux distribution (also version, and machine architecture) you're on?
  • Which kind of audio system you are using? (ALSA, OSS, or PulseAudio; asked just in case)


So that maintainers or other users could try reproduce the issue.

Gnash: 0.8.11dev (git 5ad81af 16-May-2016)
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 (debian)
Flash Player: 11.2.202.491 Standalone
ALSA audio: libasound2 1.0.25-4 (debian)
System: Debian GNU Linux 7.0 Wheezy i386

Side note: When I tried playing the animation (both Gnash and Flash Player), it repeats to the first "Come on, let's go" line, not to the beginning of animation.

Nutchanon Wetchasit <nachanon>
Mon 30 May 2016 12:10:52 AM UTC, original submission:  

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.

David Griffith <dgriffi>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by nachanon (Posted a comment)
  • -email is unavailable- added by dgriffi (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code