Jump to content

Tvheadend plugin for Emby - Beta 1


Recommended Posts

ShotToTheDome
Posted (edited)

Plugin is fantastic, works like a charm :-). Just one quick question if you have time. What are my options for getting Recordings and/or Live TV thumbnails? The interface looks a tad empty with lots of coloured boxes.

 

Cheers.

 

I'm using mc2xml with schedules direct. I combine all 4 of my SD lineups into one and then import into tvheadend using the External: xmltv module (the one with xmltv.sock that you cat the data into)

 

example screenshot:

5a53ac7d14aa4_EmbyTVHprogramicons.jpg

Edited by ShotToTheDome
  • Like 1
  • 2 weeks later...
Posted

Hi,

 

I seem to have an error where if the channel I am loading doesn’t work for some reason, live tv stops working. It seems to cling to that channel, showing a subscription to it in tvheadend, even with the client turned off. Any other channel doesn’t work and doesn’t register any new subscription.

 

Any ideas?

Posted

Hi,

 

I seem to have an error where if the channel I am loading doesn’t work for some reason, live tv stops working. It seems to cling to that channel, showing a subscription to it in tvheadend, even with the client turned off. Any other channel doesn’t work and doesn’t register any new subscription.

 

Any ideas?

 

Hi there @@jleckenby, can we please look at an example? Please attach the information requested in how to report a problem. thanks !

Posted

Okay, I've attached logs, hope these help.

 

I've attached screenshots of what happens. I select a channel which doesn't load (for whatever reason). It then hangs with a spinner. I can then navigate away but tvheadend still reports the subscription. Starting any other channel doesn't start a new subscription.

 

Hope this is enough!

log.txt

transcode.txt

post-16914-0-99758800-1516281369_thumb.png

post-16914-0-82989900-1516281378_thumb.png

post-16914-0-40294000-1516281386_thumb.png

Posted

(Feature request)

 

Not an essential feature by any means, but it would be great if we could limit the number of concurrent streams per emby user. I have a few users and don't want one person to use up all the tuners.

michael_stonebridge
Posted

 

@@michael_stonebridge Please check the attached version and report if Emby now runs stable in case of network interrupts.

 

 

 

Thanks a lot, I tested the attached version (1.1.3.1) for about a week and did not have any crashes so far.

Posted

Okay, I've attached logs, hope these help.

 

I've attached screenshots of what happens. I select a channel which doesn't load (for whatever reason). It then hangs with a spinner. I can then navigate away but tvheadend still reports the subscription. Starting any other channel doesn't start a new subscription.

 

Hope this is enough!

 

Have you tried just giving it a little time to load?

Posted

Yep, never does. And if I quit live tv, it still shows in tvheadend as subscribed till I restart emby.

Posted

That's strange because the log looks OK. @@Tolotos can you reproduce?

Posted

.... @@Tolotos can you reproduce?

