vexorian / dizquetv

Create live TV channels from your own media. Access the streams using the simulated HDHomerun tuner or the generated M3U URl.
zlib License
1.41k stars 92 forks source link

Channel stops playing after 3 minutes. #395

Open DevXen opened 2 years ago

DevXen commented 2 years ago

I am using the unRAID docker for DizQueTV. For the past few days it would stop playing part way into the second episode. Now it's every 3 minutes.

So far I have:

changed from latest-nvidia to the previous 1.4.4-nvidia (I think it was.)

Force updated both Plex and DizQueTV Dockers.

Enabled and disabled ffmpeg.

Deleted the DVR in Plex and re-added it.

I did open the stream in windows media player and it played for 15 mins busy fine before I stopped it.

I rolled back my Nvidia driver to the stable release from latest. I forced update the DizQueTV docker.

This happens both on my shield pro and my phone. On any TV channel I try to watch.

I'm not sure what else to try.

Here is the log. Hopefully it'll help. I've removed my server hash and server token though. And the sigkill at the end is odd.

Start playback

! Channel: Leverage (200) ! Title: The Second David Job (2) ! From : 160912 to: 2594591

About to play plex stream Plex transcoder initiated Debug logging enabled Getting stream deinterlace: true streamPath: plex Try to detect audio only: Setting transcoding parameters Received transcode decision: { MediaContainer: { size: 1, allowSync: '1', directPlayDecisionCode: 3000, directPlayDecisionText: 'App cannot direct play this item. Direct play is disabled.', generalDecisionCode: 1001, generalDecisionText: 'Direct play not available; Conversion OK.', identifier: 'com.plexapp.plugins.library', librarySectionID: '18', librarySectionTitle: 'Television: US', librarySectionUUID: '378a9a32-ef2a-4ce5-ba8b-09e7835e3742', mediaTagPrefix: '/system/bundle/media/flags/', mediaTagVersion: '1634594237', transcodeDecisionCode: 1001, transcodeDecisionText: 'Direct play not available; Conversion OK.', Metadata: [ [Object] ] } } Current video stats: { duration: 2594591, anamorphic: false, pixelP: 1, pixelQ: 1, videoCodec: 'h264', videoWidth: 640, videoHeight: 352, videoFramerate: 24, videoDecision: 'transcode', videoScanType: undefined, audioChannels: 2, audioCodec: 'mp3', audioDecision: 'copy' } Current video stats: { duration: 2594591, anamorphic: false, pixelP: 1, pixelQ: 1, videoCodec: 'h264', videoWidth: 640, videoHeight: 352, videoFramerate: 24, videoDecision: 'transcode', videoScanType: undefined, audioChannels: 2, audioCodec: 'mp3', audioDecision: 'copy' } Current video stats: { duration: 2594591, anamorphic: false, pixelP: 1, pixelQ: 1, videoCodec: 'h264', videoWidth: 640, videoHeight: 352, videoFramerate: 24, videoDecision: 'transcode', videoScanType: undefined, audioChannels: 2, audioCodec: 'mp3', audioDecision: 'copy' } Current video stats: { duration: 2594591, anamorphic: false, pixelP: 1, pixelQ: 1, videoCodec: 'h264', videoWidth: 640, videoHeight: 352, videoFramerate: 24, videoDecision: 'transcode', videoScanType: undefined, audioChannels: 2, audioCodec: 'mp3', audioDecision: 'copy' } Decision: Should transcode Received transcode decision: { MediaContainer: { size: 1, allowSync: '1', directPlayDecisionCode: 3000, directPlayDecisionText: 'App cannot direct play this item. Direct play is disabled.', generalDecisionCode: 1001, generalDecisionText: 'Direct play not available; Conversion OK.', identifier: 'com.plexapp.plugins.library', librarySectionID: '18', librarySectionTitle: 'Television: US', librarySectionUUID: '378a9a32-ef2a-4ce5-ba8b-09e7835e3742', mediaTagPrefix: '/system/bundle/media/flags/', mediaTagVersion: '1634594237', transcodeDecisionCode: 1001, transcodeDecisionText: 'Direct play not available; Conversion OK.', Metadata: [ [Object] ] } } Current video stats: { duration: 2594591, anamorphic: false, pixelP: 1, pixelQ: 1, videoCodec: 'h264', videoWidth: 640, videoHeight: 352, videoFramerate: 24, videoDecision: 'transcode', videoScanType: undefined, audioChannels: 2, audioCodec: 'mp3', audioDecision: 'copy' } { directPlay: false, stream:plex.direct:32400/video/:/transcode/universal/start.m3u8?X-Plex-Platform=Generic&X-Plex-Product=dizqueTV&X-Plex-Client-Platform=Generic&X-Plex-Client-Profile-Name=Generic&X-Plex-Device-Name=channel-200&X-Plex-Device=channel-200&X-Plex-Client-Identifier=5d5bf35e57694bbc-org-dizquetv-linux-0&X-Plex-Platform=Generic&X-Plex-Token=&X-Plex-Client-Profile-Extra=add-transcode-target(type%3DvideoProfile%26protocol%3Dhttp%26container%3Dmpegts%26videoCodec%3Dh264%2Chevc%2Cmpeg2video%2Cav1%26audioCodec%3Dac3%2Caac%2Cmp3%26subtitleCodec%3D%26context%3Dstreaming%26replace%3Dtrue)%2Badd-transcode-target-settings(type%3DvideoProfile%26context%3Dstreaming%26protocol%3Dhttp%26CopyMatroskaAttachments%3Dtrue)%2Badd-transcode-target-settings(type%3DvideoProfile%26context%3Dstreaming%26protocol%3Dhttp%26BreakNonKeyframes%3Dtrue)%2Badd-limitation(scope%3DvideoCodec%26scopeName%3D%26type%3DupperBound%26name%3Dvideo.width%26value%3D1920)%2Badd-limitation(scope%3DvideoCodec%26scopeName%3D%26type%3DupperBound%26name%3Dvideo.height%26value%3D1080)%2Badd-transcode-target-audio-codec(type%3DvideoProfile%26context%3Dstreaming%26protocol%3Dhttp%26audioCodec%3Dac3)%2Badd-limitation(scope%3DvideoAudioCodec%26scopeName%3Dac3%26type%3DupperBound%26name%3Daudio.channels%26value%3D6)%2Badd-transcode-target-audio-codec(type%3DvideoProfile%26context%3Dstreaming%26protocol%3Dhttp%26audioCodec%3Daac)%2Badd-limitation(scope%3DvideoAudioCodec%26scopeName%3Daac%26type%3DupperBound%26name%3Daudio.channels%26value%3D6)%2Badd-transcode-target-audio-codec(type%3DvideoProfile%26context%3Dstreaming%26protocol%3Dhttp%26audioCodec%3Dmp3)%2Badd-limitation(scope%3DvideoAudioCodec%26scopeName%3Dmp3%26type%3DupperBound%26name%3Daudio.channels%26value%3D2)%2Badd-limitation(scope%3DvideoCodec%26scopeName%3D*%26type%3DnotMatch%26name%3Dvideo.scanType%26value%3Dinterlaced)&protocol=http&Connection=keep-alive&hasMDE=1&path=/library/metadata/110677&mediaIndex=0&partIndex=0&fastSeek=1&directPlay=0&directStream=1&directStreamAudio=1&copyts=1&audioBoost=100&mediaBufferSize=20000&session=0134c74e-af0b-4ea3-8ad0-e04bde8bc481&offset=160.912&subtitles=none&subtitleSize=100&maxVideoBitrate=3000&videoQuality=100&videoResolution=1920x1080&lang=en', streamStats: { duration: 2594591, anamorphic: false, pixelP: 1, pixelQ: 1, videoCodec: 'h264', videoWidth: 640, videoHeight: 352, videoFramerate: 24, videoDecision: 'transcode', videoScanType: undefined, audioChannels: 2, audioCodec: 'mp3', audioDecision: 'copy', audioIndex: 'a' } } First stretch to 1920 x 1056. Then add padding to make it 1920 x 1080 Stretch to 1920 x 1056. To fit target resolution of 1920 x 1080. Video and Audio are being transcoded by ffmpeg

Stream ended. Channel: 200 (Leverage) Concat FFMPEG RECEIVED kill() command Concat FFMPEG this.ffmpeg.kill() Concat FFMPEG exited due to signal: SIGKILL as expected. Client Closed Stream FFMPEG RECEIVED kill() command Stream FFMPEG this.ffmpeg.kill() Stream FFMPEG exited due to signal: SIGKILL as expected.

vexorian commented 2 years ago

I did open the stream in windows media player and it played for 15 mins busy fine before I stopped it.

Since the problem only happens when playing in Plex, it's more likely because of this plex bug:

https://forums.plex.tv/t/live-tv-dvr-live-tv-stopped-working-after-update/744601

DevXen commented 2 years ago

I did open the stream in windows media player and it played for 15 mins busy fine before I stopped it.

Since the problem only happens when playing in Plex, it's more likely because of this plex bug:

https://forums.plex.tv/t/live-tv-dvr-live-tv-stopped-working-after-update/744601

So I looked into them and looked like that might of been it. So I decided to try the webui. And it will stopped after 3 mins. So that's probably not the issue.

From the log it looked like something is sending a sigkill command which seems odd.

DevXen commented 2 years ago

Oh and I'm not sure if it's relevant but I did notice it doesn't show anything playing anymore when I am watching something on the live TV. - it shows in the notifications that it's recording linee TV. But if I click on dashboard it says nothing is playing.

DevXen commented 2 years ago

Screenshot_20211024-000023_Chrome

vexorian commented 2 years ago

Which webui ? Plex's web ui? Did you try using the dizqueTV's web ui tv guide?

DevXen commented 2 years ago

Yes the Plex webui.

When I used the DizQueTV webui gui to play it. I had it open the link in WMP. And that seemed to work.

But the Plex webui.. I tried on chrome on my phone. But I don't only try the app.plex address. Guess I can try the local intranet address to see if that makes any difference. But since it did it on the webui it's probably not the Plex clients

DevXen commented 2 years ago

So. Plex updated And now it seems to be working. 18 mins, across 2 episodes. So I'm going to close this.. I'll reopen it if there are issues later but so far so good. Thank you for your help.

DevXen commented 2 years ago

Sorry to open this back up. - The issue is still happening but its a few minutes after the second episode starts. the current episode plays fine. and it loads the second one just fine. but then it stops and the logs are still the same as posted above.

Tressley commented 2 years ago

I seem to be having the same issue. Streams play for three minutes and then end. This wasn't an issue until a recent Plex update.

zerojay commented 2 years ago

Pretty sure the issue is on Plex's end judging from the number of people on their forums complaining. If it was on Dizquetv's side, VLC would likely also be affected and it's not the case.

Tressley commented 2 years ago

Definitely seems to be on Plex's end. I was able to fix the issue by reverting to the previous version of Plex Media Server (1.24.4.5081).

DevXen commented 2 years ago

This seems to be mostly resolved. I can watch more than one episode all the way through now. But after a few episodes it's still happening. I'm not closing it with this comment cause other people have commented with issues. But I also believe it's a Plex issue.