stax76
2nd March 2020, 00:49
I'm trying again to play a VapourSynth script with mpv, goal is to play it with mpv.net but to verify that it works mpv will do as well.
I tried it before and gave up when I was told mpv.exe, python.exe and vapoursynth.dll must be in the same folder, that sounds really messy and I want to try to make it work with mpv, python and vapoursynth in separate folders, actually I want to make it work by using the setup versions of python and vapoursynth and not portable versions.
Requests I made before are located here:
https://github.com/shinchiro/mpv-winbuild-cmake/issues/54
https://github.com/mpv-player/mpv/issues/7213
Quote by qyot27:
libavformat's support for vapoursynth are as demuxer(s), and FFmpeg deliberately does not allow execution of those scripts as video files unless you force the demuxer (-f vapoursynth before the input). If mpv was built against an FFmpeg that has vapoursynth support enabled, it will play the scripts back as video as long as you do the same thing you have to do in FFmpeg: force the demuxer when you invoke mpv (--demuxer-lavf-format=vapoursynth).
This is what I got in the cm shell:
Desktop> mpv --demuxer-lavf-format=vapoursynth D:\Samples\aaa_temp\aaa.vpy
[lavf] Unknown lavf format vapoursynth
[lavf] Unknown lavf format vapoursynth
Failed to recognize file format.
I always use shinchiro builds but think that I have also tried other builds and it appears that all those builds were built against an FFmpeg that hasn't vapoursynth support enabled. If that is true then maybe somebody can provide me with a x64 build, otherwise I might build it myself, I used to hate this but meanwhile have learned a couple of things.
I tried it before and gave up when I was told mpv.exe, python.exe and vapoursynth.dll must be in the same folder, that sounds really messy and I want to try to make it work with mpv, python and vapoursynth in separate folders, actually I want to make it work by using the setup versions of python and vapoursynth and not portable versions.
Requests I made before are located here:
https://github.com/shinchiro/mpv-winbuild-cmake/issues/54
https://github.com/mpv-player/mpv/issues/7213
Quote by qyot27:
libavformat's support for vapoursynth are as demuxer(s), and FFmpeg deliberately does not allow execution of those scripts as video files unless you force the demuxer (-f vapoursynth before the input). If mpv was built against an FFmpeg that has vapoursynth support enabled, it will play the scripts back as video as long as you do the same thing you have to do in FFmpeg: force the demuxer when you invoke mpv (--demuxer-lavf-format=vapoursynth).
This is what I got in the cm shell:
Desktop> mpv --demuxer-lavf-format=vapoursynth D:\Samples\aaa_temp\aaa.vpy
[lavf] Unknown lavf format vapoursynth
[lavf] Unknown lavf format vapoursynth
Failed to recognize file format.
I always use shinchiro builds but think that I have also tried other builds and it appears that all those builds were built against an FFmpeg that hasn't vapoursynth support enabled. If that is true then maybe somebody can provide me with a x64 build, otherwise I might build it myself, I used to hate this but meanwhile have learned a couple of things.