Hey everyone. Got a slightly odd use case here that I used to have working a couple years ago, but now I can't seems to replicate it. I am using tvheadend to handle telling a RTL-SDR which frequency to tune to so that I can stream live radio through my jellyfin server.
I am using tvheadend through docker. Here is my compose:
services:
tvheadend:
image: lscr.io/linuxserver/tvheadend:latest
# image: lscr.io/linuxserver/tvheadend:version-653bd040
container_name: tvheadend
environment:
- PUID=1000
- PGID=1000
- TZ=US/Central
- RUN_OPTS= #optional
volumes:
- /mnt/Archive/Media/config/tvheadend-config:/config
- /mnt/Archive/Media/data/media/tv-recordings:/recordings
ports:
- 9981:9981
- 9982:9982
#devices:
#- /dev/dri:/dev/dri #optional
#- /dev/dvb:/dev/dvb #optional
restart: always
networks:
dockge_default:
external: true
The commented out image tag is roughly where I think it was when I last had this working. I have the RTL-SDR set up as a network. Nothing special there. An example for one of the mux URLs: pipe:///usr/bin/ffmpeg -i http://10.0.0.26:8002/106100000/1 -c:a ac3 -f mpegts -mpegts_service_type digital_radio pipe:1. I was able to confirm that the issue starts with the pipe and tvheadend by getting ffmpeg -i http://10.0.0.26:8002/106100000/1 -c:a ac3 -f mpegts -mpegts_service_type digital_radio pipe:1 | ffplay -i - to play the station correctly. The program handling the RTL-SDR to HTTP step is AlbrechtL/rtl_fm_streamer. Which I have running with rtl_fm_streamer fm -s 200k -E deemp -P 8002.
The whole stack works great except when I ask VLC to play the tvheadend channel I get nothing or little sharp snippets of sound. Any suggestions are welcome. I will admit that I am not fully versed in tvheadend so there might be something really obvious that I am missing.