|
SageTV Linux Discussion related to the SageTV Media Center for Linux. Questions, issues, problems, suggestions, etc. relating to the SageTV Linux should be posted here. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Does SageTV create a zero length recording file before recording starts?
I'm testing my Web feed encoder network encoder on linux.
WFE runs as under my account. It spawns VLC sessions than also run under my account. But SageTV runs as root. And when a tune a zero length file is created owned by root and VLC cannot overwrite it. Can this feature be selectively turned off? (yes I tried running WFE and VLC as root but VLC refuses to run as root and does nothing) Michael |
#2
|
|||
|
|||
VLC as root
I just wrote a small script to launch VLC from root but run as my user account. (Not really recommended because of security and storing your user account password in plain text, but ...)
#!/bin/bash cd /usr/bin echo password | su yourlogin -c ./vlc replace password and yourlogin with your user account information, save that as a shell script and point WFE at your script to start VLC Seems as though it might work if WFE is run as root. I see there are patches to allow VLC to run as root also. No more time to play right now though. Good luck! |
#3
|
||||
|
||||
Michael,
I think you will find some users run sage as root and others do not, so to ensure compatibility you must be able to deal with both situations. In my CommercialDetector plugin I use "sudo" to make sure the spawned process runs as the proper user. Tom
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
#4
|
|||
|
|||
Quote:
FWIW, I don't run SageTV as root. I don't trust binary blobs running as root.. I created a "sagetv" user for it. Drew
__________________
Server HW: AMD Ryzen Threadripper 2990WX 32-Core Server SW: FreeBSD-current, ZFS, linux-oracle-jdk1.8.0, sagetv-server_9.2.2_amd64 Tuner HW: HDHR Client: Nvidia Shield (HD300, HD100 in storage) |
#5
|
|||
|
|||
Quote:
I believe that VLC will not run as root. There are long trails in the VLC forum with VLC developers arguing with users and basically saying their not going to allow VLC to run as root and all other daemons that run as root are wrong and should change. Michael |
#6
|
|||
|
|||
Quote:
Drew
__________________
Server HW: AMD Ryzen Threadripper 2990WX 32-Core Server SW: FreeBSD-current, ZFS, linux-oracle-jdk1.8.0, sagetv-server_9.2.2_amd64 Tuner HW: HDHR Client: Nvidia Shield (HD300, HD100 in storage) |
#7
|
|||
|
|||
In answer to my own original question.
I disabled my encoder so vlc never runs SageTV is creating an mpg file for the recording - owned by root with: -rw-r--r-- permissions. So VLC running as vlc-wrapper cannot access it. vlcs vlc-wrapper process runs as root but works as another user so it tries to access a root file as "michael" and fails. So I could try chmod the fille to open up access before I launch VLC Unless anyone knows of any SageTV hidden settings. Michael |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Any way to show length of recording? | TorontoSage | SageMC Custom Interface | 4 | 03-24-2009 02:07 PM |
Once recording starts, can not change tuner even if you delete recording | larryf | SageTV Software | 0 | 11-16-2008 07:59 PM |
Padding a Recording After the Recording Starts | Slugger | SageTV Software | 5 | 03-21-2007 03:17 AM |
SageTV KickOff Program When Recording Starts | joe123 | SageTV Customizations | 0 | 02-01-2007 11:54 AM |
SageTV Start SA Automatically when a recording starts? | joe123 | SageTV Customizations | 8 | 01-17-2007 05:00 PM |