Kodi Community Forum

Full Version: Making IPTV Channels Switch Faster
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
On my home network everything is plugged in via Ethernet cable.

On this network I have a Plex server with dizqueTV installed to make several IPTV channels from local videos. FFMPEG transcoding in dizqueTV is disabled and video buffering is set to 0 seconds. I can play one of these channels (http://198.168.X.X:8000/video?channel=1) as a network stream in VLC on a different computer and it loads the channel in under a second.

On this network I also have a Raspberry Pi 4 with Kodi installed via LibreELEC as well as the IPTV Simple Client add-on. I've setup my dizqueTV m3u file in the IPTV Simple Client settings and I'm able to watch and flip through all my dizqueTV IPTV channels. I don't have anything else installed in Kodi and I'd like to use this device as a dedicated IPTV watching device.

My problem is that it takes about a third of a minute for each channel to change. When it does the current channel freezes for most of the time, then a still image of the next channel shows for about a second and then it starts playing.

I've tried to change settings to speed this up but 22 seconds is my best speed. In Settings/Service/Caching I have Buffer Mode set to "No buffer". In Settings/PVR & Live TV/Guide I have Default selection action set to "Switch to channel". In Settings/PVR & Live TV/Playback I have delay channel switch set to "0 ms", Confirm channel switches by pressing OK "disabled", and Show channel information when switching channels set to "Off". In Settings/PVR & Live TV/Recording I have Instant recording action set to "Ask what to do" (I wish there was a disable option since I never would want to record any of my live TV channels). In Settings/Player/Videos I have Allow using DRM PRIME decoder "disabled", Allow hardware acceleration with DRM PRIME "disabled", and Allow hardware deinterlace with DRM PRIME "disabled".

Are there any tips on how I can make my IPTV channels switch faster?
(2024-11-30, 22:37)videorama Wrote: [ -> ]On this network I have a Plex server with dizqueTV installed to make several IPTV channels from local videos.
(2024-11-30, 22:37)videorama Wrote: [ -> ]On this network I also have a Raspberry Pi 4 with Kodi installed via LibreELEC

is the plex server running on a raspberry pi 4 as well? because if not then there's no comparison

you can provide a Debug Log from libreelec switching channels and if there is anything to be seen then a suggestion can be made
limited expectation though, pretty likely it's due to being on pi 4
The Plex server is running Unraid on an AMD Ryzen 5 5600G CPU with 64GB of RAM. It's not under load and there are no other streams.

All the videos have also been encoded with Plex's recommended settings for direct play: MP4 containers, h.264 level 4.0, 30fps, 8-bit depth, and AAC audio. The videos are also all 720x480. https://support.plex.tv/articles/2038102...supported/
(2024-12-01, 00:24)videorama Wrote: [ -> ]The Plex server is running Unraid on an AMD Ryzen 5 5600G CPU with 64GB of RAM. It's not under load and there are no other streams.

that makes perfect sense why the plex server can switch faster than libreelec on a raspberry pi
and we're not trying to fix plex
 
(2024-11-30, 22:37)videorama Wrote: [ -> ]My problem is that it takes about a third of a minute for each channel to change. When it does the current channel freezes for most of the time, then a still image of the next channel shows for about a second and then it starts playing.

how kodi handles closing a stream then re-opening another stream as well as network latency is what we need to see the kodi debug log for
if there is anything to be done then one can see how long each part of the operation takes then perhaps make suggestions from there
at minimum explain why it takes longer

-----

The instructions are here... Debug Log

If you are using the Basic Method, then ensure the following is applied...
1.Enable debugging in Settings>System Settings>Logging,
2.Restart Kodi
3.Replicate the problem.
4.Upload the log to Kodi Paste Site manually or use the Kodi Logfile Uploader. (wiki) With either method post the link to the log back here.

If you are using the Advanced Method ensure you have correctly created and applied the advancedsettings.xml file (wiki)

In both instances, you should see the word DEBUG throughout the log.

Note: Full logs only. No partial or redacted logs
Do NOT post your logs directly into the forum. Use the Kodi Paste Site. Post the link to your pasted log in the forum
I enabled logging and uploaded the log file here: https://paste.kodi.tv/edotaziliq.kodi I'm not sure if the 01_KODI.log file is the one you wanted, but it's the only one in the zip folder with debug all throughout it.

To clarify, when I mentioned loading up a video channel quickly on another computer, I wasn't talking about on my Plex server. There are three computers: the Plex server, another computer that I loaded a video channel in VLC, and a third computer which is the Raspberry Pi.
(2024-12-03, 04:55)videorama Wrote: [ -> ]I enabled logging and uploaded the log file here:

seems ok

lines 1306-1348 tons of timeouts, accounting for 40 seconds worth of process time
possibly network related, if not then processor - need a more apt eye to weigh in

@phunkyfish

what's your thoughts on the timeouts?
or anything else catch your eye in the log?
Is there a mimetype set for each channel in the M3U file? Can you supply a sample M3U entry? You can obfuscate the URL.

If there is a minetype specified you can sped up access time as we don’t need to figure this out beforehand.
My m3u file can be seen here: https://paste.kodi.tv/igoducisic

I can manually modify this file and very open to do so if it can save time.
Do you know the mimetype of your stream?
If I open the streams in VLC it shows stream 0 as "H264 - MPEG-4 AVC (part 10) (h264) and stream 1 as "ADTS".

I handbrake all my videos the same should it should be consistent.
That’s the video that’s in the container. But there should be a mime type, such as HLS, DASH etc.

Or are they just plain video files such as MKV?