Jump to content

Spinning forever but playback doesn't start


flexage
Go to solution Solved by pünktchen,

Recommended Posts

flexage

Hi guys,

 

I've been trying to get the MediaPortal plugin working on my Emby server, but without much success I'm afraid...

 

I have tested that MediaPortal is installed correctly, and that all channels are scanned right.

 

I can play back just fine in Kodi.

 

I have installed the latest MPExtended (0.6?) that was modified to work with emby.

 

The MediaPortal plugin seems to import all my channels into Emby (albeit in a random order, but that's not the problem I'm trying to solve right now).

 

Upon attempting to start playback of a channel, I am treated to the multicoloured spinner of the Web UI just going round and round... I have tried other clients (Android & Nexus Player & Fire TV) also without any successful playback.

 

Looking at the server logs I can see several errors, I have included a relevant excerpt below.

 

One of the lines mentioned that "The bitrate exceeds the Direct Play Limit". My bitrate limit in the Emby playback settings was set to auto, so I changed it to the max (1080p 40Mbit) still without any success.

 

I also tried setting the transcoding option in the MediaPortal plugin from Direct to the Lowed possible transcoded option (FFMPEG LQ) without any success or difference in the recorded logs.

 

Can anybody help out with this? My good lady would be really happy if I could get this working on our Emby boxes.

 

Edit: I forgot to mention that I have checked for FFMPEG logs in Emby and there aren't any created when I attempt to playback a Live TV channel.

