NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support v
« Previous 1 … 5 6 7 8 9 … 44 Next »
Set NextPVR to auto transcode to hevc instead of h264

 
  • 0 Vote(s) - 0 Average
Set NextPVR to auto transcode to hevc instead of h264
Jean0987654321
Offline

Junior Member

USA
Posts: 19
Threads: 3
Joined: Mar 2021
#11
2023-10-12, 12:17 AM
(2023-10-10, 11:41 PM)sub Wrote:
(2023-10-10, 07:50 PM)Jean0987654321 Wrote: I know it's been a year @sub, but any updates on this?
Sorry, I've intentionally not done anything on this front.

For the most part the transcoding functionality in NextPVR is about getting content into a format that can be easily consumed by web clients. Unfortunately HEVC support is still not universal in web browsers, so I've just stuck with H264 at this stage (which is universally available).
I can see the rationale even if I disagree. It's not a deal breaker for me since I can just use Fileflows or a Postprocessing script to handle that

Cheers
frutiloop
Offline

Junior Member

Canada
Posts: 1
Threads: 0
Joined: Feb 2024
#12
2024-02-05, 04:54 AM (This post was last modified: 2024-02-05, 04:58 AM by frutiloop.)
I've also been curious about HEVC encoding for low bandwidth streaming to my cell phone.  I started by extracting from the nrecord.log file what the current ffmpeg parameters are which are being used for transcoding using an NVIDIA GPU.  These parameters are as follows:

-y [ANALYZE_DURATION] [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 h264_nvenc [DEINTERLACING] -look_ahead 0 -pix_fmt nv12 -b:v [BITRATE] -maxrate [BITRATE] -bufsize [BUFSIZE] -vsync vfr -profile:v high -level 41  -s [RESOLUTION] [SUBTITLES] -flags -global_header -sc_threshold 0 -codec:a:0 [AUDIO_CODEC] -strict experimental -ac [AUDIO_CHANNELS] -ab [AUDIO_BITRATE] -af "adelay=1,aresample=async=1" -hls_time [SEGMENT_DURATION] -start_number 0 -hls_list_size [SEGMENT_COUNT] -y [TARGET]

The modifications to get it to transcode to HEVC are as follows:
Change "-codec:v:0 h264_nvenc"  ..TO..  "-codec:v:0 hevc_nvenc"
Change "-profile:v high -level 41"  ..TO..  "-profile:v main -level 4.1"
Add "-g 75" so the stream doesn't take 10 or more seconds to start.

In config.xml change
<TranscodeHLS>default</TranscodeHLS>

..TO..

<TranscodeHLS>-y [ANALYZE_DURATION] [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 hevc_nvenc [DEINTERLACING] -g 75 -preset fast -look_ahead 0 -pix_fmt nv12 -b:v [BITRATE] -maxrate [BITRATE] -bufsize [BUFSIZE] -vsync vfr -profile:v main -level 4.1  -s [RESOLUTION] [SUBTITLES] -flags -global_header -sc_threshold 0 -codec:a:0 [AUDIO_CODEC] -strict experimental -ac [AUDIO_CHANNELS] -ab [AUDIO_BITRATE] -af "adelay=1,aresample=async=1" -hls_time [SEGMENT_DURATION] -start_number 0 -hls_list_size [SEGMENT_COUNT] -y [TARGET]</TranscodeHLS>

This change seems to work with the android app but not through any of the browsers I've tried. 
Using the android app, it is able to successfully stream transcoded recordings but had trouble streaming transcoded live TV.  With live TV, the TV tuner sometimes shuts down as it is attempting to stream.

Any suggestions on other ffmpeg parameters that may be adjusted or added to optimize the above?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,719
Threads: 965
Joined: May 2006
#13
2024-02-05, 05:10 AM
I think the only browser that support hevc is Safari which is way h264 is standard.
« 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
  Auto skip episodes shorter than x seconds? muzicman0 3 107 2025-09-15, 09:42 PM
Last Post: mvallevand
  Disable auto-skip when comskip is enabled? nextcom 3 549 2025-08-24, 04:17 AM
Last Post: baj1
Wink NextPVR - future evolution ? ceejayemm 2 598 2025-08-07, 01:41 PM
Last Post: mvallevand
  Any chance NextPVR could be a flatpak install? cptrohn 2 729 2025-07-13, 12:30 AM
Last Post: sub
  DVB-S2 & DVB-T on Docker, Nextpvr sees both but only scans DVB-S2 seapoint 16 1,649 2025-05-30, 09:36 AM
Last Post: seapoint
  Controlling the nextpvr server from Jellyfin (via the nextpvr plugin) (no recording) kfmf 2 1,002 2025-05-04, 02:21 PM
Last Post: mvallevand
  I'm using nextpvr with jellyfin which I share with family. Besse1953 1 609 2025-04-18, 01:01 PM
Last Post: mvallevand
  Recording Auto Transcode VCR58 8 2,354 2025-02-18, 12:45 AM
Last Post: mvallevand
  Successful import from MythTV DB to NextPVR Allan 0 508 2025-02-10, 09:51 PM
Last Post: Allan
  Connection Timeout Issue When Selecting Channels in Kodi with NextPVR Paul92 9 1,999 2024-11-02, 11:40 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