m-ab-s / media-autobuild_suite

This Windows Batchscript helps setup a Mingw-w64 compiler environment for building ffmpeg and other media tools under Windows.
GNU General Public License v3.0
1.49k stars 256 forks source link

mpv requires an update to master due to ffmpeg changes #2712

Open jet082 opened 3 weeks ago

jet082 commented 3 weeks ago

Related to https://github.com/m-ab-s/media-autobuild_suite/issues/2568.

MPV and ffmpeg build just fine. However, as per https://github.com/mpv-player/mpv/issues/13662, the current build of mpv does not support audio output due to an incompatibility that 0.36 has with current ffmpeg. The error you get is as documented in the issue, but is also presented below:

PS D:\Videos> mpv '.\test.mkv'
 (+) Video --vid=1 (*) (h264 1436x1080 23.976fps)
 (+) Audio --aid=1 --alang=jpn (*) 'Japanese' (flac 1ch 48000Hz)
     Subs  --sid=1 --slang=eng (*) (f) 'English Forced' (subrip)
 (+) Subs  --sid=2 --slang=eng 'English Forced PGS' (hdmv_pgs_subtitle)
Using hardware decoding (d3d11va-copy).
AO: [wasapi] 192000Hz mono 1ch float
[ffmpeg] SWR: Input channel layout "" is invalid or unsupported.
[swresample] Cannot open Libavresample context.
[swresample] libswresample failed to initialize.
Cannot convert decoder/filter output to any format supported by the output.
VO: [gpu] 1436x1080 nv12
Audio: no audio
V: 00:00:00 / 01:27:58 (0%)
[osd/libass] fontselect: Using default font family: (mpv-osd-symbols, 400, 0) -> ArialMT, 0, ArialMT
V: 00:00:00 / 01:27:58 (0%)

Moving to master rather than 0.36.0 seems the best long-term solution. In the very short term you can add do_patch "https://github.com/mpv-player/mpv/commit/f31eb9e4071093134d675678d29e8f1673d39d18.patch" am to the media-suite_compile.sh and it does fix the problem.