NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Docker amd64 v
« Previous 1 2 3 4 5 … 9 Next »
IPTV streaming uses 100% CPU

 
  • 0 Vote(s) - 0 Average
IPTV streaming uses 100% CPU
callumjk
Offline

Junior Member

Australia
Posts: 1
Threads: 1
Joined: Apr 2024
#1
2024-04-18, 02:25 PM
Using NextPVR in a docker container on an Ubuntu Server. Watching a single IPTV stream using the web client uses all of my 4 CPU cores (i5-6500T). In comparison, watching the same stream through the Kodi add on uses 2-3% CPU. Recording is also fine and barely has an effect on the CPU, but watching those recordings with the web client uses all of the CPU again and isn't really watchable because of it's constant buffering.
Is my hardware not powerful enough to transcode the stream/recordings?


Attached Files
.zip   logs-20240418-1354.zip (Size: 38.7 KB / Downloads: 1)
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,091
Threads: 957
Joined: May 2006
#2
2024-04-18, 02:41 PM
Unfortunately your provider is not sending the stream in a web compatible format

2024-04-18 13:53:59.138 [DEBUG][27] [FFMPEG]: Stream #0:1[0x101](en`): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), fltp, 384 kb/s

so it has to be transcoded. Since NextPVR transcodes both video and audio when it detects it is not web compatible to answer your question "yes" your machine as configured is not powerful enough.

You might be able to configure VAAPI in Docker. A simpler solution would be to run NextPVR on bare metal if you truly need web playback. i5-6500 should be able to use VAAPI.

Finally another option (assuming only audio is bad) is to change the transcode string and pass the video and assume it is good. This will mean any hevc or mpeg2video channels will fail in the browser, but they likely will fail anyway so it is not a big lose. You can try this on you config.xml in /config

Code:
sed -i 's/<TranscodeHLS>default<\/TranscodeHLS>/<TranscodeHLS>-y [ANALYZE_DURATION] [SEEK] -i [SOURCE] -map_metadata -1 -threads [THREADS] -ignore_unknown -map 0:v:0? [PREFERRED_LANGUAGE] -map 0:a:[AUDIO_STREAM] -map -0:s -vcodec copy -acodec aac -ac 2 -c:s copy -hls_time [SEGMENT_DURATION] -start_number 0 -hls_list_size [SEGMENT_COUNT] -y [TARGET]<\/TranscodeHLS>/' config.xml

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,787
Threads: 769
Joined: Nov 2003
#3
2024-04-18, 05:11 PM
(2024-04-18, 02:25 PM)callumjk Wrote: Using NextPVR in a docker container on an Ubuntu Server. Watching a single IPTV stream using the web client uses all of my 4 CPU cores (i5-6500T). In comparison, watching the same stream through the Kodi add on uses 2-3% CPU. Recording is also fine and barely has an effect on the CPU, but watching those recordings with the web client uses all of the CPU again and isn't really watchable because of it's constant buffering.
Is my hardware not powerful enough to transcode the stream/recordings?
The least resource intensive way to watch a stream is via a player that can play the stream in it's native format. ie, like a uiclient (like LG app, Samsung Tizen app, yauiclient, nlite etc), kodi, iOS app etc. These types of players can play the audio/video stream without having to re-encode it.

Web browsers are great for some things, but unfortunately not very flexible for video playback formats, so if the source stream is not H264+AAC then it needs to be transcoded. Usually IPTV streams are already H264+AAC, and can be streamed without reencoding...but unfortunately some IPTV streams are not in the correct format, so require this extra effort.

If your machine is not up to doing that smoothly, you could try those things Martin suggested above, like enabling hardware encoding (by mapping /dev/dri into your docker container, and setting nextpvr to use the VAAPI encoder). Hopefully that'd get the CPU usage down for you.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Live streaming starts but then fails with access denied TheFonz 7 512 2025-05-14, 12:39 PM
Last Post: mvallevand
  Trouble with IPTV provider with frequently changing URLs chelseatv 3 1,934 2023-11-17, 02:33 PM
Last Post: mvallevand
  IPTV repeat one? pewter_waggle 5 1,226 2023-03-25, 05:06 PM
Last Post: sub
  Adding multiple IPTV devices Khalimerot 21 4,299 2023-02-20, 11:13 AM
Last Post: Khalimerot
  IPTV only one stream can be recorded at a time rojerki 2 1,169 2022-05-22, 11:10 AM
Last Post: rojerki
  Unable to Add IPTV XMLTV (m3u works fine) add45 34 8,905 2021-05-25, 03:10 PM
Last Post: add45
  LiveTv Channels - Streaming Failed (transcoder exited) groenator 22 7,546 2020-10-05, 10:40 AM
Last Post: Graham
  repeating sections of IPTV playback sstavross 10 4,217 2020-04-07, 10:13 AM
Last Post: sstavross
  "IPTV" recording is murdering my CPU Coxeroni 12 4,489 2020-01-24, 07:20 PM
Last Post: sub
  Extra Device v. IPTV Device for a Network Based Encoder pkscout 7 3,378 2020-01-24, 03:43 PM
Last Post: sub

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

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

Linear Mode
Threaded Mode