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 … 44 45 46 47 48 … 102 Next »
GPU Acceleration

 
  • 0 Vote(s) - 0 Average
GPU Acceleration
aderlopas
Offline

Senior Member

Posts: 313
Threads: 40
Joined: Dec 2013
#61
2020-04-11, 06:54 AM
(2020-04-11, 06:39 AM)sub Wrote: You can override the string in the <TranscodeHLS> setting of config.xml.

Look at the "Using transcoder args" log message in nrecord.log to give you the starting point for replacing 'default' with.

Thanks Sub, 


I have added it here:


<TranscodeHLS>default</TranscodeHLS>
    <VideoEncoder>D3D11VA</VideoEncoder>
    <TranscodeArgsHLS>-y [SEEK] -i [SOURCE] -map_metadata -1 -threads 0 -map 0:0 -map 0:1 -map -0Confused -codec:v:0 libx264 -pix_fmt yuv420p -preset superfast -crf 23 -b:v [BITRATE] -maxrate [BITRATE] -bufsize 2698344 -vsync vfr -profile:v high -level 41 -aspect [ASPECT] -force_key_frames \"expr:gte(t,n_forced*3)\" -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 3 -start_number 0 -hls_list_size 0 -init_hw_device qsv=hw -filter_hw_device hw -vf hwupload=extra_hw_frames=64,format=qsv -y [TARGET]</TranscodeArgsHLS>

But it does not pick it up:


2020-04-11 09:48:36.856 [DEBUG][15] InitiateTranscode@2..
2020-04-11 09:48:36.884 [DEBUG][15] Using directx encoder
2020-04-11 09:48:36.886 [DEBUG][15] CaptureSource.LoadAll()
2020-04-11 09:48:36.895 [DEBUG][15] Default transcoder args: -y [SEEK] -hwaccel:v:0 d3d11va -hwaccel_device:v:0 0 -i [SOURCE] -map_metadata -1 -threads 0 -ignore_unknown -map 0:v:0? -map 0:a:[AUDIO_STREAM] -map -0Confused -codec:v:0 h264_qsv -b:v [BITRATE] -maxrate [BITRATE] -bufsize [BUFSIZE] -codec:a:0 [AUDIO_CODEC] -strict experimental -ac [AUDIO_CHANNELS] -ab [AUDIO_BITRATE] -hls_time [SEGMENT_DURATION] -start_number 0 -hls_list_size [SEGMENT_COUNT] -y [TARGET]
2020-04-11 09:48:36.897 [DEBUG][20] Got request [::ffff:192.168.178.74]: /services/service


Have I put it in the wrong place?
aderlopas
Offline

Senior Member

Posts: 313
Threads: 40
Joined: Dec 2013
#62
2020-04-11, 07:25 AM
(2020-04-11, 06:54 AM)aderlopas Wrote:
(2020-04-11, 06:39 AM)sub Wrote: You can override the string in the <TranscodeHLS> setting of config.xml.

Look at the "Using transcoder args" log message in nrecord.log to give you the starting point for replacing 'default' with.

Thanks Sub, 


I have added it here:


<TranscodeHLS>default</TranscodeHLS>
    <VideoEncoder>D3D11VA</VideoEncoder>
    <TranscodeArgsHLS>-y [SEEK] -i [SOURCE] -map_metadata -1 -threads 0 -map 0:0 -map 0:1 -map -0Confused -codec:v:0 libx264 -pix_fmt yuv420p -preset superfast -crf 23 -b:v [BITRATE] -maxrate [BITRATE] -bufsize 2698344 -vsync vfr -profile:v high -level 41 -aspect [ASPECT] -force_key_frames \"expr:gte(t,n_forced*3)\" -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 3 -start_number 0 -hls_list_size 0 -init_hw_device qsv=hw -filter_hw_device hw -vf hwupload=extra_hw_frames=64,format=qsv -y [TARGET]</TranscodeArgsHLS>

But it does not pick it up:


2020-04-11 09:48:36.856 [DEBUG][15] InitiateTranscode@2..
2020-04-11 09:48:36.884 [DEBUG][15] Using directx encoder
2020-04-11 09:48:36.886 [DEBUG][15] CaptureSource.LoadAll()
2020-04-11 09:48:36.895 [DEBUG][15] Default transcoder args: -y [SEEK] -hwaccel:v:0 d3d11va -hwaccel_device:v:0 0 -i [SOURCE] -map_metadata -1 -threads 0 -ignore_unknown -map 0:v:0? -map 0:a:[AUDIO_STREAM] -map -0Confused -codec:v:0 h264_qsv -b:v [BITRATE] -maxrate [BITRATE] -bufsize [BUFSIZE] -codec:a:0 [AUDIO_CODEC] -strict experimental -ac [AUDIO_CHANNELS] -ab [AUDIO_BITRATE] -hls_time [SEGMENT_DURATION] -start_number 0 -hls_list_size [SEGMENT_COUNT] -y [TARGET]
2020-04-11 09:48:36.897 [DEBUG][20] Got request [::ffff:192.168.178.74]: /services/service


