An FFmpeg based source library and Avisynth/VapourSynth plugin for easy frame accurate access
576
stars
104
forks
source link
libffms2-4 on Ubuntu with VapourSynth returns two VideoNode objects with the format argument #341
Closed
marksfink closed 2 years ago
I'm running Ubuntu 18.10. I installed the libffms2-4 package provided by apt. And I installed the vapoursynth packages from apt also.
If I use this line in a VPY script, all is well: video = core.ffms2.Source(source)
If I add the format argument, I have problems. As in: video = core.ffms2.Source(source, format=vs.YUV420P8)
And I see the problem with any format specified. The problem arises simply by adding the format argument.
The problem is that ffms2 returns a list of two VideoNode objects. So I have to add this line for subsequent commands to work: video = video[0]
The two objects that it returns are identical, so I could use either one, but that's beside the point.
I also have VapourSynth and ffms2 installed on a Windows machine and I do not see the problem there.
I attached debugger output from VS Code so you can see what I mean.