Jump to content

Problem with Live TV


a11an

Recommended Posts

Hi,

 

I am migrating my media server across from Window to a Linux box running LibreElec.  So far it's been going great, running really well.  But then I went and spoilt it all by attempting to setup live tv :wacko: !!

 

I have added the TVHeadend plugin on emby and it's working fine streaming to my android phone.  But, when I attempt to use it via the web frontend, on play, It goes to a black screen and is stuck on the rotating loading circle.  I get a similar issue on the Android TV client.  I get the "Giving up, too many errors' message.

 

Would anyone be able to offer some advice?  The logs below is at the point it dies.  Is this enough information or should I attached the full logs?  

 

Thanks for looking.

2018-03-11 20:57:26.166 Info App: /storage/.kodi/addons/service.emby/bin/ffmpegx -analyzeduration 3000000 -f mpegts -i "http://localhost:9981/stream/channelid/1133581758?ticket=37EB0BEF305FED79A1EDDE6078BE36D4D71DCEFA" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 libx264 -pix_fmt yuv420p -preset veryfast -crf 23 -maxrate 5000000 -bufsize 10000000 -profile:v high -level 4.1 -x264opts:0 subme=0:me_range=4:rc_lookahead=10:me=dia:no_chroma_me:8x8dct=0:partitions=none -force_key_frames "expr:gte(t,n_forced*3)" -vf "yadif=0:-1:0,scale=trunc(min(max(iw\,ih*dar)\,1920)/2)*2:trunc(ow/dar/2)*2" -flags -global_header -vsync cfr -codec:a:0 aac -strict experimental -ac 2 -ab 192000  -f segment -max_delay 5000000 -avoid_negative_ts disabled -start_at_zero -segment_time 3  -individual_header_trailer 0 -segment_format mpegts -segment_list_entry_prefix "hls/b0b68ed60fb19954e6744c973e938148/" -segment_list_type m3u8 -segment_start_number 0 -segment_list "/var/media/sdb1-ata-TOSHIBA_DT01ACA2/Transcode/transcoding-temp/b0b68ed60fb19954e6744c973e938148.m3u8" -y "/var/media/sdb1-ata-TOSHIBA_DT01ACA2/Transcode/transcoding-temp/b0b68ed60fb19954e6744c973e938148%d.ts"
2018-03-11 20:57:26.296 Info App: /storage/.kodi/addons/service.emby/bin/ffmpegx -analyzeduration 3000000 -f mpegts -i "http://localhost:9981/stream/channelid/1133581758?ticket=37EB0BEF305FED79A1EDDE6078BE36D4D71DCEFA" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 libx264 -pix_fmt yuv420p -preset veryfast -crf 23 -maxrate 5000000 -bufsize 10000000 -profile:v high -level 4.1 -x264opts:0 subme=0:me_range=4:rc_lookahead=10:me=dia:no_chroma_me:8x8dct=0:partitions=none -force_key_frames "expr:gte(t,n_forced*3)" -vf "yadif=0:-1:0,scale=trunc(min(max(iw\,ih*dar)\,1920)/2)*2:trunc(ow/dar/2)*2" -flags -global_header -vsync cfr -codec:a:0 aac -strict experimental -ac 2 -ab 192000  -f segment -max_delay 5000000 -avoid_negative_ts disabled -start_at_zero -segment_time 3  -individual_header_trailer 0 -segment_format mpegts -segment_list_entry_prefix "hls/b0b68ed60fb19954e6744c973e938148/" -segment_list_type m3u8 -segment_start_number 0 -segment_list "/var/media/sdb1-ata-TOSHIBA_DT01ACA2/Transcode/transcoding-temp/b0b68ed60fb19954e6744c973e938148.m3u8" -y "/var/media/sdb1-ata-TOSHIBA_DT01ACA2/Transcode/transcoding-temp/b0b68ed60fb19954e6744c973e938148%d.ts"
2018-03-11 20:57:26.432 Error HttpServer: Error processing request
	*** Error Report ***
	Version: 3.2.34.0
	Command line: /storage/.kodi/addons/service.emby/Emby.Mono/MediaBrowser.Server.Mono.exe -programdata /storage/.kodi/userdata/addon_data/service.emby -ffmpeg /storage/.kodi/addons/service.emby/bin/ffmpegx -ffprobe /storage/.kodi/addons/service.emby/bin/ffprobex
	Operating system: Unix 4.11.12.0
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: False
	Mono: 5.4.1.6 (tarball Thu Nov  9 19:51:07 GMT 2017)
	Processor count: 4
	Program data path: /storage/.kodi/userdata/addon_data/service.emby
	Application directory: /storage/.kodi/addons/service.emby/Emby.Mono
	System.Exception: Error starting ffmpeg
	  at Emby.Server.MediaEncoding.Api.BaseStreamingService+<StartFfMpeg>d__72.MoveNext () [0x007b8] in <d5624611b4fa4cc8b361775cba69e033>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at Emby.Server.MediaEncoding.Api.BaseStreamingService+<StartFfMpeg>d__72.MoveNext () [0x007ab] in <d5624611b4fa4cc8b361775cba69e033>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at Emby.Server.MediaEncoding.Api.Hls.BaseHlsService+<ProcessRequestAsync>d__6.MoveNext () [0x00243] in <d5624611b4fa4cc8b361775cba69e033>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at Emby.Server.MediaEncoding.Api.Hls.BaseHlsService+<ProcessRequest>d__5.MoveNext () [0x00078] in <d5624611b4fa4cc8b361775cba69e033>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at Emby.Server.Implementations.Services.ServiceExecGeneral+<Execute>d__2.MoveNext () [0x0013b] in <e8a19581117c4782a9bf4f1232d76098>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at Emby.Server.Implementations.Services.ServiceHandler+<ProcessRequestAsync>d__15.MoveNext () [0x0014c] in <e8a19581117c4782a9bf4f1232d76098>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at Emby.Server.Implementations.HttpServer.HttpListenerHost+<RequestHandler>d__72.MoveNext () [0x006f4] in <e8a19581117c4782a9bf4f1232d76098>:0 
	System.Exception
	  at Emby.Server.MediaEncoding.Api.BaseStreamingService+<StartFfMpeg>d__72.MoveNext () [0x007b8] in <d5624611b4fa4cc8b361775cba69e033>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at Emby.Server.MediaEncoding.Api.BaseStreamingService+<StartFfMpeg>d__72.MoveNext () [0x007ab] in <d5624611b4fa4cc8b361775cba69e033>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at Emby.Server.MediaEncoding.Api.Hls.BaseHlsService+<ProcessRequestAsync>d__6.MoveNext () [0x00243] in <d5624611b4fa4cc8b361775cba69e033>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at Emby.Server.MediaEncoding.Api.Hls.BaseHlsService+<ProcessRequest>d__5.MoveNext () [0x00078] in <d5624611b4fa4cc8b361775cba69e033>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at Emby.Server.Implementations.Services.ServiceExecGeneral+<Execute>d__2.MoveNext () [0x0013b] in <e8a19581117c4782a9bf4f1232d76098>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at Emby.Server.Implementations.Services.ServiceHandler+<ProcessRequestAsync>d__15.MoveNext () [0x0014c] in <e8a19581117c4782a9bf4f1232d76098>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <9b03d1af40a7418693f6646cc848990f>:0 
	  at Emby.Server.Implementations.HttpServer.HttpListenerHost+<RequestHandler>d__72.MoveNext () [0x006f4] in <e8a19581117c4782a9bf4f1232d76098>:0 
	
2018-03-11 20:57:26.432 Info HttpServer: HTTP Response 500 to 192.168.1.12. Time: 1308ms (slow). http://192.168.1.8:8096/emby/videos/f0eb48ad5f6cc498878a7e294ec190fe/live.m3u8?DeviceId=ef4fcf739e660b5914c57da3b3b8bc284de331ab&MediaSourceId=0&VideoCodec=h264&AudioCodec=mp3,aac&AudioStreamIndex=1&VideoBitrate=139808000&AudioBitrate=192000&PlaySessionId=8ea08c8c13264d648166e6b5d8f06000&LiveStreamId=a17c75760a04e99b68cf766e11316e1c_41c95b6de5174f82acbc56fe82d0a2f8_0&CopyTimestamps=false&TranscodingMaxAudioChannels=2&EnableSubtitlesInManifest=false&RequireAvc=true&RequireNonAnamorphic=false&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&TranscodeReasons=ContainerNotSupported,VideoCodecNotSupported,AudioCodecNotSupported&h264-profile=high,main,baseline,constrainedbaseline&h264-level=51&h264-deinterlace=true 
Link to comment
Share on other sites

Thanks Luke. 

 

I have managed to update to version 3.3.1.0 via the instructions found here https://emby.media/community/index.php?/topic/49451-emby-server-for-libreelec/?p=522822

 

This update subsequently triggered the TVHeadend to update.  But now TVHeadend does not show on the Devices page of Live TV in settings as before.  LiveTV is still available on the web frontend, but, if I attempt to play I now get the message 'Playback Error,  No compatible streams are currently available'.

 

Any ideas?  Is it time to wipe all my config and try again? 

 

Latest log attached from a reboot and attempting to stream a channel from the web frontend.

Log.txt

Link to comment
Share on other sites

I think the issue is fixed.  It seems that the version installed from the LibreElec repositories not only has an old version of Emby but ffmpeg is also out of date. 

 

Transcode logs had 'crf' option unrecognized error.  So I have now updated FFmpeg from the static builds here -https://johnvansickle.com/ffmpeg/ and live tv seems to be working fine.

 

Live TV is still missing information about the TVHeadedend plugin service.  See screenshot, is this normal?  But it's working!

post-95869-0-56352700-1520870557_thumb.png

Edited by a11an
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...