@@Luke Unfotunately yes :(

I'll investigate imediately.

Posted

@@jleckenby can you provide new log examples with the latest version of emby server? thanks !

Posted

@@Luke I tried with the latest Emby version. The "GetChannelStream" method is not called from Emby. Any Ideas?

Posted

This log is just a startup log. it doesn't look like there are any playback attempts here. are you sure this is the right one?

Posted (edited)

Yes

 

Edit: I did

  • a fresh installation of 3.2.70
  • added a log as first line in the method "GetChannelStream"
  • started Emby server
  • started play on a channel as soon as they was display in the web gui

After the klick a spinning wheel was displayed and no logs. Neighter from emby kernel nor the plugin log.

Edited by Tolotos
Posted (edited)

Starting with Emby 3.2.70.0 using the plugin feature that allows to detect multi audio track and subtitles in live tv streams is broken.

The problem seems to be that a method was removed from the server code:

System.MissingMethodException: Method 'MediaBrowser.Controller.MediaEncoding.MediaInfoRequest.set_InputPath' not found.

Here you have the full exception and log while trying to play a channel using the TVH plugin and the feature mentioned above, enabled:

2018-01-21 10:28:08.585 Info HttpServer: HTTP POST https://emby01:8920/Items/ea4233cc37dc77c7605f93bc6aec0022/PlaybackInfo?UserId=668038acfab52e12250818ef610e97c5&StartTimeTicks=0&AutoOpenLiveStream=true&MaxStreamingBitrate=140000000. UserAgent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0
2018-01-21 10:28:08.591 Info App: User policy for Fernando. EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
2018-01-21 10:28:08.591 Info App: Profile: Unknown Profile, Path: http://192.168.7.31:8096, isEligibleForDirectPlay: True, isEligibleForDirectStream: True
2018-01-21 10:28:08.591 Info App: Profile: Unknown Profile, No direct play profiles found for Path: http://192.168.7.31:8096
2018-01-21 10:28:08.591 Info App: Profile: Unknown Profile, Path: http://192.168.7.31:8096, isEligibleForDirectPlay: True, isEligibleForDirectStream: True
2018-01-21 10:28:08.591 Info App: Profile: Unknown Profile, No direct play profiles found for Path: http://192.168.7.31:8096
2018-01-21 10:28:08.591 Info App: Profile: Unknown Profile, Path: http://192.168.7.31:8096, isEligibleForDirectPlay: True, isEligibleForDirectStream: True
2018-01-21 10:28:08.591 Info App: Profile: Unknown Profile, No direct play profiles found for Path: http://192.168.7.31:8096
2018-01-21 10:28:08.592 Info App: Opening channel stream from TVHclient LiveTvService, external channel Id: 339698383
2018-01-21 10:28:08.592 Info App: [TVHclient] Support for live TV subtitles and multiple audio tracks is enabled.
2018-01-21 10:28:08.596 Error HttpServer: Error processing request
	*** Error Report ***
	Version: 3.2.70.0
	Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -restartpath /usr/lib/emby-server/restart.sh
	Operating system: Unix 3.10.0.693
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: False
	Mono: 4.8.1 (Stable 4.8.1.0/22a39d7 Wed May  3 17:39:37 UTC 2017)
	Processor count: 4
	Program data path: /var/lib/emby-server
	Application directory: /usr/lib/emby-server/bin
	System.MissingMethodException: Method 'MediaBrowser.Controller.MediaEncoding.MediaInfoRequest.set_InputPath' not found.
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00031] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at TVHeadEnd.LiveTvService.ProbeStream (MediaBrowser.Model.Dto.MediaSourceInfo mediaSourceInfo, System.String probeUrl, System.String source, System.Threading.CancellationToken cancellationToken) [0x00044] in <49de90bb4b2a45678fb0ff34e41532f6>:0 
	  at TVHeadEnd.LiveTvService+<GetChannelStream>d__26.MoveNext () [0x001f4] in <49de90bb4b2a45678fb0ff34e41532f6>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at Emby.Server.Implementations.LiveTv.LiveTvManager+<GetLiveStream>c__async4.MoveNext () [0x00204] in <730a104ef6c8470ebc4f70071ce76249>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at Emby.Server.Implementations.LiveTv.LiveTvMediaSourceProvider+<OpenMediaSource>c__async1.MoveNext () [0x00109] in <730a104ef6c8470ebc4f70071ce76249>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at Emby.Server.Implementations.Library.MediaSourceManager+<OpenLiveStream>c__async4.MoveNext () [0x00128] in <730a104ef6c8470ebc4f70071ce76249>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at Emby.Server.MediaEncoding.Api.MediaInfoService+<OpenMediaSource>d__14.MoveNext () [0x00099] in <9b83e01f8da34f4a9b7792752b0d08b1>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at Emby.Server.MediaEncoding.Api.MediaInfoService+<GetPlaybackInfo>d__17.MoveNext () [0x004a4] in <9b83e01f8da34f4a9b7792752b0d08b1>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at Emby.Server.MediaEncoding.Api.MediaInfoService+<Post>d__19.MoveNext () [0x00075] in <9b83e01f8da34f4a9b7792752b0d08b1>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at Emby.Server.Implementations.Services.ServiceExecGeneral+<Execute>c__async0.MoveNext () [0x0015f] in <730a104ef6c8470ebc4f70071ce76249>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at Emby.Server.Implementations.Services.ServiceHandler+<ProcessRequestAsync>c__async1.MoveNext () [0x0016b] in <730a104ef6c8470ebc4f70071ce76249>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at Emby.Server.Implementations.HttpServer.HttpListenerHost+<RequestHandler>c__async0.MoveNext () [0x00770] in <730a104ef6c8470ebc4f70071ce76249>:0 
	System.MissingMethodException
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00031] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at TVHeadEnd.LiveTvService.ProbeStream (MediaBrowser.Model.Dto.MediaSourceInfo mediaSourceInfo, System.String probeUrl, System.String source, System.Threading.CancellationToken cancellationToken) [0x00044] in <49de90bb4b2a45678fb0ff34e41532f6>:0 
	  at TVHeadEnd.LiveTvService+<GetChannelStream>d__26.MoveNext () [0x001f4] in <49de90bb4b2a45678fb0ff34e41532f6>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at Emby.Server.Implementations.LiveTv.LiveTvManager+<GetLiveStream>c__async4.MoveNext () [0x00204] in <730a104ef6c8470ebc4f70071ce76249>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at Emby.Server.Implementations.LiveTv.LiveTvMediaSourceProvider+<OpenMediaSource>c__async1.MoveNext () [0x00109] in <730a104ef6c8470ebc4f70071ce76249>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at Emby.Server.Implementations.Library.MediaSourceManager+<OpenLiveStream>c__async4.MoveNext () [0x00128] in <730a104ef6c8470ebc4f70071ce76249>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at Emby.Server.MediaEncoding.Api.MediaInfoService+<OpenMediaSource>d__14.MoveNext () [0x00099] in <9b83e01f8da34f4a9b7792752b0d08b1>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at Emby.Server.MediaEncoding.Api.MediaInfoService+<GetPlaybackInfo>d__17.MoveNext () [0x004a4] in <9b83e01f8da34f4a9b7792752b0d08b1>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at Emby.Server.MediaEncoding.Api.MediaInfoService+<Post>d__19.MoveNext () [0x00075] in <9b83e01f8da34f4a9b7792752b0d08b1>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at Emby.Server.Implementations.Services.ServiceExecGeneral+<Execute>c__async0.MoveNext () [0x0015f] in <730a104ef6c8470ebc4f70071ce76249>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at Emby.Server.Implementations.Services.ServiceHandler+<ProcessRequestAsync>c__async1.MoveNext () [0x0016b] in <730a104ef6c8470ebc4f70071ce76249>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
	  at Emby.Server.Implementations.HttpServer.HttpListenerHost+<RequestHandler>c__async0.MoveNext () [0x00770] in <730a104ef6c8470ebc4f70071ce76249>:0 
	
