Hi Pete,
Yes, I actually tried all your suggestions even before your reply except removing PUID and PGID. Removing those did not work as well.
I went to check the permissions of the temp folder as well as media folder. Changed all permissions to user (some were on root) but no change as well. The error persists..
Im using VLC for long time now and when I need to record I manually set it, as I record on regular basis on certain days of the week so its not a big deal. Having something like your project would be a relief and would allow me to maybe record even more...
If you have time it would be great to extend your project further and possibly make it work for different operating systems.
Thank you in advance and regards from Croatia!