Jump to content

Recommended Posts

tufeixp
Posted

Hi, I'm a developer and trying to use my external player I developed for 3d video playback. I need some clue to figure out the behaviour that Emby Theater does.

At the first time it runs and call my player, is send something like :

http://10.11.93.136:8096/emby/videos/24/stream.mkv?DeviceId=Z2D-LX2&MediaSourceId=04444d155573e6be5007ba5430ad8014&PlaySessionId=66729cc5eb6b4e47a8047c191fa3d211&api_key=9f5b9ddb9c3e40798b399787a05abcab&VideoCodec=h264&AudioCodec=aac,mp3,ac3&VideoBitrate=199552004&AudioBitrate=447996&MaxWidth=3840&AudioStreamIndex=1&SubtitleStreamIndex=4&SubtitleMethod=Encode&TranscodeReasons=SubtitleCodecNotSupported

apparently it's streaming instead of sending the local path of the video file.

the first question is : is it possible to remove all of the sub params as device id and api_key?

the second question is: how to config it to send the file URL instead of streaming? It can be done, after I installed the emby for kodi plugin inside kod, emby theater changed it's way to call my player using file urls, and I have no idea what's happening to emby.

 

Posted

Hi, what is the subtitle format that it is transcoding for?

tufeixp
Posted (edited)

Does it has something to do with the subtitle? I have not changed any default subtitle settings manually.

Edited by tufeixp
Posted
27 minutes ago, tufeixp said:

Does it has something to do with the subtitle? I have not changed any default subtitle settings manually.

This particular example, yes.

tufeixp
Posted
2 minutes ago, Luke said:

This particular example, yes.

Thank you for your conclusion but how can I recreate it by switching any options with subtitles?

tufeixp
Posted
7 hours ago, Luke said:

 

Hi there, let's look at an example. Please attach the information requested in how to report a media playback issue. Thanks!

 

Dear Luke, 

I have included full logs in the attachment, 'çause I''m unable to reproduce the problem, the I'm not able to find the exact point when this happening. 

I guess the server has decided to transcode and stream the video even it's on the same pc with absolute path accessable to the theater player, but I'm new to emby, don't know the machanism underhood. 

logs.zip

Posted

OK the reason you're getting a full transcode is because when we pass a url to the external player, there's no way to supply external subtitles. So therefore, in order for you to be able to see your subtitles at all, burning them in becomes the only way.

Maybe if we had an option to pass the raw file path to the player, then the player would be able to discover the external subtitles on it's own.

tufeixp
Posted

This does not explain why it call external player to play as a stream, while local media file exist on the same pc.Since I'm unable to re-create the problem, let's just ignore it.
The other question is, may I config the server to send the media without extra parameters like api_keys?

I've also found another weird problem with external player configuration: Enable with Media File / Network Stream, when I untick the media file in the first row, the external player(eg.potplayer) would fail to play network streamings, however, when have the media file ticked, it will play successfully with the streaming. 

tufeixp
Posted

I have another suggestion on the remind of ordering premium account, when using thirdparty players, other than emby theater windows(not apple tv client), it will still pop out a 1 minute remind but actually it will play to the end. The remind makes no sense for external players use cases, will you conside to remove that remind?

Posted
2 hours ago, tufeixp said:

This does not explain why it call external player to play as a stream, while local media file exist on the same pc.

It does because it could be a different machine. This has to work from whatever machine you run it on, so it's built in a way that will work from everywhere.

Posted
Quote

The other question is, may I config the server to send the media without extra parameters like api_keys?

If we added an option it would be about what I mentioned above, because I think this makes the most sense:

Quote

Maybe if we had an option to pass the raw file path to the player,

But what you could do right now is set subtitles to off on the video detail screen before pressing play. That should prevent the transcoding (at least in this example).

tufeixp
Posted
1 hour ago, Luke said:

If we added an option it would be about what I mentioned above, because I think this makes the most sense:

But what you could do right now is set subtitles to off on the video detail screen before pressing play. That should prevent the transcoding (at least in this example).

I have tried to set the subtile to on, however,  it won't stream for local files, so I'm unable to reproduce the problem happened two days ago once before I install the kodi plugin. Never mind, it's not happening now.

Maybe I have to look into the source code and tell.

Posted

OK. If you're seeing transcoding with the external player then you should be able to eliminate that by turning the subtitles off prior to playback.

  • 2 months later...
Posted (edited)

UPDATE: Nevermind, stupid me forgot to save credentials on my htpc for shared folders :( everything works as it should.. sorry for the trouble

 

I'm having similar problem, and I think few years ago it worked differently.

so I have separate computer where I store all my movies; emby server is installed on that computer. all folders containing movies on that computer are shared, and when I created library in emby server I specified for each folder its "shared folder" equivalent.

in the past when I had it configured like that and I used emby theather application with external player set to MPC-HC - emby theater was opening MPC-HC passing it actual file path to the movie (could be BDMV folder path, or MKV file path); now I see that it passing emby server application URL to either original.mkv or stream.mkv (in case of BDMV container)

is it possible to configure emby theater so it will pass actual file path (e.g. "\\myserver\movies01\back to the future 1\back-to-the-future-1.mkv") instead of URL to "original.mkv" on emby server?

I dont want emby server to do any transcoding or any kind of processing when I run emby theater app from my dedicated HTPC which belongs to the same LAN where computer running emby server belongs

thanks!

Edited by axlns
  • Thanks 1

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