NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 53 54 55 56 57 … 433 Next »
Transcode Ignores Config.xml Setting

Transcode Ignores Config.xml Setting
jeneral
Offline

Junior Member

Posts: 4
Threads: 2
Joined: May 2018
#1
2018-05-25, 03:25 PM
After reading older posts on this forum, I modified my config.xml to try to enable Quicksync:

<TranscodeArgs>-y -v 0 -i [SOURCE] -f mpegts -acodec libfaac -ar 48000 -ac 2 -ab 64k -s [RESOLUTION] -vcodec h264_qsv -b [BITRATE]

Doing some tests, I noticed high CPU usage. After looking at the logs, I notice my h264_qsv setting is ignored:

2018-05-25 10:55:29.510 [DEBUG][16] Default transcoder args: -y [SEEK] -i [SOURCE] -map_metadata -1 -threads 0 -ignore_unknown -map 0:v:0 -map 0:a:[AUDIO_STREAM] -map -0Confused -codec:v:0 libx264 -pix_fmt yuv420p -preset superfast -crf 23 -b:v [BITRATE] -maxrate [BITRATE] -bufsize [BUFSIZE] -vsync vfr -profile:v high -level 41 -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 [SEGMENT_DURATION] -start_number 0 -hls_list_size [SEGMENT_COUNT] -y [TARGET]
2018-05-25 10:55:29.510 [DEBUG][16] Executing: C:\Program Files (x86)\NPVR\Other\ffmpeg.exe -y -i http://127.0.0.1:8866/live?channel=12&tr...cb8dae8afd -map_metadata -1 -threads 0 -ignore_unknown -map 0:v:0 -map 0:a:0 -map -0Confused -codec:v:0 libx264 -pix_fmt yuv420p -preset superfast -crf 23 -b:v 2000000 -maxrate 2000000 -bufsize 4000000 -vsync vfr -profile:v high -level 41 -force_key_frames "expr:gte(t,n_forced*3)" -s 1280x720 -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 200 -y "C:\Users\Public\NPVR\web\temp\BeinSportsUSHD-c939fa8fb58f45a8a5624b772f81c6fb.m3u8"

Am I doing this correctly? Is the HW Acceleration for Transcoding setting somewhere else? My server has a Skylake Celeron G3900 that supports Quicksync. The OS is WHS 2011.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#2
2018-05-25, 05:13 PM
If you're meaning to do this for the web/iOS/Android apps, the setting you need to change is <TranscodeHLS>default</TranscodeHLS>

The "default" setting is:

Code:
-y [SEEK] -i [SOURCE] -map_metadata -1 -threads 0 -ignore_unknown -map 0:v:0 -map 0:a:[AUDIO_STREAM] -map -0:s -codec:v:0 libx264 -pix_fmt yuv420p -preset superfast -crf 23 -b:v [BITRATE] -maxrate [BITRATE] -bufsize [BUFSIZE] -vsync vfr -profile:v high -level 41 -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 [SEGMENT_DURATION] -start_number 0 -hls_list_size [SEGMENT_COUNT] -y [TARGET]
jeneral
Offline

Junior Member

Posts: 4
Threads: 2
Joined: May 2018
#3
2018-05-26, 04:09 AM
Thanks for the reply. I think I understand what is happening. I ass-u-me-d that the <TranscodeArgs> field was what determined the encoding codec and thought that by changing libx264 to h264_qsv, I would get hardware encoding when viewing through my browser. Once I modified <TranscodeHLS> using modified 'default' settings, I saw the failed transcodes attempting to use h264_qsv. Sadly, it looks like a lot more parameters need to be changed to allow for hardware encodes. If anyone has figured it out, I'd appreciate a working setting. Otherwise, it will take a lot of trial and error on my part to figure out some working settings.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#4
2018-05-26, 06:26 AM
I don't have a video chipset that can use h264_qsv, but you'd probably need to simplify to something like the following, then try replacing libx264 with your alternative hardware encoder.

Code:
-y [SEEK] -i [SOURCE] -map_metadata -1 -threads 0 -ignore_unknown -map 0:v:0 -map 0:a:[AUDIO_STREAM] -map -0:s -codec:v:0 libx264 -b:v [BITRATE] -maxrate [BITRATE] -bufsize [BUFSIZE] -s [RESOLUTION] [SUBTITLES] -codec:a:0 aac -strict experimental -ac 2 -ab 128000 -hls_time [SEGMENT_DURATION] -start_number 0 -hls_list_size [SEGMENT_COUNT] -y [TARGET]
jeneral
Offline

Junior Member

Posts: 4
Threads: 2
Joined: May 2018
#5
2018-05-28, 01:45 PM
Thank you for the reply. I tried those settings but transcodes fail. I know Emby and other apps support hardware transcoding. Any plan to include it in NextPVR?

I'm surprised you don't have a Quicksync-supported chip. Most Intel processors in the past 6 years support Quicksync. In some cases, if using an external video card, there are hacks to enable it anyway.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#6
2018-05-28, 06:10 PM
jeneral Wrote:Thank you for the reply. I tried those settings but transcodes fail.
You'll just have to play around with the settings to a set that work well. You can do this experimenting outside of NextPVR, just from a command prompt. When you're happy the settings are working, you can feed them into the config.xml, with the various tags (like [SOURCE] etc), and you should be good to go.

Quote:I know Emby and other apps support hardware transcoding. Any plan to include it in NextPVR?

I'm surprised you don't have a Quicksync-supported chip. Most Intel processors in the past 6 years support Quicksync. In some cases, if using an external video card, there are hacks to enable it anyway.
It is on my to-do list. I did experiment with it in the past, but ffmpeg didn't seem to like my i7 processor (old one from back around 2011/2012)
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  config.xml MaxOne72 4 2,208 2023-08-20, 12:58 AM
Last Post: Bruce
  Epg setting SD token NextPvr 4.2.4 casimir@zyxu.ca 1 1,512 2021-03-05, 01:38 PM
Last Post: mvallevand
  Problem setting up recording for some programmes LeoL 5 1,937 2020-10-21, 09:34 PM
Last Post: LeoL
  Live Stream Transcode hdpvr-doug8796 13 4,543 2019-10-18, 05:53 PM
Last Post: hdpvr-doug8796
  Where's config.xml? acegolfer 2 2,729 2019-06-28, 06:49 PM
Last Post: acegolfer
  Schedules direct Username and password within the config file Brucek2839 5 2,227 2019-06-16, 02:44 PM
Last Post: Brucek2839
  IPTV Channels within the config file Brucek2839 2 1,776 2019-05-06, 05:59 AM
Last Post: Brucek2839
  Season Folder Setting - What makes it Work? jksmurf 29 5,762 2019-04-10, 07:18 AM
Last Post: jksmurf
  WinTV DCR-3250 Not Shown in Setting>Devices Caped33 1 1,445 2019-03-08, 03:43 PM
Last Post: sub
  Live TV Hanging (was OK, zero changes to my config) veletron 3 1,515 2019-01-24, 12:51 AM
Last Post: gEd

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

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

Linear Mode
Threaded Mode