Jump to content

Trouble Getting .strm files to play on Linux


Recommended Posts

MartinCheetham
Posted

Could someone help here please?  My setup is multiple Emby servers and clients on Windows and Linux with a QNAP NAS as the place where all my media is stored.  As I host a non-English audience.  I decided to try to create libraries with non-English metadata which has .strm files pointing to the actual .mkv files which are held on the NAS.  Generally this has worked well.  On a Windows client (with Windows server) the libraries are displayed in foreign language, where it is available, and Movies and TV shows play correctly.  The .strm file just has a pointer to the locally mounted drive on the QNAP.  On the Ubuntu clients (with Linux server), again the libraries are populated with foreign language descriptions of films and TV shows but I simply can't get the content to play (the screen just hangs, no error message).  From the log files I can see "Directory or File does not Exist".  I have tried many variations of the URL in the .strm files such as;

/mnt/Qmultimedia/Movies/<folder>/<film name>.mkv

With this variant I see "file:" prefixed to the URL in the log so I tried adding it;

file:///mnt/Qmultimedia/Movies/<folder>/<film name>.mkv

file://localhost/mnt/Qmultimedia/Movies/<folder>/<film name>.mkv

I have even tried stripping off the <Cr> which one google search told me could be a problem as the files are created on a PC running windows.

I have checked the path using something like;

sudo -u emby ls -la "/mnt/Qmultimedia/Movies/FirstdonoHarm.mkv".

This returns details of the file (so it is found) and is executable;

-rwxr-xr-x 1 root root 3856642267 Feb 24  2022 /mnt/Qmultimedia/Movies/FirstdonoHarm.mkv

(I stripped out the spaces  and brackets in the file name in case this was an issue).

Does anyone know the correct way to format the URL in a .strm file to play a locally mounted .mkv file?

Thanks.

Lessaj
Posted

Out of curiosity, if you mount that share so that locally you can also see "/mnt/Qmultimedia/Movies/FirstdonoHarm.mkv" at the exact same path, does that play?

MartinCheetham
Posted

Yes.  That is the path I use for the English version of the library metadata.  So the mount is fine and the server can see and play the videos.

Posted

No not on the server, I mean on the Ubuntu client.

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...