NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Windows v
1 2 3 4 5 … 112 Next »
How to reduce webapp loading time

 
  • 0 Vote(s) - 0 Average
How to reduce webapp loading time
pirole
Offline

Junior Member

UK
Posts: 17
Threads: 2
Joined: May 2026
#11
2026-07-02, 06:26 PM (This post was last modified: 2026-07-02, 06:30 PM by pirole.)
So the counter is counting the data transcribed, not the data received by the browser, right?

If the player started playing as soon as the counter starts it would shave the waiting time by more than that, more than half, almost as good as the other apps.

I will try around with ffmpeg.
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 108,439
Threads: 783
Joined: Nov 2003
#12
2026-07-02, 06:30 PM
The playback in the browser require transcoding, and it does it to HLS, which is widely supported, but wont start playback until there is at least couple of segments available.

If you use a native player, like NextPVR.exe or yauiclient or kodi etc, you'll get substantially quicker video startup and channel change time.
pirole
Offline

Junior Member

UK
Posts: 17
Threads: 2
Joined: May 2026
#13
2026-07-02, 06:35 PM (This post was last modified: 2026-07-02, 06:47 PM by pirole.)
Yes, I know about the trancription but now I'm confused. Is this a limitation of the browser that won't start playing until it has 2 segments or ffmpeg that requires a buffer to start encoding?

According to firefox cache, the page first requests service?method=channel.transcode.status&format=json multiple times while the counter is increasing. Then requests the m3u8, after that the first segment and playback starts immediately. Cannot say if it starts before receiving the segment entirely or not because it all happens very fast.

Is it a ffmpeg limitation that the m3u8 can only be sent after the segment is complete instead of flushing it as it is being produced?
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 108,439
Threads: 783
Joined: Nov 2003
#14
2026-07-02, 06:54 PM
ffmpeg will only write the segments to the m3u8 when they're complete.

Browser will only start playback when a couple of segments are in the m3u8 url.

NextPVR's web app doesn't attempt to start the playback too early, because players don't typically like empty playlists.

In theory I could trim a few seconds off, but probably not much. When viewing in the web app, and requiring transcoding, you're probably never get it any faster than you get in that uiclient.html page. That uses ffmpeg's low latency startup modes etc, rather than segmented HLS.
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 108,439
Threads: 783
Joined: Nov 2003
#15
2026-07-02, 06:59 PM
On the uiclient.html page, with the Hauppauge tuner I currently have plugged in, video typically starts in about 4 seconds. Changing channels typically takes about 3 seconds. If the channels are on the same frequency, sometimes the channel change time can be as low as about 1.0-1.5 seconds.

Ultimately how quick your tuner is, and your CPU, also factors into this.
pirole
Offline

Junior Member

UK
Posts: 17
Threads: 2
Joined: May 2026
#16
2026-07-02, 07:11 PM
Ok, so it's a ffmpeg limitation.

I was curious why you keep referring to the uiclient and checked it out more closely. Does it do the transcription via javascript? Uau. If yes, nice work but I don't notice a loading speed difference. The fans speed however start to drown out the audio.

If ffmpeg support was as good as it is here I would suggest to add the option to create the m3u8 first and start outputting the segment immediately after. I cut one of them in half and it played ok and going by the headers there is a good chance it is playable as it is being produced.
pirole
Offline

Junior Member

UK
Posts: 17
Threads: 2
Joined: May 2026
#17
2026-07-02, 07:12 PM
Just read your second message. Yes, my computer is old.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 56,522
Threads: 995
Joined: May 2006
#18
2026-07-02, 07:13 PM
Upload your zipped logs, it is very clear in there where any bottlenecks are.

Martin
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 108,439
Threads: 783
Joined: Nov 2003
#19
2026-07-02, 07:16 PM
I'll make the HLS playback start a bit quicker for the next release. There are some small improvements I can make in there.
pirole
Offline

Junior Member

UK
Posts: 17
Threads: 2
Joined: May 2026
#20
2026-07-02, 07:34 PM
Thank you Martin, it isn't that important.

Thank you sub.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


Possibly Related Threads…
Thread Author Replies Views Last Post
  XMLTV subscription not loading channel maps prariedogn99 8 948 2026-03-01, 04:11 PM
Last Post: mvallevand
  Recorder Not Operating At Scheduled Time SamM 3 674 2026-01-18, 01:53 AM
Last Post: jimil
  Time for upgrade greg in kansas 37 6,141 2025-07-06, 04:58 PM
Last Post: greg in kansas
  How many IPTV streams should i be able to record at the same time? sharkbite 6 3,141 2025-03-27, 01:26 AM
Last Post: sharkbite
  IPTV EGP not loading automatically, only manually gaburko 3 1,829 2025-02-14, 11:45 PM
Last Post: sub
  V7 current time display gone in OSD artmetz 19 4,239 2024-12-12, 03:33 PM
Last Post: artmetz
  Change Time Zone for EPG Information for Single Channel NatalieEGH1 2 2,691 2024-11-06, 09:05 PM
Last Post: NatalieEGH1
  Adding channels - Stuck at "loading EPG mappings" antarmbreacdearg 6 1,780 2024-10-24, 07:06 PM
Last Post: mvallevand
  scheduler start time mocarob 11 2,298 2024-10-12, 11:06 PM
Last Post: mvallevand
  Settings section - Devices and Channels pages not loading kevwag 51 10,710 2024-08-10, 09:24 PM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode