bugGnash - The GNU Flash player - Bugs: bug #33294, "Stream" option not yet...


bug #33294: "Stream" option not yet supported

Submitted by:  None
Submitted on:  Wed 11 May 2011 08:22:02 PM UTC  
Category:  core Severity:  3 - Normal
Release:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


( Jump to the original submission)

Fri 17 Feb 2012 04:51:26 PM UTC, comment #6:

It seems that this problem was sorted out on Gnash 0.8.10

This is a video result of sync-sound.swf from Gnash 0.8.10
(You'll notice that it beeps as clock's hand reaches around 12 o'clock now)

I also tested on another flash 'movie' that mainly relied on this feature too:

Tarboy (Flash 9)

(Before) This is a video result from Gnash 0.8.9
You will notice that animation was out-of-sync, especially after the "Tarboy" title, that sound was obviously played ahead of the animation.

(After) This is a video result from Gnash 0.8.10
You will notice that animation was in sync with the audio.

I have also checked that MS Paint Adventure movie mentioned on the original submission, which had been out-of-sync on Gnash 0.8.9, was played properly on Gnash 0.8.10 as well.

Gnash 0.8.10: gnash_0.8.10-1~lenny (from getgnash.org APT repository)
Gnash 0.8.9: gnash_0.8.9-1~lenny (from getgnash.org APT repository too)
System: Debian GNU/Linux 5.0 Lenny on i386

Nutchanon Wetchasit <nachanon>
Fri 17 Feb 2012 04:20:48 PM UTC, comment #5:

A new download link for my test flash file ('sync-sound.swf', that was also attached here)

Nutchanon Wetchasit <nachanon>
Sat 28 May 2011 10:18:48 AM UTC, comment #4:

I've tried to dump my test file with libming-0.4.3's listswf. From the result, it should be a real stream sound. (If judging from a presence of SWF_SOUNDSTREAMBLOCK)

These are snippets from my sync-sound.swf's listswf output (line 1-25 and 14218-14227), full output also attached.

File version: 7
File size: 99370
Frame size: (0,12800)x(0,9600)
Frame rate: 48.000000 / sec.
Total frames: 480

Offset: 21 (0x0015)
Block length: 3

RGBA: (ff,ff,ff,ff)

Offset: 26 (0x001a)
Block length: 6

PlaybackSoundRate 22 kHz
PlaybackSoundSize 16 bit
PlaybackSoundType stereo
StreamSoundCompression MP3
StreamSoundRate 22 kHz
StreamSoundSize 16 bit
StreamSoundType stereo
StreamSoundSampleCount 459
LatencySeek 1633

....<Output Cutted>....

Offset: 13260 (0x33cc)
Block length: 836

SampleCount 2304
Mp3: SeekSamples 1633

Offset: 14102 (0x3716)
Block type: 1 (SWF_SHOWFRAME)
Block length: 0

Sorry for my mistake in bug #33323, that one is actually using "Sync: Start".

Note: using listswf from libming 0.4.3 source release on Debian GNU/Linux 5.0 Lenny

(file #23457)

Nutchanon Wetchasit <nachanon>
Tue 24 May 2011 07:19:38 AM UTC, comment #3:

I haven't checked at the test files yet, but I'm wondering if this "stream" option is nothing but the presence of a SOUNDSTREAMHEAD tag in the SWF. It'd be interesting to know, as we've seen many SWF files with this otherwise useless SOUNDSTREAMHEAD tag followed by no SOUNDSTREAMBLOCK, that is an empty sound stream.

If presence of such tag should trigger framedropping it'd explain.

Unfortunately I don't have time to take a closer look at the moment, so unless someone is willing to sponsor my time it'll have to wait.

Sandro Santilli <strk>
Project Member
Thu 19 May 2011 03:19:35 PM UTC, comment #2:

Hello, I've created flash file that's likely to expose
this problem; by utilizing animation heavily, using 48fps, and embed sound
in timeline as "Sync: Stream", using Macromedia Flash MX 2004 (Flash 7).

This is a 'correct' result from Macromedia Flash Player 7
(You'll notice that it beeps when clock's hand is around 12 o'clock.)

This is a video result from Gnash
(You'll notice that beeps are completely unrelated to clock's hand movement.)

This is my test flash file (created from Macromedia Flash MX 2004), also attached here.

System: Debian GNU/Linux 5.0 Lenny
Gnash: gnash 0.8.9-1~lenny (from getgnash.org apt repository)

(file #23431)

Nutchanon Wetchasit <nachanon>
Mon 16 May 2011 08:55:59 AM UTC, comment #1:

Could be a duplicate of bug #33323

Sandro Santilli <strk>
Project Member
Wed 11 May 2011 08:22:02 PM UTC, original submission:

I watch many animations that use the "stream" option in Flash. This option should drop frames in the animation to keep the animation synced up with the soundtrack. However, Gnash does not seem to support this functionality.

For an example, see http://www.mspaintadventures.com/?s=6&p=003840 which is approximately four minutes long, but does not synchronize properly under Gnash.



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

Attach Files:

Attached Files
file #23457:  listswf0.4.3.sync-sound.txt added by nachanon (406KiB - text/plain - sync-sound.swf's listswf-0.4.3 output)
file #23431:  sync-sound.swf added by nachanon (19KiB - application/x-shockwave-flash - Test flash file (Flash 7))


Depends on the following items: None found

Items that depend on this one: None found


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

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-05-28 nachanon Attached File- => Added listswf0.4.3.sync-sound.txt, #23457
    2011-05-24 strk CategoryNone => core
    2011-05-19 nachanon Attached File- => Added sync-sound.swf, #23431

    Back to the top

    Powered by Savane 3.3