NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Windows v
« Previous 1 … 9 10 11 12 13 … 101 Next »
<TranscodeExe> in config.xml ignored?

 
  • 0 Vote(s) - 0 Average
<TranscodeExe> in config.xml ignored?
aderlopas
Offline

Senior Member

Posts: 313
Threads: 40
Joined: Dec 2013
#1
2024-09-01, 08:14 PM
Hello,

I have set the below tags in config.xml:

<TranscodeExe>.\other\startffmpeg.cmd</TranscodeExe>

<TranscodeHLS>-y [SEEK] -hwaccel:v:0 d3d11va -hwaccel_device:v:0 0 -bsf:v h264_mp4toannexb -i [SOURCE] -omit_video_pes_length 1 -map_metadata -1 -threads 0 -ignore_unknown -map 0:v:0 -map 0:a:[AUDIO_STREAM] -map -0Confused  -c:v h264_qsv -pix_fmt yuv420p -preset veryfast  -global_quality 25 -b:v [BITRATE] -maxrate [BITRATE] -bufsize [BUFSIZE] -fps_mode passthrough -profile:v high -level 4.0 -force_key_frames "expr:gte(t,n_forced*1)" -s [RESOLUTION] [SUBTITLES] -flags -global_header -sc_threshold 0 -codec:a:0 aac -strict experimental -ac 2 -ab 128000 -af "adelay=1,aresample=async=1" -hls_time [SEGMENT_DURATION] -start_number 0 -hls_list_size [SEGMENT_COUNT] -y [TARGET]</TranscodeHLS>   

Where startffmpeg.cmd is a script with the following command: 

start /b /high .\other\ffmpeg.exe

But I don't see this command line being used in the logs:

2024-09-01 23:08:07.685 [DEBUG][17] Executing: C:\Program Files\NextPVR\Other\ffmpeg.exe -y  -hwaccel:v:0 d3d11va -hwaccel_device:v:0 0 -bsf:v h264_mp4toannexb -i http://127.0.0.1:8866/live?channeloid=71...249157f851 -omit_video_pes_length 1 -map_metadata -1 -threads 0 -ignore_unknown -map 0:v:0 -map 0:a:0 -map -0Confused  -c:v h264_qsv -pix_fmt yuv420p -preset veryfast  -global_quality 25 -b:v 4000000 -maxrate 4000000 -bufsize 8000000 -fps_mode passthrough -profile:v high -level 4.0 -force_key_frames "expr:gte(t,n_forced*1)" -s 1280x720 -cConfused dvbsub -flags -global_header -sc_threshold 0 -codec:a:0 aac -strict experimental -ac 2 -ab 128000 -af "adelay=1,aresample=async=1" -hls_time 5 -start_number 0 -hls_list_size 243 -y "C:\Users\Public\NPVR-data\web\temp\ANT1-00b7218a0947418fa5113745e3427b31.m3u8"

is there something I am doing wrong?

Thanks and regards


Attached Files
.zip   nrecord.zip (Size: 10.97 KB / Downloads: 1)
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,846
Threads: 954
Joined: May 2006
#2
2024-09-01, 08:25 PM
What are you trying to do?

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,666
Threads: 767
Joined: Nov 2003
#3
2024-09-01, 09:50 PM
That <TranscodeExe> setting is not used.
aderlopas
Offline

Senior Member

Posts: 313
Threads: 40
Joined: Dec 2013
#4
2024-09-02, 05:42 AM
(2024-09-01, 08:25 PM)mvallevand Wrote: What are you trying to do?

Martin

Hi Martin,

I am trying to raise ffmpeg process priority
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,846
Threads: 954
Joined: May 2006
#5
2024-09-02, 12:57 PM
(2024-09-02, 05:42 AM)aderlopas Wrote:
(2024-09-01, 08:25 PM)mvallevand Wrote: What are you trying to do?
Hi Martin,

I am trying to raise ffmpeg process priority

I thought so but if your system isn't busy that won't make much difference in producing data and may impact NextPVR's ability to deliver it.   There are two config.xml settings for NextPVR that would be better to experiment with.

<UseHigherPriority>false</UseHigherPriority>
<HigherPriorityLevel>AboveNormal</HigherPriorityLevel>

However Windows doesn't do that bad a job with resources and for a slow PC that is not able to keep up that is already using GPU I would focus on a simpler command line and lower some quality rather than impacting the system.   From the command line also try and see if using different values here -threads 0 since your system might use threads differently and a theoretical optimal may not be best.  Turning off things like antivirus are your best bet.

If bandwidth and mobile use is your real concern (seems to be since you could be using a direct play client) 4MB bit rate is pretty high.

Martin
aderlopas
Offline

Senior Member

Posts: 313
Threads: 40
Joined: Dec 2013
#6
2024-09-02, 01:11 PM
(2024-09-02, 12:57 PM)mvallevand Wrote:
(2024-09-02, 05:42 AM)aderlopas Wrote:
(2024-09-01, 08:25 PM)mvallevand Wrote: What are you trying to do?
Hi Martin,

I am trying to raise ffmpeg process priority

I thought so but if your system isn't busy that won't make much difference in producing data and may impact NextPVR's ability to deliver it.   There are two config.xml settings for NextPVR that would be better to experiment with.

<UseHigherPriority>false</UseHigherPriority>
<HigherPriorityLevel>AboveNormal</HigherPriorityLevel>

