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

Mailing List Archive: MythTV: Users

New channels not inserted for firewire

 

 

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


curtis at stanfordcomputing

Aug 25, 2007, 7:42 PM

Post #1 of 5 (2196 views)
Permalink
New channels not inserted for firewire

When switching to SD, I accidentally deleted all my channels. I could
not for the life of me get the 'Fetch Channel' feature in mythtv-
setup to work or the mythfilldatabase --do-channel-updates to work.
After looking at the code in datadirect.cpp at line 733, it calls
update_channel_basic using the is_encoder value, which is false for a
firewire connection. As a result, update_channel_basic will never
insert a channel. When I commented this out, it worked fine.

I may be reading it wrong, but I can't see how a new channel would
ever get inserted for a firewire video source.

Thanks

Curtis

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


danielk at cuymedia

Aug 25, 2007, 9:15 PM

Post #2 of 5 (2102 views)
Permalink
Re: New channels not inserted for firewire [In reply to]

On Sat, 2007-08-25 at 20:42 -0600, Curtis Stanford wrote:
> When switching to SD, I accidentally deleted all my channels. I could
> not for the life of me get the 'Fetch Channel' feature in mythtv-
> setup to work or the mythfilldatabase --do-channel-updates to work.
> After looking at the code in datadirect.cpp at line 733, it calls
> update_channel_basic using the is_encoder value, which is false for a
> firewire connection. As a result, update_channel_basic will never
> insert a channel. When I commented this out, it worked fine.
>
> I may be reading it wrong, but I can't see how a new channel would
> ever get inserted for a firewire video source.

Have you tried the new "--do-not-filter-new-channels" mythfilldatabase
option to get the channels inserted?

Firewire is an odd case because it's digital but it doesn't have a
channel scanner*. It should probably be treated as an analog encoder
until we have a channel scanner for it. I added the
--do-not-filter-new-channels option to deal cases like this until
I can write up something better.

* It still doesn't have a channel scanner right? I began writing one,
but I don't remember finishing it. The scanner figured out all the
channels that were 5C encrypted and left those out of the lineup.

-- Daniel

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


curtis at stanfordcomputing

Aug 26, 2007, 6:41 AM

Post #3 of 5 (2073 views)
Permalink
Re: New channels not inserted for firewire [In reply to]

On Aug 25, 2007, at 10:15 PM, Daniel Kristjansson wrote:

> On Sat, 2007-08-25 at 20:42 -0600, Curtis Stanford wrote:
>> When switching to SD, I accidentally deleted all my channels. I could
>> not for the life of me get the 'Fetch Channel' feature in mythtv-
>> setup to work or the mythfilldatabase --do-channel-updates to work.
>> After looking at the code in datadirect.cpp at line 733, it calls
>> update_channel_basic using the is_encoder value, which is false for a
>> firewire connection. As a result, update_channel_basic will never
>> insert a channel. When I commented this out, it worked fine.
>>
>> I may be reading it wrong, but I can't see how a new channel would
>> ever get inserted for a firewire video source.
>
> Have you tried the new "--do-not-filter-new-channels" mythfilldatabase
> option to get the channels inserted?
>
> Firewire is an odd case because it's digital but it doesn't have a
> channel scanner*. It should probably be treated as an analog encoder
> until we have a channel scanner for it. I added the
> --do-not-filter-new-channels option to deal cases like this until
> I can write up something better.
>
> * It still doesn't have a channel scanner right? I began writing one,
> but I don't remember finishing it. The scanner figured out all the
> channels that were 5C encrypted and left those out of the lineup.
>

No, it doesn't have a channel scanner although that would be terribly
useful. :)

The --do-not-filter-channels option doesn't work either. I tried
deleting a channel and
ran 'mythfilldatabase --only-update-channels --do-channel-updates --
do-not-filter-new-channels'
and it didn't insert the missing channel. It seems to be this
is_encoder check that stops
it from creating any channels because is_encoder is always false for
firewire.

It did work last time I set up my zap2it account (quite a while ago).

Thanks Daniel,

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


danielk at cuymedia

Aug 26, 2007, 8:39 AM

Post #4 of 5 (2089 views)
Permalink
Re: New channels not inserted for firewire [In reply to]

On Sun, 2007-08-26 at 07:41 -0600, Curtis Stanford wrote:
> The --do-not-filter-channels option doesn't work either. I tried
> deleting a channel and
> ran 'mythfilldatabase --only-update-channels --do-channel-updates --
> do-not-filter-new-channels'
> and it didn't insert the missing channel. It seems to be this
> is_encoder check that stops
> it from creating any channels because is_encoder is always false for
> firewire.
>
> It did work last time I set up my zap2it account (quite a while ago).

Hmm, this is not good. Can you try disconnecting the Video Source from
the firewire card in the Input Connections editor and then running that
same mythfilldatabase command? I'll try to debug this tonight or
tomorrow morning either way.

I added a little reminder to myself to do this to the ticket at:
http://svn.mythtv.org/trac/ticket/3842
If you find a workaround before I get a chance to look at this
please post it there.

-- Daniel


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


curtis at stanfordcomputing

Aug 26, 2007, 5:18 PM

Post #5 of 5 (2083 views)
Permalink
Re: New channels not inserted for firewire [In reply to]

On Aug 26, 2007, at 9:39 AM, Daniel Kristjansson wrote:

> On Sun, 2007-08-26 at 07:41 -0600, Curtis Stanford wrote:
>> The --do-not-filter-channels option doesn't work either.
>>
> Hmm, this is not good. Can you try disconnecting the Video Source from
> the firewire card in the Input Connections editor and then running
> that
> same mythfilldatabase command? I'll try to debug this tonight or
> tomorrow morning either way.
>
> I added a little reminder to myself to do this to the ticket at:
> http://svn.mythtv.org/trac/ticket/3842
> If you find a workaround before I get a chance to look at this
> please post it there.

Yes, it does work when I disconnect as you instructed.

As I mentioned, my workaround was to modify the code in
datadirect.cpp to
ignore the is_encoder flag. The disconnect thing is a good workaround
too, I guess.

Curtis

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

MythTV users 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.