Jump to content

[Feature Request] - Ability to set maximum bitrate


johnodon
Go to solution Solved by johnodon,

Recommended Posts

Angelblue05

@@johnodon

 

It's not able to direct play because it's not able to locate the file from Kodi using the path from your Emby library.

 

In your Emby server, what are your paths like under library (media location) for where your Avatar is located? 

 

Edit: At least I know my fallback works :P I added this failsafe to get the best possible outcome if the user has any issues. It will try to direct play first, then direct stream and then transcoding. Because the bitrate is already modified, and Avatar requires a higher bitrate to direct stream, it ended up transcoding.

Edited by Angelblue05
  • Like 1
Link to comment
Share on other sites

johnodon

@@Angelblue05 - I am using path substitutions.  Without them, my media will not play in Kodi.

 

Here my movie library path:

 

DKW8rQw.png

 

Here is the path sub for my movies library:

 

VEEc8Gf.png

Link to comment
Share on other sites

Angelblue05

@@johnodon

 

Ok, in the Emby for Kodi addon settings, can you set the log level to Debug instead of Info. Repeat the steps once more. It will show why it can't locate the file. Thanks :)

Edit: Oh and post your log, hehe.

Edited by Angelblue05
  • Like 1
Link to comment
Share on other sites

johnodon

I think you are close to nailing this.  I'm not sure if it is a configuration issue on my server or something else, but I set Emby back to 100Mbit so it did not transcode and I still see the same message in the kodi log:

17:30:28 T:6260  NOTICE: PLAY Called
17:30:28 T:6260  NOTICE: EMBY PlayUtils -> Can't direct play: Unable to locate the content.

So, I guess all it was doing was streaming at unlimited bitrate.

Link to comment
Share on other sites

johnodon

@@johnodon

 

Ok, in the Emby for Kodi addon settings, can you set the log level to Debug instead of Info. Repeat the steps once more. It will show why it can't locate the file. Thanks :)

 

I'll do that now..Hold one...

Link to comment
Share on other sites

Angelblue05

I think you are close to nailing this.  I'm not sure if it is a configuration issue on my server or something else, but I set Emby back to 100Mbit so it did not transcode and I still see the same message in the kodi log:

17:30:28 T:6260  NOTICE: PLAY Called
17:30:28 T:6260  NOTICE: EMBY PlayUtils -> Can't direct play: Unable to locate the content.

So, I guess all it was doing was streaming at unlimited bitrate.

Exactly my thoughts :)

Link to comment
Share on other sites

Angelblue05

I'm pretty sure your nfs path is incorrect because of the :\\, but I need someone to validate as I don't use it myself....

@@johnodon

 

Can you try reversing the slashes? like nfs://mnt/users/Movies

See if that works instead, that's the only thing I can think of....

Edited by Angelblue05
Link to comment
Share on other sites

johnodon

@@Angelblue05 - Hmmm...I think I may have solved but I'm not sure.  I changed my movies sub path to:

 

/mnt/user/Movies --> \\unraid\Movies

 

Unless I'm going googly eyed, I don't see the direct play error in this log.  Can you take a look also?

 

EDIT:  Answered my own question.  Looky looky...  :)

17:52:59 T:3744  NOTICE: EMBY PlayUtils -> logMsg : Path exists.
17:52:59 T:3744  NOTICE: EMBY PlayUtils -> logMsg : File is direct playing.
17:52:59 T:4092  NOTICE: DVDPlayer: Opening: smb://unraid/Movies/Avatar (2009)/Avatar (2009).mkv

kodi.log

Edited by johnodon
  • Like 1
Link to comment
Share on other sites

Angelblue05

I just don't know how nfs should be set in the server so if @@Luke or @@ebr can confirm the proper path format, I think you can get it to work with nfs paths.

 

I couldn't find any information about it in the wiki or tutorial...

Edited by Angelblue05
Link to comment
Share on other sites

johnodon

OK...let me try the format you suggested.  SMB works fine but NFS is a little faster for me.

 

I'll post back after I test.

  • Like 1
Link to comment
Share on other sites

johnodon

Well, that path looked better in some aspects but still failed to play...