However Windows doesn't do that bad a job with resources and for a slow PC that is not able to keep up that is already using GPU I would focus on a simpler command line and lower some quality rather than impacting the system.   From the command line also try and see if using different values here -threads 0 since your system might use threads differently and a theoretical optimal may not be best.  Turning off things like antivirus are your best bet.

If bandwidth and mobile use is your real concern (seems to be since you could be using a direct play client) 4MB bit rate is pretty high.

Martin

Hi Martin, 

Thank you for your reply. 
The PC is a fairly enough to handle 2 DVB-T2 streams with some hw accelaration.
what I'm trying to avoid is random freezes that are done from time to time. 
Bandwidth in my LAN this PC has 300Mbit  ethernet and for Internet I have 10Mbit DSL upload until I manage to upgrade it.
This PC only runs Apache 2.0 and Nextpvr, Apache handling the security and being the reverse proxy to nextpvr. 
I hope it makes sense.
Right now the priority of ffmpeg is below normal, and streaming is affectred for example when I do remote RDS connection to the box.  I'll try and use the two settings you suggested to increase the priority and see what happens.

Kind regards
aderlopas
Offline

Senior Member

Posts: 313
Threads: 40
Joined: Dec 2013
#7
2024-09-02, 01:18 PM (This post was last modified: 2024-09-02, 01:19 PM by aderlopas.)
(2024-09-02, 01:11 PM)aderlopas Wrote:
(2024-09-02, 12:57 PM)mvallevand Wrote:
(2024-09-02, 05:42 AM)aderlopas Wrote:
(2024-09-01, 08:25 PM)mvallevand Wrote: What are you trying to do?
Hi Martin,

I am trying to raise ffmpeg process priority

I thought so but if your system isn't busy that won't make much difference in producing data and may impact NextPVR's ability to deliver it.   There are two config.xml settings for NextPVR that would be better to experiment with.

<UseHigherPriority>false</UseHigherPriority>
<HigherPriorityLevel>AboveNormal</HigherPriorityLevel>

However Windows doesn't do that bad a job with resources and for a slow PC that is not able to keep up that is already using GPU I would focus on a simpler command line and lower some quality rather than impacting the system.   From the command line also try and see if using different values here -threads 0 since your system might use threads differently and a theoretical optimal may not be best.  Turning off things like antivirus are your best bet.

If bandwidth and mobile use is your real concern (seems to be since you could be using a direct play client) 4MB bit rate is pretty high.

Martin

Hi Martin, 

Thank you for your reply. 
The PC is a fairly enough to handle 2 DVB-T2 streams with some hw accelaration.
what I'm trying to avoid is random freezes that are done from time to time. 
Bandwidth in my LAN this PC has 300Mbit  ethernet and for Internet I have 10Mbit DSL upload until I manage to upgrade it.
This PC only runs Apache 2.0 and Nextpvr, Apache handling the security and being the reverse proxy to nextpvr. 
I hope it makes sense.
Right now the priority of ffmpeg is below normal, and streaming is affectred for example when I do remote RDS connection to the box.  I'll try and use the two settings you suggested to increase the priority and see what happens.

Kind regards

Which also seems not to be working as I checked after I changed the two settings as follows:

<UseHigherPriority>true</UseHigherPriority>
    <HigherPriorityLevel>AboveNormal</HigherPriorityLevel>

And the priority I see in task manager for the ffmpeg process is still BelowNormal (I restarted nextpvr service after making the change).

Kind regards
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,846
Threads: 954
Joined: May 2006
#8
2024-09-02, 01:25 PM
I know sub drops priority for ffmpeg for thumbnail and timing extraction perhaps that inadvertently was added for streaming.

I wouldn't use your settings with 10Mb upload. Maybe try and reduce RDP use to when you aren't streaming Live TV remotely.

Martin
aderlopas
Offline

Senior Member

Posts: 313
Threads: 40
Joined: Dec 2013
#9
2024-09-02, 09:00 PM
(2024-09-02, 01:25 PM)mvallevand Wrote: I know sub drops priority for ffmpeg for thumbnail and timing extraction perhaps that inadvertently was added for streaming.

I wouldn't use your settings with 10Mb upload.  Maybe try and reduce RDP use to when you aren't streaming Live TV remotely.

Martin

Hi Martin, RDP I just brought up as an example. I am not using RDP that often only to administer the PC. 
The problem is that from time to time the streaming freezes shortly, either from the Android App or from Kodi.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,666
Threads: 767
Joined: Nov 2003
#10
2024-09-02, 09:07 PM
When you're using Kodi, it shouldn't be using using ffmpeg, except if thumbnails/timing is still on, but these are run at below normal priority to minimize any interference. So no need to try running ffmpeg at high priority.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  What's the link between Preferred Streaming Profile and config.xml Transcode Profile? aderlopas 5 2,089 2025-03-10, 07:52 AM
Last Post: mmortal03
  yet another uiclient config question Brucek2839 2 491 2023-09-30, 10:15 PM
Last Post: Brucek2839
  Dual STB config using 2 Hauppauge Colossus 2 cards three6zerocool 14 1,701 2023-01-18, 11:54 AM
Last Post: three6zerocool
  Config <StrippedEPGPrefixes> Jaggy 7 1,034 2022-02-23, 12:16 AM
Last Post: Jaggy
  New settings in config.xml Stanno 2 888 2022-02-16, 02:34 PM
Last Post: Stanno
  No config.xml so cant change port number. Red5ive 3 2,075 2020-01-09, 01:41 PM
Last Post: mvallevand
  Web Config/Client TV Guide Group Selection BrettB 1 3,479 2019-06-17, 03:54 AM
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