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
1 hour ago (This post was last modified: 1 hour ago 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,403
Threads: 783
Joined: Nov 2003
#12
1 hour ago
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
1 hour ago (This post was last modified: 55 minutes ago 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,403
Threads: 783
Joined: Nov 2003
#14
48 minutes ago
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,403
Threads: 783
Joined: Nov 2003
#15
43 minutes ago
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
31 minutes ago
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
30 minutes ago
Just read your second message. Yes, my computer is old.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 56,460
Threads: 995
Joined: May 2006
#18
29 minutes ago
Upload your zipped logs, it is very clear in there where any bottlenecks are.

Martin
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 108,403
Threads: 783
Joined: Nov 2003
#19
27 minutes ago
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
8 minutes ago
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 920 2026-03-01, 04:11 PM
Last Post: mvallevand
  Recorder Not Operating At Scheduled Time SamM 3 658 2026-01-18, 01:53 AM
Last Post: jimil
  Time for upgrade greg in kansas 37 6,066 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,067 2025-03-27, 01:26 AM
Last Post: sharkbite
  IPTV EGP not loading automatically, only manually gaburko 3 1,819 2025-02-14, 11:45 PM
Last Post: sub
  V7 current time display gone in OSD artmetz 19 4,211 2024-12-12, 03:33 PM
Last Post: artmetz
  Change Time Zone for EPG Information for Single Channel NatalieEGH1 2 2,617 2024-11-06, 09:05 PM
Last Post: NatalieEGH1
  Adding channels - Stuck at "loading EPG mappings" antarmbreacdearg 6 1,771 2024-10-24, 07:06 PM
Last Post: mvallevand
  scheduler start time mocarob 11 2,291 2024-10-12, 11:06 PM
Last Post: mvallevand
  Settings section - Devices and Channels pages not loading kevwag 51 10,583 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