Jump to content

Live TV playback issue


GenesisNZ

Recommended Posts

GenesisNZ

Hi,

 

I'm currently running Emby Theater for Windows (Windows 7 SP1) and I've encountered an issue with playing back live TV channels. They are taking a really long time to load (1 minute+). I've turned on logging for MPV and I've noticed the following:

 

[   0.017][v][ipc] Starting IPC master
[   0.017][v][ipc] Listening to IPC pipe.
[   0.018][v][ipc_0] Client connected
[   0.020][v][cplayer] Set property: volume=100 -> 1
[   0.020][d][cplayer] Run command: loadfile, flags=0, args=[http://192.168.20.3:8096/emby/Videos/ec882d57ce272a77f6013e05a41e1e24/stream.?Static=true&mediaSourceId=6ff1bab93b2045ac80e9267300685e54_03642dda7f2ba0eb63ad78b93c51f865&deviceId=HTPC1-PC&api_key=2826e4e338f94b5fa070ba96dbb77796&LiveStreamId=a17c75760a04e99b68cf766e11316e1c_09efa0d56b934a82adec00a87b837fb0_6ff1bab93b2045ac80e9267300685e54_03642dda7f2ba0eb63ad78b93c51f865, replace, ]
[   0.024][i][cplayer] Playing: http://192.168.20.3:8096/emby/Videos/ec882d57ce272a77f6013e05a41e1e24/stream.?Static=true&mediaSourceId=6ff1bab93b2045ac80e9267300685e54_03642dda7f2ba0eb63ad78b93c51f865&deviceId=HTPC1-PC&api_key=2826e4e338f94b5fa070ba96dbb77796&LiveStreamId=a17c75760a04e99b68cf766e11316e1c_09efa0d56b934a82adec00a87b837fb0_6ff1bab93b2045ac80e9267300685e54_03642dda7f2ba0eb63ad78b93c51f865
[   0.024][v][cplayer] Running hook: ytdl_hook/on_load
[   0.025][d][ytdl_hook] Running: youtube-dl --no-warnings -J --flat-playlist --sub-format ass/srt/best --no-playlist --format bestvideo+bestaudio/best --all-subs -- http://192.168.20.3:8096/emby/Videos/ec882d57ce272a77f6013e05a41e1e24/stream.?Static=true&mediaSourceId=6ff1bab93b2045ac80e9267300685e54_03642dda7f2ba0eb63ad78b93c51f865&deviceId=HTPC1-PC&api_key=2826e4e338f94b5fa070ba96dbb77796&LiveStreamId=a17c75760a04e99b68cf766e11316e1c_09efa0d56b934a82adec00a87b837fb0_6ff1bab93b2045ac80e9267300685e54_03642dda7f2ba0eb63ad78b93c51f865 
[   0.025][w][ytdl_hook] youtube-dl failed, trying to play URL directly ... 
[   0.025][d][cplayer] Run command: hook-ack, flags=0, args=[on_load]
[   0.025][v][ffmpeg] Opening http://192.168.20.3:8096/emby/Videos/ec882d57ce272a77f6013e05a41e1e24/stream.?Static=true&mediaSourceId=6ff1bab93b2045ac80e9267300685e54_03642dda7f2ba0eb63ad78b93c51f865&deviceId=HTPC1-PC&api_key=2826e4e338f94b5fa070ba96dbb77796&LiveStreamId=a17c75760a04e99b68cf766e11316e1c_09efa0d56b934a82adec00a87b837fb0_6ff1bab93b2045ac80e9267300685e54_03642dda7f2ba0eb63ad78b93c51f865
[   0.028][w][ffmpeg] http: HTTP error 404 Not Found
[   0.028][e][stream] Failed to open http://192.168.20.3:8096/emby/Videos/ec882d57ce272a77f6013e05a41e1e24/stream.?Static=true&mediaSourceId=6ff1bab93b2045ac80e9267300685e54_03642dda7f2ba0eb63ad78b93c51f865&deviceId=HTPC1-PC&api_key=2826e4e338f94b5fa070ba96dbb77796&LiveStreamId=a17c75760a04e99b68cf766e11316e1c_09efa0d56b934a82adec00a87b837fb0_6ff1bab93b2045ac80e9267300685e54_03642dda7f2ba0eb63ad78b93c51f865.
[   0.028][v][cplayer] Opening failed or was aborted: http://192.168.20.3:8096/emby/Videos/ec882d57ce272a77f6013e05a41e1e24/stream.?Static=true&mediaSourceId=6ff1bab93b2045ac80e9267300685e54_03642dda7f2ba0eb63ad78b93c51f865&deviceId=HTPC1-PC&api_key=2826e4e338f94b5fa070ba96dbb77796&LiveStreamId=a17c75760a04e99b68cf766e11316e1c_09efa0d56b934a82adec00a87b837fb0_6ff1bab93b2045ac80e9267300685e54_03642dda7f2ba0eb63ad78b93c51f865
[   0.028][v][cplayer] finished playback, loading failed (reason 4)
[   0.028][i][cplayer] 
[ 120.078][v][cplayer] Set property: volume=100 -> 1
[ 120.079][d][cplayer] Run command: loadfile, flags=0, args=[http://192.168.20.3:8096/emby/videos/ec882d57ce272a77f6013e05a41e1e24/master.m3u8?DeviceId=HTPC1-PC&MediaSourceId=6ff1bab93b2045ac80e9267300685e54_03642dda7f2ba0eb63ad78b93c51f865&VideoCodec=h264,mpeg2video&AudioCodec=ac3,mp3,aac&AudioStreamIndex=-1&VideoBitrate=139808000&AudioBitrate=192000&PlaySessionId=674fb777090145c0bcf5650bab66f88c&api_key=2826e4e338f94b5fa070ba96dbb77796&LiveStreamId=a17c75760a04e99b68cf766e11316e1c_09efa0d56b934a82adec00a87b837fb0_6ff1bab93b2045ac80e9267300685e54_03642dda7f2ba0eb63ad78b93c51f865&CopyTimestamps=false&TranscodingMaxAudioChannels=6&EnableSubtitlesInManifest=false&RequireAvc=false&RequireNonAnamorphic=false&SegmentContainer=mkv&SegmentLength=3&MinSegments=1&BreakOnNonKeyFrames=True&TranscodeReasons=ContainerBitrateExceedsLimit&allowVideoStreamCopy=false, replace, ]
[ 120.079][i][cplayer] Playing: http://192.168.20.3:8096/emby/videos/ec882d57ce272a77f6013e05a41e1e24/master.m3u8?DeviceId=HTPC1-PC&MediaSourceId=6ff1bab93b2045ac80e9267300685e54_03642dda7f2ba0eb63ad78b93c51f865&VideoCodec=h264,mpeg2video&AudioCodec=ac3,mp3,aac&AudioStreamIndex=-1&VideoBitrate=139808000&AudioBitrate=192000&PlaySessionId=674fb777090145c0bcf5650bab66f88c&api_key=2826e4e338f94b5fa070ba96dbb77796&LiveStreamId=a17c75760a04e99b68cf766e11316e1c_09efa0d56b934a82adec00a87b837fb0_6ff1bab93b2045ac80e9267300685e54_03642dda7f2ba0eb63ad78b93c51f865&CopyTimestamps=false&TranscodingMaxAudioChannels=6&EnableSubtitlesInManifest=false&RequireAvc=false&RequireNonAnamorphic=false&SegmentContainer=mkv&SegmentLength=3&MinSegments=1&BreakOnNonKeyFrames=True&TranscodeReasons=ContainerBitrateExceedsLimit&allowVideoStreamCopy=false[ 120.079][v][cplayer] Running hook: ytdl_hook/on_load 

I only see this issue using Emby Theater for Windows. When I attempt to run Emby Theater from my Android TV box (Xiaomi Mi Box) or from my Windows 10 machine, playback of Live TV channels works fine.

 

Any ideas here?

 

Cheers

 

Link to comment
Share on other sites

GenesisNZ

I appear to be getting a 401 from my provider:

 

2018-01-01 09:52:08.281 Info App: User policy for HTPC1. EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
2018-01-01 09:52:08.292 Info App: Profile: Unknown Profile, Path: http://xxx.xx.com:8080/live/yrgtzokd/C4ob0Wu05t/1300.ts, isEligibleForDirectPlay: True, isEligibleForDirectStream: True
2018-01-01 09:52:08.298 Info App: Profile: Unknown Profile, No direct play profiles found for Path: http://xxx.xx.com:8080/live/yrgtzokd/C4ob0Wu05t/1300.ts
2018-01-01 09:52:08.315 Info App: Profile: Unknown Profile, Path: http://xxx.xx.com:8080/live/yrgtzokd/C4ob0Wu05t/1300.ts, isEligibleForDirectPlay: True, isEligibleForDirectStream: True
2018-01-01 09:52:08.315 Info App: Profile: Unknown Profile, No direct play profiles found for Path: http://xxx.xx.com:8080/live/yrgtzokd/C4ob0Wu05t/1300.ts
2018-01-01 09:52:08.338 Info App: Opening channel stream from Emby, external channel Id: m3u_0b3ee158b0f1fbf6b2ccdf7af908c51a19cd681781682810cd21dbe8d93fdd5b
2018-01-01 09:52:08.342 Info App: Streaming Channel m3u_0b3ee158b0f1fbf6b2ccdf7af908c51a19cd681781682810cd21dbe8d93fdd5b
2018-01-01 09:52:08.350 Info App: Opening SharedHttpStream Live stream from http://xxx.xx.com:8080/live/yrgtzokd/C4ob0Wu05t/1300.ts
2018-01-01 09:52:08.351 Info HttpClient: GET: http://xxx.xx.com:8080/live/yrgtzokd/C4ob0Wu05t/1300.ts
2018-01-01 09:52:08.940 Info HttpClient: Http response 401 from http://xxx.xx.com:8080/live/yrgtzokd/C4ob0Wu05t/1300.ts after 589ms. HeadersConnection=close, Date=Sun, 31 Dec 2017 20:52:18 GMT, Server=nginx, X-Powered-By=PHP/7.1.8, Access-Control-Allow-Origin=*
2018-01-01 09:52:08.942 Error App: Error opening tuner
2018-01-01 09:52:08.951 Error HttpServer: Error processing request
*** Error Report ***
Version: 3.2.60.6
Command line: C:\Users\HTPC1\AppData\Roaming\Emby-Server\system\EmbyServer.dll C:\Users\HTPC1\AppData\Roaming\Emby-Server\system\EmbyServer.dll C:\Users\HTPC1\AppData\Roaming\Emby-Server\system\EmbyServer.dll C:\Users\HTPC1\AppData\Roaming\Emby-Server\system\EmbyServer.dll -noautorunwebapp
Operating system: Microsoft Windows NT 6.1.7601 Service Pack 1
64-Bit OS: True
64-Bit Process: True
User Interactive: True
Processor count: 8
Program data path: C:\Users\HTPC1\AppData\Roaming\Emby-Server\programdata
Application directory: C:\Users\HTPC1\AppData\Roaming\Emby-Server\system
MediaBrowser.Controller.LiveTv.LiveTvConflictException: Exception of type 'MediaBrowser.Controller.LiveTv.LiveTvConflictException' was thrown.
   at Emby.Server.Implementations.LiveTv.TunerHosts.BaseTunerHost.<GetChannelStream>d__18.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at Emby.Server.Implementations.LiveTv.EmbyTV.EmbyTV.<GetChannelStreamInternal>d__85.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at Emby.Server.Implementations.LiveTv.EmbyTV.EmbyTV.<GetChannelStreamWithDirectStreamProvider>d__81.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at Emby.Server.Implementations.LiveTv.LiveTvManager.<GetLiveStream>d__59.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at Emby.Server.Implementations.LiveTv.LiveTvMediaSourceProvider.<OpenMediaSource>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at Emby.Server.Implementations.Library.MediaSourceManager.<OpenLiveStream>d__28.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at Emby.Server.MediaEncoding.Api.MediaInfoService.<OpenMediaSource>d__14.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at Emby.Server.MediaEncoding.Api.MediaInfoService.<GetPlaybackInfo>d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at Emby.Server.MediaEncoding.Api.MediaInfoService.<Post>d__18.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Emby.Server.Implementations.Services.ServiceExecGeneral.<Execute>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at Emby.Server.Implementations.Services.ServiceHandler.<ProcessRequestAsync>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Emby.Server.Implementations.HttpServer.HttpListenerHost.<RequestHandler>d__72.MoveNext()
MediaBrowser.Controller.LiveTv.LiveTvConflictException
   at Emby.Server.Implementations.LiveTv.TunerHosts.BaseTunerHost.<GetChannelStream>d__18.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at Emby.Server.Implementations.LiveTv.EmbyTV.EmbyTV.<GetChannelStreamInternal>d__85.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at Emby.Server.Implementations.LiveTv.EmbyTV.EmbyTV.<GetChannelStreamWithDirectStreamProvider>d__81.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at Emby.Server.Implementations.LiveTv.LiveTvManager.<GetLiveStream>d__59.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at Emby.Server.Implementations.LiveTv.LiveTvMediaSourceProvider.<OpenMediaSource>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at Emby.Server.Implementations.Library.MediaSourceManager.<OpenLiveStream>d__28.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at Emby.Server.MediaEncoding.Api.MediaInfoService.<OpenMediaSource>d__14.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at Emby.Server.MediaEncoding.Api.MediaInfoService.<GetPlaybackInfo>d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at Emby.Server.MediaEncoding.Api.MediaInfoService.<Post>d__18.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Emby.Server.Implementations.Services.ServiceExecGeneral.<Execute>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at Emby.Server.Implementations.Services.ServiceHandler.<ProcessRequestAsync>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Emby.Server.Implementations.HttpServer.HttpListenerHost.<RequestHandler>d__72.MoveNext()
 
I don't think they like the headers that are being provided during the request.
 
All good, I've rolled back to my trusty old WMC + DVBLink setup for Live TV for now.
Link to comment
Share on other sites

@@GenesisNZ Yea if you can ask your IPTV provider why they are sending back a 401 response code, then we can look at making adjustments for it. Thanks.

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