Setting Recording System Path
Added by stepher ru about 8 years ago
I changed the recording path for tvh (/home/osmc/TV Shows) and that worked fine. The problem now is that once tvh has finished the recording, the file gets listed under "Failed Recording" and that the "File is missing".
Is there something I need to do so that tvh finds the recording where it was told to record it?
I also have the problem that OSMC can't see anyof the recorded programs when I click on "TV Shows", but that's a question for the OSMC board (or, maybe kodi).
Thx and cheers....
Replies (4)
RE: Setting Recording System Path - Added by Robert Cameron about 8 years ago
Does the user that Tvheadend runs as have permission read and write that location?
RE: Setting Recording System Path - Added by stepher ru about 8 years ago
Sorry...forgot about the RW permissions...
TV Shows permsisions: 0755
Permissions...I always forget about that....
Under /home/osmc/ there are 3 tvheadend directories: ~/.hts/tvheadend, ~/tvheadend and ~/tvheadend/tvheadend (The 1st seems to be a subset of the 2nd or 3rd and, while the 2nd and 3rd are similar, there seems to be significant differences).
Directory/files owner:groups
/.hts/tvheadend - all are osmc:video except for a directory accesscontrol which is osmc:osmc
/tvheadend - all are osmc:osmc
~/tvheadend/tvheadend - all are osmc:osmc
Where I'm telling tvh to put recorded tv programs:
~/TV Show - osmc:osmc
tvheadend user name is osmc, if that means anything. But I'm not really clear what the tvheadend user is except from what I see in the "ls -al" readout.
So, anything stand out on this?
Isn't that overkill on the tvheadend directories (also saw a file named tvheadend in /usr/bin but I figure that's not really related to this). I thought I read somewhere someone suggesting that the ~/.hts should be deleted because it wasn't needed. Is that true?
Thx and cheers....
RE: Setting Recording System Path - Added by Robert Cameron about 8 years ago
That could be, but it does answer who is running Tvheadend. Try this:ps aux | grep tvheadend | grep -v grep
The result of that will be all processes that include tvheadend
, whether as the program name, user, or whatever. The second column (if I'm remembering right off the top of my head) will be the user who owns the process: this is the user that needs to own the directories where you are recording to.
RE: Setting Recording System Path - Added by stepher ru about 8 years ago
Here are the results:
osmc 562 0.5 9.7 339484 73408 ? Ssl 17:49 0:58 /usr/bin/tvheadend -f -p /run/tvheadend.pid -C -u osmc -g video
Looks like owner:group is osmc:video if I've read that right...
1 thing I didn't mention is that before I changed the PVR record directory target, tvh had no problem seeing the directory and the files it put there. I want to say the default directory was /home/osmc, but I can't be sure. When I changed it to suit my setup, that's when things went a bit bonkers, so to speak
One other question that may be obliquely related to this....I discovered kodi has a fairly specific set of requirements for the file name (and directory structure) for recorded tv programs. In order to have files saved that way, is that something I can do in tvh or do I need to work from the zap2xml direction on this? Or do I need to set up some kind of script to manage it?
I know there's a Filename Options under Configuration/Digital Video Recorder Options as well as a Post-processor Command box under DVR Behavior (I've also used the zap2xml config in OSMC/Kodi directly as to what should be in the listing, if that is even part of this). Can either 1 of these be used to set the filename parameters?
Thx and cheers....
Robert Cameron wrote:
That could be, but it does answer who is running Tvheadend. Try this:
ps aux | grep tvheadend | grep -v grep
The result of that will be all processes that includetvheadend
, whether as the program name, user, or whatever. The second column (if I'm remembering right off the top of my head) will be the user who owns the process: this is the user that needs to own the directories where you are recording to.