LinHES Forums
http://forum.linhes.org/

Choose tuner for recording??
http://forum.linhes.org/viewtopic.php?f=17&t=6868
Page 1 of 1

Author:  graphixx [ Thu Nov 10, 2005 2:50 pm ]
Post subject:  Choose tuner for recording??

I have 2 tuners on my mythbox. Tuner#1 is the default and Tuner#2 is connected via the cablebox.

I like having Tuner#1 as the default this way I can record and still watch cable. However I would like to record HBO etc. occasionaly but the only way I see to do this is to start a recording for Tuner#1 and then Tuner#2 can be used. I dont think input priorities will help because I normally do not want to record with Tuner#2 (only for stations needing the cable box or multiple recordings at the same time).

Does anyone know of a way to "force" a particular tuner to a recording? Is a script possible that would manually change the cardID in the database or something similiar?
Thanks!

Author:  Xsecrets [ Thu Nov 10, 2005 4:21 pm ]
Post subject: 

well if you setup your video sources properly is should "know" that tuner1 can't record from certian stations and tuner2 can. For instance I have comcast cable, and I setup two video sources one for cable and one for digital cable on zap2it and associated them with the proper tuners.

Author:  graphixx [ Thu Nov 10, 2005 5:05 pm ]
Post subject: 

I tried to setup two video sources and associate the higher channels to the new source but it still recorded using the 1st default tuner. That is pretty much all I did but now I am guessing I should remove those higher or "cablebox only" channels from the default source completely. Is this correct?

Thanks Xsecrets for the info.

Author:  pkscout [ Thu Nov 10, 2005 8:07 pm ]
Post subject: 

graphixx wrote:
I tried to setup two video sources and associate the higher channels to the new source but it still recorded using the 1st default tuner. That is pretty much all I did but now I am guessing I should remove those higher or "cablebox only" channels from the default source completely. Is this correct?


Removing the channels from tuner 1 should do it. You really only want to list channels on a tuner if you can actually recieve them on that tuner. Otherwise you'll run into situations just like yours.

Author:  graphixx [ Thu Nov 10, 2005 9:10 pm ]
Post subject: 

Thanks.

Author:  MisoSoup777 [ Mon Feb 27, 2006 9:50 pm ]
Post subject: 

OK, so I wanna expand on this a bit... I have the following setup:

PVR-250: S-Video to Cable Box with IRBlaster (tuner 0)
PVR-250: Analog Cable (tuner 1)
Firewire: from Mot 6200 (tuner 2).

Tuner 0 and 2 use a Zap2it lineup called Digital Cable. Tuner 1 uses a lineup called (amazingly) analog cable. There are about a dozen HD channels that are recordable ONLY over firewire from the HD box but the tuner 0 WILL tune the channel (just no picture). Zap2it won't allow me to create a "digital cable lineup 2" (so far as I can tell), so I can't remove the HD channels from Tuner 0. How do I force the myth box to use tuner 2 to record HD channels and keep tuner 0 from recording those same channels?

Whew, I hope someone can follow that mess...

thx

Author:  tjc [ Mon Feb 27, 2006 10:40 pm ]
Post subject: 

I have to play games with the DB to merge two listing sources into one, however it strikes me that cloning one source into two is probably even easier. Then you can have seperate sources for each tuner based on the seperate channel sets...

The tables you'll have to touch are:
    channel - once
    cardinput - once

    program - ongoing
    credits - ongoing
    programgenres - ongoing
    programrating - ongoing

Basically each sourceid in the channel table has it's own range of 1000 chanid's. So to clone the channel lineup for say sourceid 2 to source 3, write a script to do something like:
Code:
insert into channel
(select 3000 + (chanid % 1000), channum, freqid, 3, callsign, name, icon,
  finetune, videofilters, xmltvid, recpriority, contrast, brightness, colour, hue,
  tvformat, commfree, visible, outputfilters, useonairguide, mplexid,
  serviceid, atscsrcid)
from channel where sourceid = 2 and channum not in (999, 999, 999);

The 999's are a place holder for the 10 channels you want to exclude. You'll need to do something similar for cardinput, although with just one record there it maybe easier to write it as a straight update

Finally you'll need a customized mythfilldatabase wrapper which A) runs mytfilldatabase as usual, B) clears the ongoing data for source 3 then clones the program data for each of the channels in source 2 which are also in source 3 (you can use the same "not in" syntax to avoid a join), C) run /usr/bin/mythbackend --resched to make sure the scheduler notices the new data.

BTW - Always make a good backup before testing something like this. ;-)

Author:  MisoSoup777 [ Tue Feb 28, 2006 12:56 am ]
Post subject: 

I was thinking that something along these lines would be necessary. I guess I was just hoping that I was missing something...

I'll have to play with this. It's a good chance to brush up on my SQL I guess...



tjc wrote:
I have to play games with the DB to merge two listing sources into one, however it strikes me that cloning one source into two is probably even easier. Then you can have seperate sources for each tuner based on the seperate channel sets...

The tables you'll have to touch are:
    channel - once
    cardinput - once

    program - ongoing
    credits - ongoing
    programgenres - ongoing
    programrating - ongoing
Basically each sourceid in the channel table has it's own range of 1000 chanid's. So to clone the channel lineup for say sourceid 2 to source 3, write a script to do something like:
Code:
insert into channel
(select 3000 + (chanid % 1000), channum, freqid, 3, callsign, name, icon,
  finetune, videofilters, xmltvid, recpriority, contrast, brightness, colour, hue,
  tvformat, commfree, visible, outputfilters, useonairguide, mplexid,
  serviceid, atscsrcid)
from channel where sourceid = 2 and channum not in (999, 999, 999);

The 999's are a place holder for the 10 channels you want to exclude. You'll need to do something similar for cardinput, although with just one record there it maybe easier to write it as a straight update

Finally you'll need a customized mythfilldatabase wrapper which A) runs mytfilldatabase as usual, B) clears the ongoing data for source 3 then clones the program data for each of the channels in source 2 which are also in source 3 (you can use the same "not in" syntax to avoid a join), C) run /usr/bin/mythbackend --resched to make sure the scheduler notices the new data.

BTW - Always make a good backup before testing something like this. ;-)

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/