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

FFmpeg: Enable MPEG-4 parser and decoder #6024

Merged
merged 3 commits into from
Oct 13, 2023

Conversation

FreezyLemon
Copy link
Contributor

Closes ppy/osu#25086.

MPEG-4 Part 2 is a video coding standard that sits "between" H.262 and H.264. Xvid, DivX and some less known formats implement it.

FFmpeg supports these derivative codecs through the mpeg4 decoder, so to support xvid and divx (which seems to have been used in some beatmaps), this PR enables it and the according parser.

Note that this does not depend on libxvid, which is GPL.

@bdach
Copy link
Collaborator

bdach commented Oct 12, 2023

Are the binaries available somewhere for testing?

TIL you shouldn't really run `apt-get upgrade` in GitHub CI.
Also removed some packages that are guaranteed to be installed already.
@FreezyLemon
Copy link
Contributor Author

Sorry, yeah they are: https://github.com/FreezyLemon/osu-framework/actions/runs/6499895277

Had to remove apt-get upgrade in the CI script, apparently you're not really supposed to do that.

@FreezyLemon
Copy link
Contributor Author

Noticed another beatmap that doesn't work while testing: https://osu.ppy.sh/beatmapsets/10435#osu/42152

It uses "Sorenson Spark" video. I'll investigate and add another codec, I guess.

@bdach bdach added the blocked label Oct 12, 2023
@FreezyLemon
Copy link
Contributor Author

New build artifacts, including the FLV/H.263/Sorenson Spark decoder: https://github.com/FreezyLemon/osu-framework/actions/runs/6500576741

@peppy peppy merged commit cfd542e into ppy:master Oct 13, 2023
15 of 21 checks passed
@FreezyLemon FreezyLemon deleted the ffmpeg-add-mpeg4-support branch October 13, 2023 08:51
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.

Beatmap video doesn't play
3 participants