18:07:20 T:4384  NOTICE: EMBY PlayUtils -> logMsg : Can't verify path. Still try direct play.
18:07:20 T:4384  NOTICE: EMBY PlayUtils -> logMsg : File is direct playing.
18:07:20 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : ====== 200 Success ======
18:07:20 T:776  NOTICE: DVDPlayer: Opening: nfs://mnt/user/Movies/Avatar (2009)/Avatar (2009).mkv
18:07:20 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : === ENTER downloadUrl ===
18:07:21 T:776 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
18:07:21 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : URL: http://192.168.1.10:8096/mediabrowser/Users/6f80196bcfab48cb92fb25ac4d94bf0f/Items?ParentId=61279d7d5e0dc0f58172231bd21c2748&IsVirtualUnaired=false&IsMissing=False&SortBy=SortName&Fields=Name,SortName,CumulativeRunTimeTicks,Etag&Recursive=true&SortOrder=Ascending&IncludeItemTypes=Episode&format=json&ImageTypeLimit=1
18:07:21 T:4016  NOTICE: Thread DVDPlayer start, auto delete: false
18:07:21 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : ====== 200 Success ======
18:07:21 T:4016  NOTICE: Creating InputStream
18:07:21 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : === ENTER downloadUrl ===
18:07:21 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : URL: http://192.168.1.10:8096/mediabrowser/Users/6f80196bcfab48cb92fb25ac4d94bf0f/Items?ParentId=4a51d77eefb0c7de21d65bd760df5b35&IsVirtualUnaired=false&IsMissing=False&SortBy=SortName&Fields=Name,SortName,CumulativeRunTimeTicks,Etag&Recursive=true&SortOrder=Ascending&IncludeItemTypes=Episode&format=json&ImageTypeLimit=1
18:07:21 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : ====== 200 Success ======
18:07:21 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : === ENTER downloadUrl ===
18:07:21 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : URL: http://192.168.1.10:8096/mediabrowser/Users/6f80196bcfab48cb92fb25ac4d94bf0f/Items?ParentId=153246ef3958dce25376114e1bebb074&IsVirtualUnaired=false&IsMissing=False&SortBy=SortName&Fields=Name,SortName,CumulativeRunTimeTicks,Etag&Recursive=true&SortOrder=Ascending&IncludeItemTypes=Episode&format=json&ImageTypeLimit=1
18:07:21 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : ====== 200 Success ======
18:07:21 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : === ENTER downloadUrl ===
18:07:21 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : URL: http://192.168.1.10:8096/mediabrowser/Users/6f80196bcfab48cb92fb25ac4d94bf0f/Items?ParentId=7c29ae9cf36ff4ef78182812f5037570&IsVirtualUnaired=false&IsMissing=False&SortBy=SortName&Fields=Name,SortName,CumulativeRunTimeTicks,Etag&Recursive=true&SortOrder=Ascending&IncludeItemTypes=Episode&format=json&ImageTypeLimit=1
18:07:21 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : ====== 200 Success ======
18:07:21 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : === ENTER downloadUrl ===
18:07:21 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : URL: http://192.168.1.10:8096/mediabrowser/Users/6f80196bcfab48cb92fb25ac4d94bf0f/Items?ParentId=672d13b74bf029d9ee1705768ded2124&IsVirtualUnaired=false&IsMissing=False&SortBy=SortName&Fields=Name,SortName,CumulativeRunTimeTicks,Etag&Recursive=true&SortOrder=Ascending&IncludeItemTypes=Episode&format=json&ImageTypeLimit=1
18:07:21 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : ====== 200 Success ======
18:07:21 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : === ENTER downloadUrl ===
18:07:21 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : URL: http://192.168.1.10:8096/mediabrowser/Users/6f80196bcfab48cb92fb25ac4d94bf0f/Items?ParentId=0490358d8b20c023b58f09088264454d&IsVirtualUnaired=false&IsMissing=False&SortBy=SortName&Fields=Name,SortName,CumulativeRunTimeTicks,Etag&Recursive=true&SortOrder=Ascending&IncludeItemTypes=Episode&format=json&ImageTypeLimit=1
18:07:21 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : ====== 200 Success ======
18:07:22 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : === ENTER downloadUrl ===
18:07:22 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : URL: http://192.168.1.10:8096/mediabrowser/Users/6f80196bcfab48cb92fb25ac4d94bf0f/Items?ParentId=5ebaf8e582f6ea6c876c072ada27791f&IsVirtualUnaired=false&IsMissing=False&SortBy=SortName&Fields=Name,SortName,CumulativeRunTimeTicks,Etag&Recursive=true&SortOrder=Ascending&IncludeItemTypes=Episode&format=json&ImageTypeLimit=1
18:07:22 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : ====== 200 Success ======
18:07:22 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : === ENTER downloadUrl ===
18:07:22 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : URL: http://192.168.1.10:8096/mediabrowser/Users/6f80196bcfab48cb92fb25ac4d94bf0f/Items?ParentId=12ac4e88d0f22fc30ca0c33b40a40b8b&IsVirtualUnaired=false&IsMissing=False&SortBy=SortName&Fields=Name,SortName,CumulativeRunTimeTicks,Etag&Recursive=true&SortOrder=Ascending&IncludeItemTypes=Episode&format=json&ImageTypeLimit=1
18:07:22 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : ====== 200 Success ======
18:07:22 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : === ENTER downloadUrl ===
18:07:22 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : URL: http://192.168.1.10:8096/mediabrowser/Users/6f80196bcfab48cb92fb25ac4d94bf0f/Items?ParentId=ca3e052417827337adb17a653c723ca8&IsVirtualUnaired=false&IsMissing=False&SortBy=SortName&Fields=Name,SortName,CumulativeRunTimeTicks,Etag&Recursive=true&SortOrder=Ascending&IncludeItemTypes=Episode&format=json&ImageTypeLimit=1
18:07:22 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : ====== 200 Success ======
18:07:22 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : === ENTER downloadUrl ===
18:07:22 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : URL: http://192.168.1.10:8096/mediabrowser/Users/6f80196bcfab48cb92fb25ac4d94bf0f/Items?ParentId=feea27f662bf6b3bb48e39eda95a29e7&IsVirtualUnaired=false&IsMissing=False&SortBy=SortName&Fields=Name,SortName,CumulativeRunTimeTicks,Etag&Recursive=true&SortOrder=Ascending&IncludeItemTypes=Episode&format=json&ImageTypeLimit=1
18:07:22 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : ====== 200 Success ======
18:07:22 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : === ENTER downloadUrl ===
18:07:22 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : URL: http://192.168.1.10:8096/mediabrowser/Users/6f80196bcfab48cb92fb25ac4d94bf0f/Items?ParentId=6cedd9b6b975b7ff9beffe8fd178d7be&IsVirtualUnaired=false&IsMissing=False&SortBy=SortName&Fields=Name,SortName,CumulativeRunTimeTicks,Etag&Recursive=true&SortOrder=Ascending&IncludeItemTypes=Episode&format=json&ImageTypeLimit=1
18:07:22 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : ====== 200 Success ======
18:07:23 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : === ENTER downloadUrl ===
18:07:23 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : URL: http://192.168.1.10:8096/mediabrowser/Users/6f80196bcfab48cb92fb25ac4d94bf0f/Items?ParentId=04c22d9905b5689a8e4c7d8bc9a5b96c&IsVirtualUnaired=false&IsMissing=False&SortBy=SortName&Fields=Name,SortName,CumulativeRunTimeTicks,Etag&Recursive=true&SortOrder=Ascending&IncludeItemTypes=Episode&format=json&ImageTypeLimit=1
18:07:23 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : ====== 200 Success ======
18:07:23 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : === ENTER downloadUrl ===
18:07:23 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : URL: http://192.168.1.10:8096/mediabrowser/Users/6f80196bcfab48cb92fb25ac4d94bf0f/Items?ParentId=485dd4c180df9049739467b2b0eacaec&IsVirtualUnaired=false&IsMissing=False&SortBy=SortName&Fields=Name,SortName,CumulativeRunTimeTicks,Etag&Recursive=true&SortOrder=Ascending&IncludeItemTypes=Episode&format=json&ImageTypeLimit=1
18:07:23 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : ====== 200 Success ======
18:07:23 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : === ENTER downloadUrl ===
18:07:23 T:5936  NOTICE: EMBY DownloadUtils -> logMsg : URL: http://192.168.1.10:8096/mediabrowser/Users/6f80196bcfab48cb92fb25ac4d94bf0f/Items?ParentId=c984fd154ce610242586f3f6fda36b79&IsVirtualUnaired=false&IsMissing=False&SortBy=SortName&Fields=Name,SortName,CumulativeRunTimeTicks,Etag&Recursive=true&SortOrder=Ascending&IncludeItemTypes=Episode&format=json&ImageTypeLimit=1
18:07:23 T:4016   ERROR: Unable to lookup host: 'mnt'
18:07:23 T:4016   ERROR: CDVDPlayer::OpenInputStream - error opening [nfs://mnt/user/Movies/Avatar (2009)/Avatar (2009).mkv]
18:07:23 T:4016  NOTICE: CDVDPlayer::OnExit()

I'll stick with the SMB path for now since I know it works.  If Luke/EBR chime in maybe we can figure it out.  Glad to know that it was not a plugin issue in the end.

 

Thanks for your help!

 

John

Link to comment
Share on other sites

Angelblue05

@@johnodon

 

Ok, please revert back to your original path (nfs:\\). I will fix this. I think I know why! :) Give me a few minutes.