2016-01-11 02:02:06.5135 Debug LiveTvMediaSourceProvider: MediaSources: [{"Protocol":"Http","Id":"960aff04915294b8bdfac4c53f88978e","Path":"http://192.127.0.100:8096","Type":"Default","Name":"BBC One N West","ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"RequiresOpening":true,"OpenToken":"LiveTvChannel_960aff04915294b8bdfac4c53f88978e_960aff04915294b8bdfac4c53f88978e","RequiresClosing":false,"BufferMs":1500,"MediaStreams":[],"PlayableStreamFileNames":[],"Formats":[],"RequiredHttpHeaders":{}}]
2016-01-11 02:02:06.5135 Info App: Bitrate exceeds DirectPlay limit
2016-01-11 02:02:06.5135 Info App: Bitrate exceeds DirectPlay limit
2016-01-11 02:02:06.5135 Info App: Profile: Unknown Profile, Path: http://192.127.0.100:8096, isEligibleForDirectPlay: False, isEligibleForDirectStream: False
2016-01-11 02:02:06.5135 Info App: Bitrate exceeds DirectPlay limit
2016-01-11 02:02:06.5135 Info App: Bitrate exceeds DirectPlay limit
2016-01-11 02:02:06.5135 Info App: Profile: Unknown Profile, Path: http://192.127.0.100:8096, isEligibleForDirectPlay: False, isEligibleForDirectStream: False
2016-01-11 02:02:06.5135 Info HttpServer: HTTP Response 200 to ::ffff:87.113.163.115. Time: 47ms. http://flexage.org.uk:8096/emby/Items/960aff04915294b8bdfac4c53f88978e/PlaybackInfo?UserId=88d6d46b9de3496493a32bb287fff69a&StartTimeTicks=0
2016-01-11 02:02:06.5135 Info HttpServer: HTTP POST http://flexage.org.uk:8096/emby/LiveStreams/Open?UserId=88d6d46b9de3496493a32bb287fff69a&StartTimeTicks=0&ItemId=960aff04915294b8bdfac4c53f88978e&PlaySessionId=659bb568462f4b53b655dfb559c5447e. UserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36
2016-01-11 02:02:06.5135 Info App: Opening channel stream from MediaPortal Live TV Service, external channel Id: 933
2016-01-11 02:02:06.5291 Error App: Error getting channel stream
	*** Error Report ***
	Version: 3.0.5801.0
	Command line: C:\Users\Administrator\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
	Operating system: Microsoft Windows NT 6.2.9200.0
	Processor count: 8
	64-Bit OS: True
	64-Bit Process: False
	Program data path: C:\Users\Administrator\AppData\Roaming\Emby-Server
	Application Path: C:\Users\Administrator\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
	Method not found: 'System.Collections.Generic.IEnumerable`1<System.String> MediaBrowser.Common.Net.INetworkManager.GetLocalIpAddresses()'.
	System.MissingMethodException
	   at MediaBrowser.Plugins.MediaPortal.Services.Proxies.StreamingServiceProxy.GetStream(CancellationToken cancellationToken, WebMediaType webMediaType, String itemId, TimeSpan startPosition)
	   at MediaBrowser.Plugins.MediaPortal.Services.Proxies.StreamingServiceProxy.GetLiveTvStream(CancellationToken cancellationToken, String channelId)
	   at MediaBrowser.Plugins.MediaPortal.MediaPortal1TvService.GetChannelStream(String channelId, String streamId, CancellationToken cancellationToken)
	   at MediaBrowser.Server.Implementations.LiveTv.LiveTvManager.<GetLiveStream>d__46.MoveNext()
	
2016-01-11 02:02:06.5291 Error DtoUtils: ServiceBase<TRequest>::Service Exception
	*** Error Report ***
	Version: 3.0.5801.0
	Command line: C:\Users\Administrator\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
	Operating system: Microsoft Windows NT 6.2.9200.0
	Processor count: 8
	64-Bit OS: True
	64-Bit Process: False
	Program data path: C:\Users\Administrator\AppData\Roaming\Emby-Server
	Application Path: C:\Users\Administrator\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
	Method not found: 'System.Collections.Generic.IEnumerable`1<System.String> MediaBrowser.Common.Net.INetworkManager.GetLocalIpAddresses()'.
	System.MissingMethodException
	   at MediaBrowser.Plugins.MediaPortal.Services.Proxies.StreamingServiceProxy.GetStream(CancellationToken cancellationToken, WebMediaType webMediaType, String itemId, TimeSpan startPosition)
	   at MediaBrowser.Plugins.MediaPortal.Services.Proxies.StreamingServiceProxy.GetLiveTvStream(CancellationToken cancellationToken, String channelId)
	   at MediaBrowser.Plugins.MediaPortal.MediaPortal1TvService.GetChannelStream(String channelId, String streamId, CancellationToken cancellationToken)
	   at MediaBrowser.Server.Implementations.LiveTv.LiveTvManager.<GetLiveStream>d__46.MoveNext()
	--- End of stack trace from previous location where exception was thrown ---
	   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
	   at MediaBrowser.Server.Implementations.LiveTv.LiveTvManager.<GetChannelStream>d__2f.MoveNext()
	--- End of stack trace from previous location where exception was thrown ---
	   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
	   at MediaBrowser.Server.Implementations.LiveTv.LiveTvMediaSourceProvider.<OpenMediaSource>d__7.MoveNext()
	--- End of stack trace from previous location where exception was thrown ---
	   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
	   at MediaBrowser.Server.Implementations.Library.MediaSourceManager.<OpenLiveStream>d__36.MoveNext()
	--- End of stack trace from previous location where exception was thrown ---
	   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
	   at MediaBrowser.Api.Playback.MediaInfoService.<Post>d__4.MoveNext()
	
2016-01-11 02:02:06.5291 Error HttpServer: Error processing request for /emby/LiveStreams/Open?UserId=88d6d46b9de3496493a32bb287fff69a&StartTimeTicks=0&ItemId=960aff04915294b8bdfac4c53f88978e&PlaySessionId=659bb568462f4b53b655dfb559c5447e
	*** Error Report ***
	Version: 3.0.5801.0
	Command line: C:\Users\Administrator\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
	Operating system: Microsoft Windows NT 6.2.9200.0
	Processor count: 8
	64-Bit OS: True
	64-Bit Process: False
	Program data path: C:\Users\Administrator\AppData\Roaming\Emby-Server
	Application Path: C:\Users\Administrator\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
	Method not found: 'System.Collections.Generic.IEnumerable`1<System.String> MediaBrowser.Common.Net.INetworkManager.GetLocalIpAddresses()'.
	ServiceStack.HttpError
	No Stack Trace Available
	
2016-01-11 02:02:06.5291 Info HttpServer: HTTP Response 500 to ::ffff:87.113.163.115. Time: 16ms. http://flexage.org.uk:8096/emby/LiveStreams/Open?UserId=88d6d46b9de3496493a32bb287fff69a&StartTimeTicks=0&ItemId=960aff04915294b8bdfac4c53f88978e&PlaySessionId=659bb568462f4b53b655dfb559c5447e
2016-01-11 02:02:13.5286 Info HttpServer: HTTP GET http://flexage.org.uk:8096/emby/System/Logs/Log?name=server-63588074162.txt&api_key=febf85f1970a4a309b884857d27948c8. UserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36
Edited by flexage
Link to comment
Share on other sites

  • Solution
pünktchen

You are at Emby Server beta, right?

There's a bug in the MediaPortal plugin, but i haven't uploaded a new version yet.

You could try Emby stable in the meantime...

  • Like 1
Link to comment
Share on other sites

flexage

Ahhhhh, yes I am on the beta update channel.

 

Is there any way to force a downgrade to the latest stable Emby Server?

Link to comment
Share on other sites

flexage

I figured it out, just downloaded the latest stable installer from the emby website, just refreshing the guide and will try again

Link to comment
Share on other sites

flexage

Cool! It plays back now!!!

 

The first guide refresh after the downgrade took forever and just emptied the live TV database. I left it running overnight. A second guide refresh went much more quickly and populated all channels.

 

The only issue I'm facing now is that my MediaPortal channel numbers aren't being respected, and my guide is in a random order.

 

I have chosen to sort by channel number and "index channels" setting is turned on. I have over 600 channels, and trying to find them in a weird order really isn't fun!

 

@@pünktchen any ideas on how to fix this?

Link to comment
Share on other sites

pünktchen

600 channels??? No wonder that the guide refresh takes forever. I really recommend you to create a new channel group in TVServer with your favourites just for Emby. Within this group in TVServer, sort your channels by number. In the Emby MediaPortal plugin use default channel order! (sometimes needs still "channel index") Channel sorting by number in the plugin means by channel id actually - it's a small mistake by the original developer. MPExtended doesn't provide the visible channel numbers and i haven't looked into a codechange yet...

Link to comment
Share on other sites

flexage

Hey, thanks for the info. It's only ever been slow to update the guide once, and that was only after the downgrade. All other times the guide has synced within 1 to 2 mins.

 

On your advice I changed the channel sorting to default and left index channels ticked and now all, and I mean all 600 and so channels are in the right order, lol!

 

Thanks for all the help, the media portal plugin really works great!!!

 

I've tried it on the web UI, android mobile app, fire TV app, and android TV app and playback has been flawless!

 

I'll make sure to stay on the stable release channel for server in future, just to make sure ;)

  • Like 1
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...