Add option to stream recordings from sbe to mbe for storage

What would you like to see in MythTV and why? Find others who might want to help implement your ideas!
Forum rules
Please be reasonable and positive with your feature requests, remember that all contributions to MythTV are by volunteers in their spare time. MythTV won't support piracy in any form, including torrents and use of soft cams, so to avoid embarrassment please do not ask.

* One suggestion per thread please. Do not post new suggestions in replies. *
Post Reply
eypo
Newcomer
Posts: 4
Joined: Sun Jan 22, 2017 4:06 pm
Spain

Add option to stream recordings from sbe to mbe for storage

Post by eypo »

Hi.

Let me describe my mythtv setup.

- Master backend, database and lots of storage on my HP Microserver running 24/7. No tuners in it.
- Secondary diskless backend (mounting NFS root filesystem from Microserver) ,with two dual DVB-T PCI tuners. Frontend also installed.
- Several frontends on different computers.
Mythtv 0.29 everywhere.

At this point, I have two options for storage groups. I could:

- Option 1. share my mbe storage group over NFS and have it mounted on sbe, Those recordings store the hostname of the backend they were recorded on, so if I want to watch them when my sbe is off, mbe will turn it on just to let sbe retrieve the recording from mbe nfs share.

- Option 2. just let sbe store things on its (NFS) local filesystem. Use https://www.mythtv.org/wiki/MoveRecording.sh to move the recordings to mbe, and deal with database changes (as the script above doesn't do it). The NFS root should be mounted read-write and have enough free space.

What I'm proposing is to add an option to make sbe send the recording over the net to the mbe (maybe using netcat, for example), and let the mbe deal with storage and database.

Is this feasible?

Thanks in advance
User avatar
dizygotheca
Developer
Posts: 267
Joined: Wed Sep 03, 2014 9:02 am
Great Britain

Re: Add option to stream recordings from sbe to mbe for stor

Post by dizygotheca »

The "Master Backend Override" setting is intended for your use case in option 1. https://www.mythtv.org/wiki/Setup_Gener ... s_Settings
When set, the mbe searches its SGs first and only reverts to the sbe (recording host) if it fails. As long as you're sharing SGs, the sbe should never be turned on just to play a file.
I've never tried it though.
Post Reply