How to enable hardware transcode in TVH snap version?
Added by m h over 1 year ago
So I'm in the Configuration->stream->stream profiles menu. It lists the HEVC VAAPI codec, but it can't work. I don't know what settings should I change to make it work. Also has a libx265 codec, but it's only CPU transcoding, useless. h264 codecs also can't use the GPU.
I have an intel i3 8100 CPU, and using the integrated GPU. The hw transcoding works well in other programs like Jellyfin.
(Also I'm open to change to the apt version of TVH, if it would solve my problem. But the apt version cant't see my DVB-C tuners. These are network tuners (EyeTV Netstream 4C). I can't find the add-on which allows TVH to see my tuners. These addons are available in the snap version, which is working fine, except the hw transcoding. (And I tried some docker versions of TVH, one of them has the addon for the tuners, but can't find the channels.))
Replies (5)
RE: How to enable hardware transcode in TVH snap version? - Added by saen acro over 1 year ago
About > toggle details
post result.
RE: How to enable hardware transcode in TVH snap version? - Added by m h over 1 year ago
HTS Tvheadend 4.2.8-dirty
Configure arguments:
--prefix=/snap/tvheadend/current/usr --disable-pcloud_cache --disable-ffmpeg_static --enable-avahi --enable-bundle --enable-capmt --enable-cccam --enable-constcw --enable-cwc --enable-dvbcsa --enable-dvbscan --enable-hdhomerun_client --enable-iptv --enable-libav --enable-libfdkaac --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-linuxdvb --enable-linuxdvb_ca --enable-linuxdvbapi --enable-nvenc --enable-pcre2 --enable-pngquant --enable-qsv --enable-satip_client --enable-satip_server --enable-tsfile --enable-tvhcsa --enable-upnp --enable-uriparser --enable-vaapi --enable-zlib --nowerror=unused-variable,stringop-truncation,attributes
Compiler:
Using C compiler: cc
Using C flags: -isystem/build/tvheadend/parts/tvheadend/install/usr/include -isystem/build/tvheadend/stage/usr/include
Using LD flags: -L/build/tvheadend/parts/tvheadend/install/lib -L/build/tvheadend/parts/tvheadend/install/usr/lib -L/build/tvheadend/parts/tvheadend/install/lib/x86_64-linux-gnu -L/build/tvheadend/parts/tvheadend/install/usr/lib/x86_64-linux-gnu -L/build/tvheadend/stage/lib -L/build/tvheadend/stage/usr/lib -L/build/tvheadend/stage/lib/x86_64-linux-gnu -ldvbcsa -ldvben50221 -ldvbapi -lucsi
Build for arch: x86_64
Binaries:
Using PYTHON: python
Using GZIP: gzip
Using BZIP2: bzip2
Options:
pie yes
ccdebug no
cwc yes
capmt yes
constcw yes
linuxdvb yes
satip_server yes
satip_client yes
hdhomerun_client yes
hdhomerun_static yes
iptv yes
tsfile yes
dvbscan yes
timeshift yes
trace yes
imagecache yes
avahi yes
zlib yes
libav yes
ffmpeg_static no
libx264 yes
libx264_static yes
libx265 yes
libx265_static yes
libvpx yes
libvpx_static yes
libtheora yes
libtheora_static yes
libvorbis yes
libvorbis_static yes
libfdkaac yes
libfdkaac_static yes
nvenc yes
qsv yes
libmfx_static yes
inotify yes
epoll yes
uriparser yes
ccache no
tvhcsa yes
bundle yes
pngquant yes
dvbcsa yes
dvben50221 yes
kqueue no
dbus_1 yes
android no
tsdebug no
gtimer_check no
slow_memoryinfo no
libsystemd_daemon no
pcloud_cache no
execinfo yes
mmx yes
sse2 yes
W_unused_result yes
fdatasync yes
getloadavg yes
atomic32 yes
atomic64 yes
atomic_time_t yes
bitops64 yes
lockowner yes
qsort_r yes
gmtoff yes
recvmmsg yes
sendmmsg yes
libdvben50221 yes
ifnames yes
py_gzip yes
bin_pkg_config yes
bin_xgettext yes
bin_msgmerge yes
bin_gzip yes
bin_bzip2 yes
ssl yes
linuxdvbapi yes
upnp yes
inotify_h yes
inotify_init1 yes
linuxdvb_ca yes
epoll_create1 yes
mpegts yes
mpegts_dvb yes
Packages:
openssl 1.1.1f
zlib 1.2.11
liburiparser 0.9.3
avahi-client 0.7
libavfilter 7.57.100
libswresample 3.5.100
libavresample 4.0.0
libswscale 5.5.100
libavformat 58.29.100
libavcodec 58.54.100
libavutil 56.31.100
dbus-1 1.12.16
Installation paths:
Prefix: /snap/tvheadend/current/usr
Binaries: ${prefix}/bin
Libraries: ${prefix}/lib
Data files: ${prefix}/share
Man pages: ${datadir}/man
RE: How to enable hardware transcode in TVH snap version? - Added by saen acro over 1 year ago
Outdated version.
Also from unknown modified source code.
RE: How to enable hardware transcode in TVH snap version? - Added by Ukn Unknown over 1 year ago
It lists the HEVC VAAPI codec, but it can't work.
TVH will list all codecs that TVH knows (not all codec that are supported by your VAAPI HW and Drivers).
if you want on-the-fly hardware detection for vaapi try:
https://github.com/tvheadend/tvheadend/pull/1531
Another option that is a little harder to follow (but has all info required to make Intel GPU transcode):
https://tvheadend.org/boards/4/topics/48572?r=48662#message-48662
Follow the Gen 8/9/9.5 for your CPU (not 11+).
Note:
VAAPI transcoding require a particular set of drivers being installed. Also, Huc/GuC FW support must be enabled in your kernel.
You should try to build natively on your OS. mmarley has some distro with vaapi enabled (https://launchpad.net/~mamarley/+archive/ubuntu/tvheadend-git) - personally I never use it. In general, regular distro (ubuntu type) are not built with vaapi support.
RE: How to enable hardware transcode in TVH snap version? - Added by m h over 1 year ago
Thank you guys! The transcoding is working now.