Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aperturescience.com: DefineVideoStream, got Invalid data: Invalid video codec. #5704

Open
FoxMcCloud45 opened this issue Nov 22, 2021 · 10 comments
Labels
A-avm1 Area: AVM1 (ActionScript 1 & 2) bug Something isn't working

Comments

@FoxMcCloud45
Copy link

Describe the bug

https://www.aperturescience.com uses an old SWF file made in 2010.

In Mozilla Firefox, the first frame of the video shows but nothing else happens.
In Google Chrome, the Flash window shows a PLAY button, clicking it causes a black render.

The website's SWF file is hosted at https://www.aperturescience.com/aperturescience.swf

Also provided below.
aperturescience.zip
.

Expected behavior

The SWF's video should play normally.

Affected platform

Browser's extension

Operating system

Microsoft Windows 10 LTSC 2019 (1809)

Browser

Mozilla Firefox 91.3.0esr

Additional information

Firefox's JavaScript console log is attached below.
console-export-2021-11-22_21-27-39.txt

@FoxMcCloud45 FoxMcCloud45 added the bug Something isn't working label Nov 22, 2021
@n0samu
Copy link
Member

n0samu commented Nov 24, 2021

This SWF uses an external video file. Ruffle doesn't support loading external video/audio/image assets yet.

@vladislavkoz
Copy link

vladislavkoz commented Mar 28, 2022

Hello guys. I have SWF which uses some FLV video files. As I understand support for FLV is not added yet. And as I understand, we can't use any video files. Is it correct? In my case, I have the following error:
image

I'm using the following FLV files:
image

Is there any scheduled work on adding video files support then? Could you propose any workaround for this before video support is added?

@danielhjacobs
Copy link
Contributor

danielhjacobs commented Mar 28, 2022

Embedded H.263 and VP6(A) videos work. FLVs/external videos do not work.

@vladislavkoz
Copy link

A)

So does it mean that we can't use external videos at all?

@danielhjacobs
Copy link
Contributor

Correct. You need to embed an H.263 or VP6 video in the swf, like this: https://dnalc.cshl.edu/view/962-Causes-Smoking-Prevention.html

@n0samu n0samu added unimplemented Issues for functionality that hasn't been implemented yet A-video labels Jun 18, 2023
@Lord-McSweeney
Copy link
Collaborator

Video has been implemented- however, this seems to need something else to work, as it currently just shows a single frame. Stub warning: Stub: Stream data processing (name: onXMPData)

@n0samu
Copy link
Member

n0samu commented Nov 26, 2023

As I mentioned in #12091 (comment):

The video shows only the first frame, and more strangely, the audio plays but periodically glitches out. Might there be some script data interleaved with the audio that Ruffle is erroneously trying to play back?

@n0samu n0samu removed the unimplemented Issues for functionality that hasn't been implemented yet label Jan 18, 2024
@torokati44
Copy link
Member

This SWF streams two FLV files:
https://www.aperturescience.com/wcc_holiday10_v03.flv
https://www.aperturescience.com/wcc_holiday10_v03_egg.flv

They each have a VP6 video in them, which is well supported.

And I can confirm that they are streamed and decoded correctly - they just aren't visible on the stage for some reason!

@torokati44
Copy link
Member

Ah, _level0.cam1._videoHolder has its visibility turned off (or rather, not turned on) for some reason. Flipping it on manually does show the video playing. Although, at a weird position/size/aspect ratio:

image

@torokati44 torokati44 added A-avm1 Area: AVM1 (ActionScript 1 & 2) and removed A-video labels May 23, 2024
@shaunroselt
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-avm1 Area: AVM1 (ActionScript 1 & 2) bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants