Skip to content

Instantly share code, notes, and snippets.

@nerdegem
Last active April 13, 2022 22:12
Show Gist options
  • Select an option

  • Save nerdegem/4a1c22703b43fca4c38d9079d9cfa864 to your computer and use it in GitHub Desktop.

Select an option

Save nerdegem/4a1c22703b43fca4c38d9079d9cfa864 to your computer and use it in GitHub Desktop.
HEVC_NVMPI Realtime Transcoding
Using a nVidia Jetson Nano / TX1 to encode HEVC Realtime within TVHeadend
1) Build FFMPEG using the Jetson-FFMPEG instructions
2) chown/grp to hts:video for the ffmpeg to support piping
3) Build TVHeadend and add MPEGTS-SPAWN (Built-in)
4) Add the following script and apply it to the user or default.
/usr/local/bin/ffmpeg -loglevel error -hide_banner -nostats -strict experimental -nostdin -err_detect ignore_err -skip_frame -nokey -ignore_unknown -extra_hw_frames 3 -rtbufsize 4092k -i pipe:0 -c:v hevc_nvmpi -preset:v medium -num_capture_buffers 16 -rc vbr -maxrate 6M -b:v 4M -c:a copy -c:s copy -force_key_frames expr:gte(t,n_forced*3) -f mpegts pipe:1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment