Jump to content


Photo

How do I know if I'm using direct play, streaming, or transcoding?


Best Answer Angelblue05 , 23 May 2015 - 12:08 AM

Very simple :)

 

Direct play: Kodi plays the file, bypassing your Emby server. This can only happen if Kodi has access to the file via local/network.

Direct stream: Emby server feeds the file as is to Kodi. There is no modification done to the file.

Transcoding: Emby server feeds the file in a readable format to Kodi. This happens in the event Kodi doesn't support the file format you are trying to play.

Go to the full post


  • This topic is locked This topic is locked
51 replies to this topic

#1 smidley OFFLINE  

smidley

    Advanced Member

  • Members
  • 58 posts
  • Local time: 04:39 PM

Posted 22 May 2015 - 10:42 PM

I've got Kodi set up with the Emby add-on at home.  How do I know if playback is using Direct Play, streaming, or transcoding?  When I'm playing something, I can see what looks like a buffer amount in the progress bar.  Is there any way to know what method is being used within Kodi or within Emby server?  Sorry if this is a noob question, I'm new to this setup.  :)



#2 null_pointer OFFLINE  

null_pointer

    Advanced Member

  • Developers
  • 4999 posts
  • Local time: 10:39 AM

Posted 22 May 2015 - 11:15 PM

Unless you have enabled the Play over HTTP stream it is direct playing the file.
If you enable the Play over HTTP then how you set up the options for that will determine if you are streaming or not.

Simple answer is, don't turn on play over HTTP and you will always be Direct Play.

UPDATE:
There is once situation there even with the above "Play Over HTTP" not set if the addon can not find the file locally on a share then it will PROMPT you if you want it to try streaming over HTTP. But as I said it will prompt you in this situation.

Edited by null_pointer, 22 May 2015 - 11:17 PM.

  • Angelblue05 likes this

#3 Angelblue05 OFFLINE  

Angelblue05

    Post-your-log to the rescue!

  • Developers
  • 11877 posts
  • Local time: 05:39 PM

Posted 22 May 2015 - 11:42 PM

Adding to what null_pointer already mentioned.

 

In your Emby server dashboard, under Active device, when Kodi plays something you can simply mouseover the Kodi device and it will tell you if it's Direct playing, Direct streaming or transcoding. :)



#4 smidley OFFLINE  

smidley

    Advanced Member

  • Members
  • 58 posts
  • Local time: 04:39 PM

Posted 22 May 2015 - 11:51 PM

Thanks for the replies!  That's what I figured was happening.  Now one last question - With Emby, what's the difference between streaming and transcoding?



#5 Angelblue05 OFFLINE  

Angelblue05

    Post-your-log to the rescue!

  • Developers
  • 11877 posts
  • Local time: 05:39 PM

Posted 23 May 2015 - 12:08 AM   Best Answer

Very simple :)

 

Direct play: Kodi plays the file, bypassing your Emby server. This can only happen if Kodi has access to the file via local/network.

Direct stream: Emby server feeds the file as is to Kodi. There is no modification done to the file.

Transcoding: Emby server feeds the file in a readable format to Kodi. This happens in the event Kodi doesn't support the file format you are trying to play.


Edited by Angelblue05, 23 May 2015 - 12:09 AM.

  • CBers, xnappo and teiva like this

#6 smidley OFFLINE  

smidley

    Advanced Member

  • Members
  • 58 posts
  • Local time: 04:39 PM

Posted 23 May 2015 - 12:28 AM

Very simple :)

 

Direct play: Kodi plays the file, bypassing your Emby server. This can only happen if Kodi has access to the file via local/network.

Direct stream: Emby server feeds the file as is to Kodi. There is no modification done to the file.

Transcoding: Emby server feeds the file in a readable format to Kodi. This happens in the event Kodi doesn't support the file format you are trying to play.

 

Excellent explanation!  I assume pretty much the only time transcoding is done would be for things like playback via the web browser?



#7 Angelblue05 OFFLINE  

Angelblue05

    Post-your-log to the rescue!

  • Developers
  • 11877 posts
  • Local time: 05:39 PM

Posted 23 May 2015 - 12:40 AM

Excellent explanation!  I assume pretty much the only time transcoding is done would be for things like playback via the web browser?

Exactly, the only time you should see transcoding is if the format is not supported (web browser have limited support) and/or if you force it by lowering the Video quality.

In Kodi, you should be able to play everything directly (there's very few things Kodi can't play).



#8 tehdartherer OFFLINE  

tehdartherer

    Member

  • Members
  • 13 posts
  • Local time: 11:39 PM

Posted 25 May 2015 - 12:27 PM

Is forcing a lower video quality now supported by the new Emby addon?



#9 xnappo OFFLINE  

xnappo

    Advanced Member

  • Developers
  • 5664 posts
  • Local time: 05:39 PM
  • LocationAustin, TX

Posted 25 May 2015 - 01:00 PM

Yes, just turn on the 'Play from HTTP instead of SMB' option, then you can select the bitrate.



#10 cw-kid OFFLINE  

cw-kid

    Advanced Member

  • Members
  • 1186 posts
  • Local time: 11:39 PM
  • LocationEngland

