Have you tried nextpvr? not sure if it's any good or not but it seems to be actively supported. Maybe somebody here knows if it's any good or not.
I've tried nextpvr in my RPi4 with libreelec.
As i have docker installed is wuite easy, just need to add privileges and devi /dev/dvb/adapter0, and adjust directories.
But ...... NEXTPVR fails the transcoding in RPI devices.
AND ... does not support encrypted channels.
Tvheadend, even with not much updates in the past years is still the best pvr backend.
TRANSCODING WITH TVHEADEND AND FFMPEG
About some issues, some people asked some threads above, regarding transcoding with tvheadend.
I use tvheadend nighlty build (4.3 beta) which support spawning.
I'm using ffmpeg compiled with omx installed in libreelec.
for reference I share my ffmpeg transcoding for tvheanded.
I call it "transcode-omx". It uses about 60% of RPi4 total performance:
{path_ffmpeg}/ffmpeg -loglevel quiet -i pipe:0 -vf scale=640:360 -vcodec h264_omx -vb 512k -bufsize 2048k -g 100 -af "aresample=async=1:first_pts=0" -acodec aac -ab 128k -f mpegts pipe:1
Just add-it "configuration/ stream" in tvheaded webui.
some additional tweaks I use for it in the attached picture.
This configuration summary:
- codec omx from Raspberry Pi hardware
- output video 640x360,
- ar 16:9
- video bitrate 512 kbps
- audio bitrate 128 kbps
- audio resync (to handle some drop frames that could happen during reception of channels).
This profile is great for watching tv channels in a rmeote smartphone connected to tvheadend running in libreelec.
This profile can also be applied to record programmes with lower bitrates