Edited by Angelblue05
Link to comment
Share on other sites

johnodon

OK...ready to go...

 

/mnt/user/Movies/  -->  nfs:\\mnt\user\Movies\

Edited by johnodon
Link to comment
Share on other sites

Angelblue05

@@johnodon

Alright, same deal as before. Install the zip, no need to uninstall first, just restart Kodi after installing the zip. If it doesn't work and still direct streams, I'll have to rethink this, so for the moment you can switch to smb if it doesn't work. :)

plugin.video.emby-1.0.0.zip

Edited by Angelblue05
Link to comment
Share on other sites

johnodon

@@Angelblue05 - I'll do that now.  Something to think about...was just doing some reading and the correct format may be nfs:// as you had suggested.  But I will try nfs:\\  now.

Link to comment
Share on other sites

Angelblue05

@@johnodon - Yeah, if it doesn't work, then we know your nfs are incorrect for sure. I'm basically letting Kodi decide if it works or not in the build I'm making you test.... :)

Link to comment
Share on other sites

johnodon

OK...I think I am an idiot.

 

Don't I need an actual server name (IP) in my nfs path?  :S

 

like...  nfs:\\192.168.1.10\user\mnt\Movies\

  • Like 1
Link to comment
Share on other sites

johnodon

I modded my paths subs to include server IP:

 

