Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Dev

Get sourceinput's tuned channel?

 

 

MythTV dev RSS feed   Index | Next | Previous | View Threaded


skerit at kipdola

Nov 14, 2008, 12:30 PM

Post #1 of 3 (893 views)
Permalink
Get sourceinput's tuned channel?

Hi everyone,

Is there a function in MythTV which can retrieve the current chanid a
sourceinput is tuned on?


As some may have seen on mythtv-users, I'm no developer.
But I do want to fix a certain bug we're having with LiveTV.

The source files can be a bit overwhelming, though. (It's comparable to
the first time I tried to install an RPM in Mandrake, without a package
management system, and got stuck in dependency hell.)

But I'm trying!

I've just been staring at the code for a few hours now, I could use a
push :)

Greetings,
Jelle De Loecker

_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


nigel at ind

Nov 19, 2008, 11:26 PM

Post #2 of 3 (798 views)
Permalink
Re: Get sourceinput's tuned channel? [In reply to]

> Is there a function in MythTV which can retrieve the current chanid a
> sourceinput is tuned on?

Not that I know of
('though I'm not an expert on the TV stuff).


1) If you are just doing debugging, the default
output from mythbackend contains something like:

2008-11-20 18:14:08.276 MainServer::ANN Playback
2008-11-20 18:14:08.277 adding: macaque.ind.tansu.com.au as a client
(events: 0)
2008-11-20 18:14:08.279 TVRec(4): Changing from None to WatchingLiveTV
2008-11-20 18:14:08.284 TVRec(4): HW Tuner: 4->4

Sadly, the output doesn't list the channel
until you stop the LiveTV session:

2008-11-20 18:19:23.895 TVRec(4): Changing from WatchingLiveTV to None
2008-11-20 18:19:24.163 Finished recording Seven News: channel 1060


but if you need to know the channel at the time,
have a look at the 'tvchain' table in the database


2) You could add some debug in the file
libs/libmythtv/tv_rec.cpp, method
TVRec::TuningCheckForHWChange(),
to also print out channum?

--
Nigel Pearson, nigel [at] ind|"Things you own |
Telstra Net. Eng., Sydney, Australia | end up owning you"|
Office: 9202 3900 Fax: 9212 6348 | Tyler, |
Mobile: 0408 664435 Home: 9792 6998 | Fight Club |

_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


skerit at kipdola

Nov 23, 2008, 1:45 PM

Post #3 of 3 (722 views)
Permalink
Re: Get sourceinput's tuned channel? [In reply to]

Op donderdag 20-11-2008 om 18:26 uur [tijdzone +1100], schreef Nigel
Pearson:
> > Is there a function in MythTV which can retrieve the current chanid a
> > sourceinput is tuned on?
>
> Not that I know of
> ('though I'm not an expert on the TV stuff).

>
> but if you need to know the channel at the time,
> have a look at the 'tvchain' table in the database

Ah, I'll take a look at that tvchain table, then!

Although I don't think it contains any information about on what card
it's tuned. Sure, it has an "input" field, but that's not really telling
much.

I'm looking for a better way for MythTV to detect in-use cards (as it's
currently ignoring multirec, I believe it just detects them as fully
free cards)

Greetings,
Jelle De Loecker

_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

MythTV dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.