Author Topic: Changing the directory for MythTV recordings  (Read 12664 times)

purps

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1402
  • If it ain't broke, tweak it
    • View Profile
Re: Changing the directory for MythTV recordings
« Reply #15 on: April 24, 2009, 10:03:01 pm »
Sorry, I haven't fully understood. All I care about is getting my MythTV recordings to go straight onto a secondary hard disk (and for this to remain the case after the core has been rebooted!) - regarding your wiki page, which step(s) do I need to modify/change to achieve this?

My apologies for not understanding; your help is appreciated though.
1004 RC :: looking good :: upgraded 01/04/2013
my setup :: http://wiki.linuxmce.org/index.php/User:Purps

jondecker76

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 763
    • View Profile
Re: Changing the directory for MythTV recordings
« Reply #16 on: April 24, 2009, 11:09:15 pm »
I'm about finished with implementing the new MythTV storage groups in for 0810. Here is a brief rundown of what it does:
-As usual, your public will have a videos/tv_shows_X directory
-Now, all users will also have a videos/tv_shows_X directory (so you can save to a private directory)
-Symbolic links are now created from all of the above listed directories to each of your other storage devices.
-A mythTV storage group is created for each of the above directories. This means that you will be able to record to any LMCE storage device, in either the public directory or a private user's directory.
-Each "moon" (myth front end) will only be able to record to its own tv_shows_<moon#> directories. This simplifies the complexity.. For example, in my install with 4 MD's and 1 extra storage device, and 7 users, over 90 storage groups are generated. However, from any front end, you only have storage group options for that front end. For example, from my core, I have available:
Default
LiveTV
/home/public/data/videos/tv_shows_1
user_1/public/data/videos/tv_shows_1
user_2/public/data/videos/tv_shows_1
user_3/public/data/videos/tv_shows_1
user_4/public/data/videos/tv_shows_1
user_5/public/data/videos/tv_shows_1
user_6/public/data/videos/tv_shows_1
user_7/public/data/videos/tv_shows_1
/home/public/data/videos/tv_shows_1/Software Raid 5 [153]
/user_1/public/data/videos/tv_shows_1/Software Raid 5 [153]
/user_2/public/data/videos/tv_shows_1/Software Raid 5 [153]
/user_3/public/data/videos/tv_shows_1/Software Raid 5 [153]
/user_4/public/data/videos/tv_shows_1/Software Raid 5 [153]
/user_5/public/data/videos/tv_shows_1/Software Raid 5 [153]
/user_6/public/data/videos/tv_shows_1/Software Raid 5 [153]
/user_7/public/data/videos/tv_shows_1/Software Raid 5 [153]


Now, on my next MD (device #41), its list of storage groups would be:
Default
LiveTV
/home/public/data/videos/tv_shows_41
user_1/public/data/videos/tv_shows_41
user_2/public/data/videos/tv_shows_41
user_3/public/data/videos/tv_shows_41
user_4/public/data/videos/tv_shows_41
user_5/public/data/videos/tv_shows_41
user_6/public/data/videos/tv_shows_41
user_7/public/data/videos/tv_shows_41
/home/public/data/videos/tv_shows_41/Software Raid 5 [153]
/user_1/public/data/videos/tv_shows_41/Software Raid 5 [153]
/user_2/public/data/videos/tv_shows_41/Software Raid 5 [153]
/user_3/public/data/videos/tv_shows_41/Software Raid 5 [153]
/user_4/public/data/videos/tv_shows_41/Software Raid 5 [153]
/user_5/public/data/videos/tv_shows_41/Software Raid 5 [153]
/user_6/public/data/videos/tv_shows_41/Software Raid 5 [153]
/user_7/public/data/videos/tv_shows_41/Software Raid 5 [153]

... and so on..


-Notice in the above list of Storage Groups, the special "Default" and "LiveTV" storage groups. Default will automatically be selected for new recordings, but you can change it to any other storage group. Also note that Default always points to the device with the most storage. The "LiveTV" storage group always points to the tv_shows_* dir on  your root drive, and is used just for your pvr pause/ff/rew etc. functionality


- One last new feature to 0810 is that recording will be saved with a meaningful filename instead of 3458_200904281700.mpg. The title and subtitle are instead used to make a filename like "Mythbusters - Alaska Myths.mpg", and the lmce database and myth database are sync'd to this so that videos are still available from mythweb, etc.


=========================================

Regarding 0710, if you really wanted to record to a different directory and do it the right way, you would have to compile your own MythTV Plugin. More specifically, modify MythTV_PlugIn::SetPaths() to set your preferred paths and database settings. Then just recompile a new MythTV_Plugin, put it on your core, and it would work fine.

purps

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1402
  • If it ain't broke, tweak it
    • View Profile
Re: Changing the directory for MythTV recordings
« Reply #17 on: April 25, 2009, 12:29:05 am »
Regarding 0710, if you really wanted to record to a different directory and do it the right way, you would have to compile your own MythTV Plugin. More specifically, modify MythTV_PlugIn::SetPaths() to set your preferred paths and database settings. Then just recompile a new MythTV_Plugin, put it on your core, and it would work fine.

I wouldn't have a clue where to start. Thanks anyway.
1004 RC :: looking good :: upgraded 01/04/2013
my setup :: http://wiki.linuxmce.org/index.php/User:Purps

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Changing the directory for MythTV recordings
« Reply #18 on: April 25, 2009, 03:39:05 am »
Hate to tell you, donpaul,

I know this code a lot better than you.

Your work around is NOT a stable solution.

-Thom

<Moderated!>
« Last Edit: April 25, 2009, 03:56:48 am by colinjones »