Have I put it in the wrong place?


I think I finally made it work...I had to setup a profile as well....not leave it to default.

And it does work with the service as well...
aderlopas
Offline

Senior Member

Posts: 313
Threads: 40
Joined: Dec 2013
#63
2020-04-11, 11:09 AM (This post was last modified: 2020-04-11, 11:10 AM by aderlopas.)
In the end I thought I'd give it another try...
So I removed again the additional switches from config.xml and tried again...
And now it works with the original switches! Stranger Things....
Of course from the time I had tested this in the beginning, I installed latest Intel MSDN SDK and LAVfilters...don't know if that played any role...
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#64
2020-04-11, 11:36 AM
(2020-04-11, 11:09 AM)aderlopas Wrote: So I removed again the additional switches from config.xml and tried again...
And now it works with the original switches! Stranger Things....

To help me catch up ... Is GPU encoding working when Settings -> Transcoder -> Video Encoder is set to Intel and NextPVR Server is running as a Windows Service?
aderlopas
Offline

Senior Member

Posts: 313
Threads: 40
Joined: Dec 2013
#65
2020-04-11, 04:36 PM (This post was last modified: 2020-04-11, 04:44 PM by aderlopas.)
(2020-04-11, 11:36 AM)Graham Wrote:
(2020-04-11, 11:09 AM)aderlopas Wrote: So I removed again the additional switches from config.xml and tried again...
And now it works with the original switches! Stranger Things....

To help me catch up ... Is GPU encoding working when Settings -> Transcoder -> Video Encoder is set to Intel and NextPVR Server is running as a Windows Service?

Yes it does...eventually although I have left it to D3D11VA because it uses much more GPU (and much less CPU) that if I use INTEL.


Attached Files Thumbnail(s)
       
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#66
2020-04-11, 04:53 PM
(2020-04-11, 04:36 PM)aderlopas Wrote:
(2020-04-11, 11:36 AM)Graham Wrote: To help me catch up ... Is GPU encoding working when Settings -> Transcoder -> Video Encoder is set to Intel and NextPVR Server is running as a Windows Service?

Yes it does...eventually although I have left it to D3D11VA because it uses much more GPU (and much less CPU) that if I use INTEL.

Thanks ... I shall investigate tomorrow.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#67
2020-04-11, 05:13 PM
(2020-04-11, 11:09 AM)aderlopas Wrote: In the end I thought I'd give it another try...
So I removed again the additional switches from config.xml and tried again...
And now it works with the original switches! Stranger Things....
Of course from the time I had tested this in the beginning, I installed latest Intel MSDN SDK and LAVfilters...don't know if that played any role...
Weird. If you put it back to "default", does it now work?
aderlopas
Offline

Senior Member

Posts: 313
Threads: 40
Joined: Dec 2013
#68
2020-04-11, 06:46 PM
(2020-04-11, 05:13 PM)sub Wrote:
(2020-04-11, 11:09 AM)aderlopas Wrote: In the end I thought I'd give it another try...
So I removed again the additional switches from config.xml and tried again...
And now it works with the original switches! Stranger Things....
Of course from the time I had tested this in the beginning, I installed latest Intel MSDN SDK and LAVfilters...don't know if that played any role...
Weird. If you put it back to "default", does it now work?

Surprisingly, yes it now works. Of course  I also reinstalled the latest version of NextPVR again in order to revert the older DLL I copied previously.
Spaldo
Offline

Junior Member

Australia
Posts: 14
Threads: 1
Joined: May 2022
#69
2022-05-07, 01:46 AM
Has anyone got Nvidia GPU acceleration working within a docker / pass through. I have just got NextPVR working on Unraid in a docker. At the moment the only options I have within the transcoder Video Encoder section are CPU & VAAPI
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,117
Threads: 957
Joined: May 2006
#70
2022-05-07, 01:58 AM
That probably should have been posted in the Docker sub forum not Windows. You can write custom scripts if you know what you are doing but I suggest using direct play clients and avoid the trouble.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (8): « Previous 1 … 4 5 6 7 8 Next »
Jump to page 


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

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

Linear Mode
Threaded Mode