[mythtv-users] input sources config

Joseph A. Caputo jcaputo1 at comcast.net
Tue Dec 9 16:29:17 EST 2003


On Tuesday 09 December 2003 15:49, Brent Hills wrote:
> Hello,
>
> I was wondering about how I should set up myth to allow recording
> videos from my VCR.  I have it connected to the component video of my
> V4L card. The tuner connection on the V4L card is my normal input.
>
> I am unsure how I should match the input connections to allow
> recording from the VCR without conflicting with the regular TV stuff.
>  The documentation warns about matching my normal xmlTV input source
> against it to prevent myth from trying to record television shows via
> this input.
>
> What is the best way to create an input source that will allow me to
> manually record videos and not conflict with the existing Tuner input
> and xmlTV source?
>
> I don't mind manipulating the databases directly if required.
>
> Thanks for your time,
> Brent Hills

I think the following will work:

Run the backend setup.  Answer 'no' to both questions.
Under 'Video Sources', create a new video source 'VCR'.  Use tv_grab_na 
as the grabber; we'll have to remove that later.  Leave the zip code 
blank and just press 'Enter'.  You'll get an error message in the 
terminal, just ignore it.  The video source has been created.  Now go 
into 'Input Connections' and bind the new video source to the 
appropriate input (SVideo, Composite0, etc).  Exit the setup program.

Do *NOT* run mythfilldatabase at this time.

Now fire up mysql and do a little editing.
In the 'videosource' table, set the xmltvgrabber for your new video 
source to NULL.
Insert a row into the channel table.  The important fields are chanid, 
channum & sourceid.

channum can be arbitrary (I think... I'd use a unique number just to be 
safe)
sourceid is the sourceid of your new videosource from the 'videosource' 
table.
chanid is (sourceid * 1000) + channum

So, if your new video source has a sourceid of '2' and your new channel 
has channum 130, then your new channel would have sourceid = 2 and 
chanid = 2130.

That should be it!

You can, of course, do everything in mysql without running the setup 
program, but I find it easier to set up the input connections using the 
GUI so I don't have to know which cardinputid corresponds to "S-Video".

Good luck.

-JAC



More information about the mythtv-users mailing list