-
Notifications
You must be signed in to change notification settings - Fork 250
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
mpv: undeclared constant in f_lavfi filter channel layout #2619
Comments
Using no tag or 0.37.0 does not work: there is no bootstrap.py then. ab-suite.bootstrap.log
|
waf was removed in mpv ages ago, which is why I assume that MABS stuck with the last release to include it. I know there was a PR that started working through the issues with changing the suite to use meson so more modern versions can be built, but I'm not sure how far it got. I also started looking into it, but just haven't put much time into it so far, since it's just not a priority for me. As for the current build issue, it's related to ffmpeg/libav changing how they handle channel layouts. You just need to apply three specific commits from upstream mpv and it'll build/work fine. Locally, I created a build/mpv_extra.sh script that contains the following (the order of patches is important):
I can't do a PR right now or I'd submit one for this, but this should be easy to convert to something a bit more suitable for inclusion (combining them into one patch, adding it to mabs-patches, etc). |
Those patches are unfortunately no longer enough: 21:34:15 ├ Running build...
Likely error (tail of the failed operation logfile):
../demux/demux_lavf.c:761:9: warning: 'av_stream_get_side_data' is deprecated [-Wdeprecated-declarations]
761 | if ((sd = av_stream_get_side_data(st, AV_PKT_DATA_DOVI_CONF, NULL))) {
| ^~
J:/media-autobuild_suite-master/local64/include/libavformat/avformat.h:2134:10: note: declared here
2134 | uint8_t *av_stream_get_side_data(const AVStream *stream,
| ^~~~~~~~~~~~~~~~~~~~~~~
Waf: Leaving directory `/build/mpv-git/build' |
I'll be doing a build later today probably and I can't check right now, but looking over the last commit, I didn't see it include the third patch I listed (the swresample patch), so that's probably what's missing. Try a build/mpv_extra.sh containing the following to see if it helps:
|
I did all three manually myself with mpv_extra.sh, in the order you specified :/ mpv actually hasn't changed since I last built it because of the waf pin, I don't need 0.36 rebuilt lol. |
Hmm, I didn't run into this when I ran another build yesterday. I'll take a deeper look when I get more time. I may have missed a commit that didn't apply to my configuration.
True, lol. I keep meaning to get back to updating the suite so it uses meson when building mpv, but keep putting it off and hoping someone else will beat me to it... |
I tried, and got pretty far using the old draft PR for it, but ended up getting stuck because of Signed, hoping someone smarter than me does it, because those are 8 hours I'll never get back 🤣 |
You locked the mpv repo to tag 0.36.0; maybe it's time to unlock because dependent libraries may have become incompatible?
There is an mpv PR related to "swresample: stop using deprecated {in,out}_channel_layout options" due to FFMpeg API changes.
logs.zip
Testing to remove the tag in media-suite_deps.sh
The text was updated successfully, but these errors were encountered: