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

Play FMVs using ffmpeg instead of smackw32.dll #3573

Merged
merged 5 commits into from
Nov 14, 2024
Merged

Conversation

xtremeqg
Copy link
Contributor

This PR will play videos using ffmpeg instead of relying on smackw32.dll. This a required change for cross-platform support.

Because there's no OpenAL yet, I've added (temporary) audio playback through SDL. There's some occasional glitching, likely due to buffer underruns. This can be solved by buffering a few frames in advance.

The size of ffmpeg can be reduced by playing with configure options, it currently includes a lot of codecs and other formats which are not used.

@Loobinex Loobinex marked this pull request as draft November 14, 2024 00:19
@Loobinex Loobinex marked this pull request as ready for review November 14, 2024 00:19
@Loobinex Loobinex merged commit 7f2a442 into dkfans:master Nov 14, 2024
1 check passed
@xtremeqg xtremeqg deleted the ffmpeg branch November 14, 2024 01:01
@walt253
Copy link
Contributor

walt253 commented Nov 14, 2024

There is some build warnings related to that PR:

build: src/bflib_fmvids.cpp#L514
‘AVFrame::palette_has_changed’ is deprecated

build: deps/ffmpeg/libavutil/frame.h#L582
declared here

@Loobinex
Copy link
Member

Yes, we know but there is no proper fix for this at the moment.

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.

3 participants