Paul Sijben wrote: > >> Do you keep track of the VideoGroup index? IFAICS this is all you need, >> with this you have the video device and hence the lockfile name. >> >> > > actually I keep track of the device too. So returning the vdev chosen > back to the record server was no problem
You only need the index, vg[index].vdev gives you the video device. >>>> Also you should be aware that it may not be a desirable feature if two >>>> cards come from two different sources, such as Analogue and DVB-S, so >>>> there needs to be a way to turn it off. I think using the record_group >>>> is the best way. >>>> >>>> >>>> >>> You may be right but at this point I am confused. Could you explain to >>> me the current definition of record_group (and the context of >>> video_groups) and in the in the case of a setup where one may have a >>> PVR-500, used for parallel recording on analogue and a DVB card. >>> >> >> The record_group is an index into the VideoGroup list, starting at 0. If >> the record_group is not None then it uses this VideoGroup to record. The >> first group, by default, is the play-back group but this can be >> overridden in the TV_CHANNELS list. >> >> >>> An example of video_groups in that setting would also help me a lot I think >>> >> >> I gave you one, but here is again, this time adjusted. >> > > the reason I asked was because I got really confused when you threw in > the DVB card too. I agree it is a reasonable scenario, I was just > wondering how you propose to describe that. Almost the same, just that group_type changes to dvb (I think) and record_group are both set to none. I don't know anything about DVB as I don't have or use them but I know it's possible as dischi uses dvb. > >> VideoGroup(vdev = '/dev/video0', >> vvbi = '/dev/vbi0', >> adev = '/dev/adsp', >> input_type = 'tuner', >> input_num = 0, >> tuner_norm = CONF.tv, >> tuner_chanlist = CONF.chanlist, >> desc = 'PVR-500 Play (2nd Record) Group', >> group_type = 'ivtv', >> record_group = 1), >> VideoGroup(vdev = '/dev/video1', >> vvbi = '/dev/vbi1', >> adev = '/dev/adsp', >> input_type = 'tuner', >> input_num = 0, >> tuner_norm = CONF.tv, >> tuner_chanlist = CONF.chanlist, >> desc = 'PVR-500 Record Group', >> group_type = 'ivtv', >> record_group = 0), >> >> VideoGroup[0] is the play-back group, the record_group points to >> VideoGroup[1] and in this example it points back to the first group (At >> the moment it would be None) >> >> Clearer? >> Duncan ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Freevo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freevo-users