This one played but failed directl play and defaulted to HTTP (nfs://):

18:38:53 T:4604  NOTICE: EMBY PlayUtils -> logMsg : Path is detected as a Url: nfs://192.168.1.10/mnt/user/Movies/Avatar (2009)/Avatar (2009).mkv. Try direct streaming.
18:38:53 T:4604  NOTICE: EMBY PlayUtils -> logMsg : Can't direct play: Unable to locate the content.
18:38:53 T:4604  NOTICE: EMBY PlayUtils -> logMsg : Playurl: http://192.168.1.10:8096/mediabrowser/Videos/94b2dfb740b42a6401ab88b3f02e045f/stream?static=true&AudioStreamIndex=1
18:38:53 T:4604  NOTICE: EMBY PlayUtils -> logMsg : File is direct streaming.

This one failed to play at all but the issue is obvious (nfs:\\):

18:42:24 T:5572  NOTICE: EMBY PlayUtils -> logMsg : Can't verify path. Still try direct play.
18:42:25 T:5572  NOTICE: EMBY PlayUtils -> logMsg : File is direct playing.
18:42:25 T:5640  NOTICE: DVDPlayer: Opening: nfs:smb://192.168.1.10/mnt/user/Movies/Avatar (2009)/Avatar (2009).mkv

  • Like 1
Link to comment
Share on other sites

Angelblue05

Ok, that's great! so what I had originally worked fine. :) So I guess what you can do now is to go uninstall the addon and reinstall the version from the Emby repo under add-ons > Get add-ons. This should work correctly now that you fixed your path. Restart Kodi and you should get nfs direct playing. (fingers crossed)

Edited by Angelblue05
Link to comment
Share on other sites

johnodon

@@Angelblue05

 

Sigh...

 

I ended up just removing Kodi and deleting any leftover bits.

 

Reinstalled Kodi Helix, the Emby Repo and the Emby Plugin (from the repo) with no defaults changed other than to turn debug logging.

 

Sub path is set to nfs:\\192.168.1.10\mnt\user\Movies\

 

This is what I see in the Kodi log...

19:10:03 T:5308  NOTICE: PLAY Called
19:10:03 T:5308  NOTICE: EMBY PlayUtils -> logMsg : Path is detected as a Url. Try direct streaming.
19:10:03 T:6684  NOTICE: EMBY DownloadUtils -> logMsg : ====== 200 Success ======
19:10:03 T:5308  NOTICE: EMBY PlayUtils -> logMsg : Playurl: http://192.168.1.10:8096/mediabrowser/Videos/94b2dfb740b42a6401ab88b3f02e045f/stream?static=true&AudioStreamIndex=1
19:10:03 T:5308  NOTICE: EMBY PlayUtils -> logMsg : File is direct streaming.
19:10:03 T:6684  NOTICE: EMBY DownloadUtils -> logMsg : === ENTER downloadUrl ===
19:10:03 T:6388  NOTICE: DVDPlayer: Opening: http://192.168.1.10:8096/mediabrowser/Videos/94b2dfb740b42a6401ab88b3f02e045f/stream?static=true&AudioStreamIndex=1
19:10:03 T:6684  NOTICE: EMBY DownloadUtils -> logMsg : URL: http://192.168.1.10:8096/mediabrowser/Users/6f80196bcfab48cb92fb25ac4d94bf0f/Items?ParentId=31ed0dbcfd456fe95ec1b8967f30a276&IsVirtualUnaired=false&IsMissing=False&SortBy=SortName&Fields=Name,SortName,CumulativeRunTimeTicks,Etag&Recursive=true&SortOrder=Ascending&IncludeItemTypes=Episode&format=json&ImageTypeLimit=1
19:10:03 T:6388 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
19:10:03 T:4868  NOTICE: Thread DVDPlayer start, auto delete: false

Still wants to stream.

Edited by johnodon
  • Like 1
Link to comment
Share on other sites

Angelblue05

Ok, thanks for reporting back. Do not worry, I'll get it to work, but for now you can switch your path substitution to \\unraid\. I'll test a few things on my side.

Edited by Angelblue05
Link to comment
Share on other sites

johnodon

Will do.

 

BTW...I did my own test.

 

I added an new Source in Kodi under File Manager and point to the NFS share on my unraid server.  I then played Avatar from that source and this is how Kodi saw the NFS path:

19:20:43 T:5956  NOTICE: DVDPlayer: Opening: nfs://192.168.1.10/mnt/user/Movies/Avatar (2009)/Avatar (2009).mkv
19:20:43 T:776  NOTICE: EMBY DownloadUtils -> logMsg : === ENTER downloadUrl ===
19:20:43 T:5956 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
19:20:43 T:776  NOTICE: EMBY DownloadUtils -> logMsg : URL: http://192.168.1.10:8096/mediabrowser/Users/6f80196bcfab48cb92fb25ac4d94bf0f/Items?ParentId=5ebaf8e582f6ea6c876c072ada27791f&IsVirtualUnaired=false&IsMissing=False&SortBy=SortName&Fields=Name,SortName,CumulativeRunTimeTicks,Etag&Recursive=true&SortOrder=Ascending&IncludeItemTypes=Episode&format=json&ImageTypeLimit=1
19:20:43 T:436  NOTICE: Thread DVDPlayer start, auto delete: false
19:20:43 T:436  NOTICE: Creating InputStream
19:20:43 T:776  NOTICE: EMBY DownloadUtils -> logMsg : ====== 200 Success ======
19:20:43 T:436  NOTICE: Creating Demuxer

  • Like 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...