NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support v
« Previous 1 … 4 5 6 7 8 … 43 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: 17
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
Offline

Posting Freak

Ontario Canada
Posts: 52,839
Threads: 954
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
  Controlling the nextpvr server from Jellyfin (via the nextpvr plugin) (no recording) kfmf 2 233 2025-05-04, 02:21 PM
Last Post: mvallevand
  I'm using nextpvr with jellyfin which I share with family. Besse1953 1 216 2025-04-18, 01:01 PM
Last Post: mvallevand
  Recording Auto Transcode VCR58 8 1,692 2025-02-18, 12:45 AM
Last Post: mvallevand
  Successful import from MythTV DB to NextPVR Allan 0 229 2025-02-10, 09:51 PM
Last Post: Allan
  Connection Timeout Issue When Selecting Channels in Kodi with NextPVR Paul92 9 1,092 2024-11-02, 11:40 PM
Last Post: mvallevand
  Can NextPVR work well under docker on oldish hardware? ramiroelliot 1 332 2024-10-29, 11:36 PM
Last Post: sub
  Looking at NextPVR to possibly replace my SageTV implimentation BigBillSD 4 536 2024-10-10, 09:00 PM
Last Post: BigBillSD
  Help Automating M3U Channel Refresh NextPVR on Unraid (AMD64) mcs_94 5 614 2024-10-06, 08:29 PM
Last Post: sub
  NextPVR Deleted All My Important Files on SSD yngsadstn 4 716 2024-09-15, 08:38 AM
Last Post: mvallevand
  How to get xmltv from NextPVR working in Emby? guenti_r 6 968 2024-09-09, 03:35 PM
Last Post: guenti_r

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

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

Linear Mode
Threaded Mode