Posted 27 May 2015 - 10:25 AM

Exactly, the only time you should see transcoding is if the format is not supported (web browser have limited support) and/or if you force it by lowering the Video quality.
In Kodi, you should be able to play everything directly (there's very few things Kodi can't play).


So when the Kodi PC is remote to the Emby server, the play from HTTP option should be used. In this situation the only items that transcoded during my tests were a DVD VIDEO_TS rip and a Bluray ISO rip.

Everything else seemed to direct stream OK apart from .mov which it doesn't seem to like playing remotely.
  • Angelblue05 likes this

#11 xnappo OFFLINE  

xnappo

    Advanced Member

  • Developers
  • 5664 posts
  • Local time: 05:39 PM
  • LocationAustin, TX

Posted 27 May 2015 - 10:42 AM

Can you try playing that .mov remotely through the web interface?



#12 cw-kid OFFLINE  

cw-kid

    Advanced Member

  • Members
  • 1186 posts
  • Local time: 11:39 PM
  • LocationEngland

Posted 27 May 2015 - 01:16 PM

Hi

OK this is one of the same .mov files we have talked about in other threads, "Aliens in the Attic" just tried to play it in the Emby web GUI in Chrome browser remotely as I'm at my parents house now.

Its playing fine and Emby says its transcoding.

However when playing this same movie in Kodi it starts to play but then pauses, press play again and it plays for a few seconds and then pauses again. The server says its direct streaming.

So its still the same as before in Kodi when trying to play any .mov files.

#13 Angelblue05 OFFLINE  

Angelblue05

    Post-your-log to the rescue!

  • Developers
  • 11877 posts
  • Local time: 05:39 PM

Posted 27 May 2015 - 01:24 PM

It has to do with Quicktime, maybe the fact that we use apple.com to detect if we should use the user agent should change to detect the type QuickTime (.mov)?

if "apple.com" in playurl:
    USER_AGENT = 'QuickTime/7.7.4'
    playurl += "?|User-Agent=%s" % USER_AGENT

Edited by Angelblue05, 27 May 2015 - 01:26 PM.


#14 xnappo OFFLINE  

xnappo

    Advanced Member

  • Developers
  • 5664 posts
  • Local time: 05:39 PM
  • LocationAustin, TX

Posted 27 May 2015 - 01:29 PM

Oh yeah - that is something for the trailers stuff I think.

 

@im85288 - do we still need that?



#15 cw-kid OFFLINE  

cw-kid

    Advanced Member

  • Members
  • 1186 posts
  • Local time: 11:39 PM
  • LocationEngland

Posted 27 May 2015 - 01:37 PM

I just tried to play another .mov file in Kodi remotely, one which we have not tried before "Dances with Wolves" and that does the same starts to play for a few seconds and then pauses etc. So I would say probably all my .mov files are affected, I've not had one play OK yet.

 

Looking at this title in the Emby web GUI in the media info section Emby is still showing two video sections, what did @Luke say? Something about it reading the embedded image..

 

5566007a220f2_Embymov.png



#16 cw-kid OFFLINE  

cw-kid

    Advanced Member

  • Members
  • 1186 posts
  • Local time: 11:39 PM
  • LocationEngland

Posted 27 May 2015 - 01:52 PM

Also other Apple formats / containers such as .m4v .mp4 play fine in kodi remotely and direct stream. Just .mov seem to be an issue.

And is it expected that DVD VIDEO_TS rips transcode remotely in kodi?

#17 xnappo OFFLINE  

xnappo

    Advanced Member

  • Developers
  • 5664 posts
  • Local time: 05:39 PM
  • LocationAustin, TX

Posted 27 May 2015 - 01:59 PM

Try a hack.  Change line 152 of playUtils.py from:

if "apple.com" in playurl:

to:

if 1==1:

Restart Kodi, and try playing one of them.  This will break everything OTHER than .mov files :)



#18 Angelblue05 OFFLINE  

Angelblue05

    Post-your-log to the rescue!

  • Developers
  • 11877 posts
  • Local time: 05:39 PM

Posted 27 May 2015 - 02:04 PM

And is it expected that DVD VIDEO_TS rips transcode remotely in kodi?

 

I don't know if the server can direct stream these formats (including blurays). I'm not sure how to support it.


Edited by Angelblue05, 27 May 2015 - 02:05 PM.


#19 cw-kid OFFLINE  

cw-kid

    Advanced Member

  • Members
  • 1186 posts
  • Local time: 11:39 PM
  • LocationEngland

Posted 27 May 2015 - 04:14 PM

Try a hack.  Change line 152 of playUtils.py from:

if "apple.com" in playurl:

to:

if 1==1:

Restart Kodi, and try playing one of them.  This will break everything OTHER than .mov files :)

 

I can try this if you want? next time I am there. 



#20 xnappo OFFLINE  

xnappo

    Advanced Member

  • Developers
  • 5664 posts
  • Local time: 05:39 PM
  • LocationAustin, TX

Posted 27 May 2015 - 04:30 PM

Yeah, give it a try when you get a chance.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users