SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Linux
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

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.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-08-2010, 09:30 PM
touchstone touchstone is offline
Sage User
 
Join Date: Mar 2008
Posts: 17
Use custom path for video encoder devices?

I am attempting to switch from running Sage on Vista to OpenSuSE 11.2 (I know Ubuntu/Debian distributions are recommended, but the reason for my shift is to consolidate onto an existing server).

My question is: How can I tell Sage to use a specific video device path for my three HD-PVRs? Each HD-PVR is assigned to a /dev/video0 to /dev/video2 block device. The order of the videoN assignments changes between boots. I have read about setting udev persistent mapping rules., but these devices are created very early in the process when usbfs runs -- before the root volume is mounted. The /dev/videoN devices already exist when udev runs.

There are static symlinks created in /dev/v4l/by-id/usb-AMBA_Hauppauge_HD_PVR_<SerialNumber> referring to the appropriate /dev/videoN device. I would like to have Sage use the /dev/v4l/by-id symlinks rather than the /dev/videoN devices. Is there a way to do this?
Reply With Quote
  #2  
Old 04-09-2010, 07:10 AM
drewg drewg is offline
Sage Icon
 
Join Date: Aug 2007
Location: Richmond, VA
Posts: 1,042
Quote:
Originally Posted by touchstone View Post
There are static symlinks created in /dev/v4l/by-id/usb-AMBA_Hauppauge_HD_PVR_<SerialNumber> referring to the appropriate /dev/videoN device. I would like to have Sage use the /dev/v4l/by-id symlinks rather than the /dev/videoN devices. Is there a way to do this?
Sage sees only the patterns that it looks for (/dev/videoN, /dev/dvb/adapterN). Before I figured out udev, I had a shell script that would run before startsage that would just make a new symlink for each device back to whatever random device name that udev gave it. So adapter10 would point to one udev-created /dev/dvb/adapterN, adapter11 would point to the next, etc. I then told sage to use the /dev/dvb/adaptor{10..12} links, rather than the randomly created /dev/dvb/adapter{0..2} native directories.

Drew
Reply With Quote
  #3  
Old 04-11-2010, 09:39 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
with udev you could manage this with the serial numbers.
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #4  
Old 04-18-2010, 03:36 PM
jpwegas jpwegas is offline
Sage Expert
 
Join Date: May 2007
Posts: 502
Quote:
Originally Posted by touchstone View Post
Each HD-PVR is assigned to a /dev/video0 to /dev/video2 block device. The order of the videoN assignments changes between boots. I have read about setting udev persistent mapping rules., but these devices are created very early in the process when usbfs runs -- before the root volume is mounted. The /dev/videoN devices already exist when udev runs.
Don't worry about what devices exist when udev runs - it's job is to remap everything anyway.

I have 3x PVR-500s (multiple videoN devices), as well as a pcHDTV 5500 and DVico FusionHDTV 5 Lite (each shows up as a dummy videoN device, which I use udev to suppress, and an adapterN device). Because I need to match each videoN device to the correct IR tuner, I needed persistent naming for each physical device.

As bcjenkins mentions, use serial numbers in your rules if possible. They are the easiest way to uniquely identify a card. Some of my cards do not have them and I had to identify them by the PCI slot they were in.

I took me a while to figure out the rules I needed, but now everything always show up in the same place.

Be sure you have the command "udevtest" (my distro didn't install it my default, IIRC), it's really handy to try things out without rebooting. Sometimes it's output is a little confusing, but it reduces how many times you have to reboot as you're testing your rules.

--John
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Video Devices available harrijay SageTV Linux 1 10-01-2008 08:56 AM
How do you specify UNC path for video storage? svemuri SageTV Linux 2 02-06-2008 04:01 AM
No Video Capture Devices Found mike1961 Hardware Support 6 01-23-2007 09:12 PM
Capture to a Specific Video Path kkoz SageTV Software 9 05-21-2006 08:18 PM
Encoder settings (custom MPEG bitrates) laurenglenn SageTV Beta Test Software 2 08-27-2003 07:06 PM


All times are GMT -6. The time now is 05:07 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.