Jump to content

Using SVP with Emby Theater on Linux


fyutins

Recommended Posts

Hey,

I'm using Emby Theater on Linux (Manjaro KDE). It works nice but now I'm trying to use (Smooth Video Project  ) and I can't find a way to make it work.

SVP needs MPV with vapoursynth support, that's why on Windows we need to replace the default MPV with one with vapoursynth support (https://www.svp-team.com/forum/viewtopic.php?id=3959)

So do you have any idea how I could replace the default MPV with my own MPV build ?

Thank you for your time ;)

  • Like 1
Link to comment
Share on other sites

Quote

So do you have any idea how I could replace the default MPV with my own MPV build ?

Hi, I'm sure it's possible, but I don't think anyone has ever tried this with our Linux app before. If you do try it out, please let us know how you get on. Thanks !

Link to comment
Share on other sites

Ok, so I build my own version of MPV with vapoursynth support and I get it to work with Smooth Video Project.

I tried to replace MPV in Emby Theater, but without success. I tried to replace /usr/lib/emby-theater/libmpv.so.1 with /usr/local/bin/mpv (the one I build) but each time I start a video, I got the message "Couldn't load plugin".

Do you do something special to build MPV ?  I just followed build instructions from their git page (https://github.com/mpv-player/mpv/tree/v0.32.0)

Is there any log file from emby theater that could help me to debug what's wrong with my own build ? It seems like I'm not replacing the good file or that I'm not building the good format or something 🤔

 

Link to comment
Share on other sites

Quote

Do you do something special to build MPV ?  I just followed build instructions from their git page (https://github.com/mpv-player/mpv/tree/v0.32.0)

Well we're building it ourselves but our build process should be the same as theirs as that's where we got it from. You could try running Theater from the console and see if anything gets printed there.

Link to comment
Share on other sites

On 8/15/2020 at 12:12 AM, sooty234 said:

You need to build libmpv not mpv.exe

Ok thanks, that's clearly better with libmpv 😄

Now, I can see in the MPV log that Emby is running the good MPV with vapoursynth support, but it still doesn't work.

In MPV logs, it says that it "Could not initialize VapourSynth scripting.". It's strange because it's the same issue as if vapoursynth was not installed, but at the start of the log it clearly says that vapoursynth is supported 🤔

I will also ask on SVP forums if they can help me !

edit : https://www.svp-team.com/forum/viewtopic.php?pid=76409#p76409

mpv.log

Edited by fyutins
Add link
Link to comment
Share on other sites

Ok, thanks to a SVP developer, I found the origin of the problem ! When Emby starts MPV, I don't know why, but it use Python 2.7 and Vapoursynth needs Python 3.7

Maybe you are changing the $PYTHONPATH when running Emby Theater ? If so, is there any possibility to change the version of Python that is used when starting MPV ?

PS: If I uninstall Python 2.7, when I run a video, Emby says "Could not load plugin"

Edited by fyutins
Link to comment
Share on other sites

It's embedded into the app so this won't be easy. I wonder if you could set an environment variable on our application to try and override it? 

Link to comment
Share on other sites

2 minutes ago, Luke said:

It's embedded into the app so this won't be easy. I wonder if you could set an environment variable on our application to try and override it? 

I'm sorry but I didn't understand what you want me to try 🤔😄

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...