Skip to content

Add ImageDecoder-independent animated AVIF test - #36044

Merged
mathiasbynens merged 8 commits into
web-platform-tests:masterfrom
mathiasbynens:animated-avif
Oct 5, 2022
Merged

mathiasbynens merged 8 commits into
web-platform-tests:masterfrom
mathiasbynens:animated-avif

Conversation

@mathiasbynens

Copy link
Copy Markdown
Contributor

Using `step_timeout` instead, as recommended by the linter, makes the test time out.
```
ffmpeg -loglevel error -hide_banner -f lavfi -i color=green:2x2 -frames:v 1 -y /tmp/green.avif
```
The `animated-avif.avif` and `green.avif` files are generated as follows:

```sh
ffmpeg -loglevel error -hide_banner -f lavfi -i color=red:2x2 -frames:v 1 -y /tmp/red.png;
ffmpeg -loglevel error -hide_banner -f lavfi -i color=green:2x2 -frames:v 1 -y /tmp/green.png;
avifenc --duration 1 /tmp/red.png --duration 1800 /tmp/green.png /tmp/animated-avif.avif;
avifenc --duration 1 /tmp/green.png /tmp/green.avif;
```
@mathiasbynens
mathiasbynens enabled auto-merge (squash) September 30, 2022 11:25
@foolip

foolip commented Sep 30, 2022

Copy link
Copy Markdown
Member

https://wpt.fyi/results/animated-avif/animated-avif-timeout.html?label=pr_head&max-count=1&pr=36044 shows a failure for Firefox. With only 4 pixels being different, it can't be that the red frame is still showing. Can you check what's going on?

Comment thread animated-avif/META.yml Resolved
@wpt-pr-bot wpt-pr-bot added the avif label Oct 4, 2022
@mathiasbynens

Copy link
Copy Markdown
Contributor Author

https://wpt.fyi/results/animated-avif/animated-avif-timeout.html?label=pr_head&max-count=1&pr=36044 shows a failure for Firefox. With only 4 pixels being different, it can't be that the red frame is still showing. Can you check what's going on?

Why not? The image is 2×2 px, Firefox doesn’t support animated AVIF yet, so I would expect the red frame to show.

@foolip

foolip commented Oct 5, 2022

Copy link
Copy Markdown
Member

Aha, didn't know it was a 2x2 image. I assumed a 100x100 or something.

@mathiasbynens
mathiasbynens merged commit 2890795 into web-platform-tests:master Oct 5, 2022
@mathiasbynens
mathiasbynens deleted the animated-avif branch October 5, 2022 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants