I've been recording TV using my Pi 4 for about two years. It mostly worked on the 32-bit version of Raspberry Pi OS. But I decided I had to try the 64-bit version, from the Pi Imager. It works this way too...for a few hours at least. After the Pi is online for "awhile", say 24 hours, attempts to record return "Device or resource busy".
I do recording the manual way. Basically.:
Code: Select all
azap -a 0 -c $HOME/.azap/channels.conf -r channel_name &
mbuffer -i/dev/dvb/adapter0/dvr0 -m10M -L -q > "$FILE_NAME"
Though I put it in a nice script. Does it help to mention $FILE_NAME is a file in /tmp, and /tmp is a ramdisk? That's why I got a Pi4 8GB.
Anyway, it works for the first few (I don't know how many) hours after a reboot. But let it sit overnight, try a new recording, and for no reason I can see it says:
Code: Select all
mbuffer: fatal: could not open input file '/dev/dvb/adapter0/dvr0': Device or resource busy
`lsof | grep dvb` returns nothing. I see no errors in /var/log/syslog for the recording time frame. Any ideas?