mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
27.71k stars 2.86k forks source link

[Very important] libmpv Vapoursynth -Dvapoursynth=enabled not work #14580

Closed ryou128hr closed 3 weeks ago

ryou128hr commented 1 month ago

mpv Information

cplayer: mpv v0.38.0-623-ged77616f29 Copyright ツゥ 2000-2024 mpv/MPlayer/mplayer2 projects

[2024-07-19 17:23:11] cplayer:  built on Jul 18 2024 19:27:09

[2024-07-19 17:23:11] cplayer: libplacebo version: v7.349.0

[2024-07-19 17:23:11] cplayer: FFmpeg version: 6.1.1

[2024-07-19 17:23:11] cplayer: FFmpeg library versions:

[2024-07-19 17:23:11] cplayer:    libavcodec      60.31.102

[2024-07-19 17:23:11] cplayer:    libavdevice     60.3.100

[2024-07-19 17:23:11] cplayer:    libavfilter     9.12.100

[2024-07-19 17:23:11] cplayer:    libavformat     60.16.100

[2024-07-19 17:23:11] cplayer:    libavutil       58.29.100

[2024-07-19 17:23:11] cplayer:    libswresample   4.12.100

[2024-07-19 17:23:11] cplayer:    libswscale      7.5.100

[2024-07-19 17:23:11] cplayer:

[2024-07-19 17:23:11] cplayer: Configuration: -Dlibmpv=true -Dbuildtype=release

Other Information

Reproduction Steps

[ 2.208][d][cplayer] Run command: vf, flags=73, args=[operation="toggle", value="vapoursynth=\"~~/vs/AI4.vpy\""] [ 2.208][e][cplayer] Option vf-toggle: 'vapoursynth' isn't supported.

Expected Behavior

[ 2.208][d][cplayer] Run command: vf, flags=73, args=[operation="toggle", value="vapoursynth=\"~~/vs/AI4.vpy\""] [ 2.208][e][cplayer] Option vf-toggle: 'vapoursynth' isn't supported.

Actual Behavior

[ 2.208][d][cplayer] Run command: vf, flags=73, args=[operation="toggle", value="vapoursynth=\"~~/vs/AI4.vpy\""] [ 2.208][e][cplayer] Option vf-toggle: 'vapoursynth' isn't supported.

Log File

log.txt

Sample Files

No response

I carefully read all instruction and confirm that I did the following:

CounterPillow commented 1 month ago

[ 0.000][v][cplayer] Configuration: -Dlibmpv=true -Dbuildtype=release

You didn't build with vapoursynth.

[Very important]

No it's not.

ryou128hr commented 1 month ago

How can I make

-Dvapoursynth=enabled

take effect?

CounterPillow commented 1 month ago

You need to specify it during build time as part of the meson configuration. If you are not compiling your own mpv, you'll have to learn how to do that.

The issue tracker isn't a tech support forum though. Please use Discussions for this.

ryou128hr commented 1 month ago

meson_options

これは、中間子構成の一部としてビルド時に指定する必要があります。独自のmpvをコンパイルしていない場合は、その方法を学ぶ必要があります。

ただし、Issue Tracker はテクニカル サポート フォーラムではありません。これにはディスカッションを使用してください。

meson_options has option('vapoursynth', type: 'feature', value: 'auto', description: 'VapourSynth filter bridge').

meson setup --wipe build -Dvapoursynth=enabled

But it doesn't work.

ryou128hr commented 1 month ago

main.cpp.txt meson.build.txt

CounterPillow commented 1 month ago

Compiling your application that uses libmpv or somehow calls mpv otherwise with a "-Dvapoursynth=enabled" is not how this works. You need to compile mpv itself with that.

ryou128hr commented 1 month ago

Compiling your application that uses libmpv or somehow calls mpv otherwise with a "-Dvapoursynth=enabled" is not how this works. You need to compile mpv itself with that.

I wrote main.cpp in VS2022. Is this related?

CounterPillow commented 1 month ago

No.

I told you what the issue is.

The problem is that you do not understand as you do not actually know software development.

CrendKing commented 1 month ago

OP, assuming you are building mpv on Windows based on your log file, you first need to follow https://github.com/mpv-player/mpv/blob/master/DOCS/compile-windows.md. Then to enable VapourSynth during build, add this line before https://github.com/mpv-player/mpv/blob/d384a6b79303ef21b7330555e968a99d59a7c5b0/ci/build-win32.ps1#L214

-Dvapoursynth=enabled `