kodi-pvr / pvr.iptvsimple

IPTV Simple client for Kodi PVR
GNU General Public License v2.0
772 stars 372 forks source link

24/7 Stream Stopping #570

Open derrgoo opened 2 years ago

derrgoo commented 2 years ago

Hi, I have been unable to figure out why 24/7 section stops streaming after a few minutes. When I play live tv I have no issues. 24/7 and live is on the same m3u.

When I play them on tivimate they are fine also.

Have I missed important settings. Running 19.2 all up to date on PVR.

Thanks

phunkyfish commented 2 years ago

This feels like a support question, so using the kodi forum would make sense here. GitHub is for reporting bugs.

Its not clear to me what 24/7 is it it’s purpose.

derrgoo commented 2 years ago

Wasn't meant to be support which is why I asked here more as a bug report. I see other issues playing streams. Not sure how service will deal with this? 24/7 is just what you call tv series playing continuously. Since live TV plays fine I thought maybe someone has experienced this. Anyhow thanks anyway.

phunkyfish commented 2 years ago

Ok, if you think it’s a bug please provide a full debug log and I’ll take a look. Please obfuscate any login details.

After starting kodi play one of the streams until it stops.

derrgoo commented 2 years ago

Please find updated log for your review..Appreciate it. kodi.log

phunkyfish commented 2 years ago

That is not a debug log. You need to enable debug logging first and then restart kodi to capture the log.

Also using a paste site like https://paste.kodi.tv/ is best.

derrgoo commented 2 years ago

Okay, I think I figured this out. I never used paste.kodi.tv but this link should lead to the full debug log with logging enabled. https://paste.kodi.tv/wijihebugo.kodi

I have also obfuscate any login details. Please let me know if you were able to receive.

phunkyfish commented 2 years ago

It appears it's detecting the end of the stream.

CDVDVideoCodecFFmpeg::GetPicture - eof hw accel

There is a small experiment to try. Can you create an M3U file with a single channel. The idea is to try another way to play the channel and see if the output is any different.

#EXTM3U
#EXTINF:-1 tvg-chno="50" ,Test Channel
#KODIPROP:inputstream=inputstream.ffmpegdirect
http:/...
derrgoo commented 2 years ago

Sure. All try this right away and let you know👍

derrgoo commented 2 years ago

It seems to better. Instead of just shutting down the stream, it will now buffer and show cache and keep playing.

One of the main streams I want to test is down at provider side but as soon as it's up all test it. 👍

phunkyfish commented 2 years ago

Ok, so if might just be that streams are coming in at too low a bandwidth to make them properly playable.

ffmpegdirect uses a newer version of ffmpeg and has some settings to help it recover from detecting EOFs.

derrgoo commented 2 years ago

Is ffmpegdirect something I can install?

It's interesting that tivimate player deals with them much easier maybe something built into the player.

phunkyfish commented 2 years ago

It should be installed by default (I think). Under addons you should see it under “VideoPlayer Inputstreams”.

Yes, FFmpeg doesn’t really come with built in recovery for poor quality streams.

derrgoo commented 2 years ago

It appears it's detecting the end of the stream.

CDVDVideoCodecFFmpeg::GetPicture - eof hw accel

There is a small experiment to try. Can you create an M3U file with a single channel. The idea is to try another way to play the channel and see if the output is any different.


#EXTM3U

#EXTINF:-1 tvg-chno="50" ,Test Channel

#KODIPROP:inputstream=inputstream.ffmpegdirect

http:/...

I was able to test on the streams that won't play and your code did the trick. So much better. Really appreciate the time you took to help out. 👍

phunkyfish commented 2 years ago

No problem. Happy to help.