2018-01-21 10:28:08.596 Info HttpServer: HTTP Response 500 to 192.168.7.44. Time: 12ms. https://emby01:8920/Items/ea4233cc37dc77c7605f93bc6aec0022/PlaybackInfo?UserId=668038acfab52e12250818ef610e97c5&StartTimeTicks=0&AutoOpenLiveStream=true&MaxStreamingBitrate=140000000 

@@Luke, was the method removed? Any workaround to achieve the same?

This feature is a must have for me. I live in a country where TV is broadcasted in different languages, etc. Without this feature I cannot use subtitles or change the audio language while watching Live TV.

BTW this was working fine until 3.2.60.0.

 

Thanks.

Edited by fc7
Posted

It seems the method was removed in commit 209749d. :(

 

Any suggestions on how to workaround this and get the feature to work again?

Posted (edited)

It seems the method was removed in commit 209749d. :(

 

Any suggestions on how to workaround this and get the feature to work again?

 

Hi @@fc7,

 

In the above commit the Path was replaced with the MediaSouceInfo type.

Normally you can change the code in the ProbeStream method like this

//InputPath = probeUrl,
MediaSource = mediaSourceInfo,

Unfortunately are the changes not available in the NuGet packages I get with Update-Package (3.3.20).

 

@@Luke which NuGet versions must be used for the 3.2.70 version of Emby? Maybe this will show how the current problems are located.

 

-- Tolotos

Edited by Tolotos
Posted

@@Luke I try to compile a version of the plugin which is able to run with the 3.2.70 version of Emby.

The "method not found error" and the investigations of @@fc7 shows that the API was changed for 3.2.70 but there is no NUGET package available with the new API.

Therefor the current errors can't be solved until a 3.2.70 compatible API is available.

Posted

what method or property exactly?

Posted

System.MissingMethodException: Method 'MediaBrowser.Controller.MediaEncoding.MediaInfoRequest.set_InputPath' not found.

 

The "InputPath" attribute of  class "MediaInfoRequest" is available in NUGET version 3.3.20 but not in the 3.2.70 version of Emby.

Posted

What are you even using that for?

Posted

To get informations about different audio streams and subtitles (languages) out of a stream.

 

            MediaInfoRequest req = new MediaInfoRequest
            {
                MediaType = MediaBrowser.Model.Dlna.DlnaProfileType.Video,
                InputPath = probeUrl,
                Protocol = MediaProtocol.Http,
                ExtractChapters = false,
                VideoType = VideoType.VideoFile,
            };

            MediaInfo info = await _mediaEncoder.GetMediaInfo(req, cancellationToken).ConfigureAwait(false);

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