LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Freevo, xawtv, anything to watch TV on Linux (and get xmlTV working)? (https://www.linuxquestions.org/questions/linux-software-2/freevo-xawtv-anything-to-watch-tv-on-linux-and-get-xmltv-working-47935/)

MasterC 03-02-2003 06:19 PM

Freevo, xawtv, anything to watch TV on Linux (and get xmlTV working)?
 
Hi there! I've been dorkin with this for quite some time now, and just when there seems to be a light at the end of the tunnel, bam! It's a flashlight. Anyway...

I am trying to get xmlTV working. I am in a world of perl modules. Currently I am getting trapped from what seems to be a loop. Here's the deal:

From the xmlTV install:
Code:

The system requirements are perl 5.005_03 or later, and a few Perl
modules.  You will be asked about some optional components; if you
choose not to install them then there are fewer dependencies.  The
full list of needed modules is:

XML::Twig
XML::Writer
Date::Manip
LWP

HTML::Parser      (if you choose to install tv_grab_na)
HTML::TableExtract (if you choose to install tv_grab_sn)
HTML::TreeBuilder  (if you choose to install tv_grab_fi)
Tk::TableMatrix    (if you choose to install tv_check)
XML::Simple        (if you choose to install tv_check)
CGI                (if you choose to install tv_pick_cgi)

So like a good little linuxer not knowing jack about jack, I just followed the directions blindly and went to google and freshmeat to find the packages listed (not HTML::TableExtract HTML::TreeBuilder Tk::TableMatrix XML::Simple or CGI since I didn't install those things associated with them). I seemed to have gotten them all, and installed their dependencies and finally themselves. However, when I fire up LWP to install it, I get:
Code:

bash-2.05a# perl Makefile.PL

This package comes with some sample programs that I can try
to install in /usr/bin.

  Note that you can avoid these questions by passing
  the '-n' option to 'Makefile.PL'.

Do you want to install lwp-request? [y]
Do you want to install lwp-mirror? [y]
Do you want to install lwp-rget? [y]
Do you want to install lwp-download? [y]

The lwp-request program will use the name it is invoked with to
determine what HTTP method to use.  I can set up alias for the most
common HTTP methods.  These alias are also installed in
/usr/bin.

Do you want to install the GET alias? [y]
Do you want to install the HEAD alias? [y]
Do you want to install the POST alias? [y]

Checking for URI........... failed
Can't locate URI.pm in @INC (@INC contains: /usr/lib/perl5/i386-linux /usr/lib/perl5 /usr/lib/perl5/site_perl/i386-linux /usr/lib/perl5/site_perl /usr/lib/perl5/site_perl .) at Makefile.PL line 142, <STDIN> line 7.

The URI module must be installed.  WWW without URIs would not
be that great :-)

Checking for HTML::Parser.. failed
Can't locate HTML/HeadParser.pm in @INC (@INC contains: /usr/lib/perl5/i386-linux /usr/lib/perl5 /usr/lib/perl5/site_perl/i386-linux /usr/lib/perl5/site_perl /usr/lib/perl5/site_perl .) at Makefile.PL line 160, <STDIN> line 7.

The HTML::Parser is needed to extract correct base URI information from
HTML so that we can resolve relative links correctly.  The HTML::Form
module also need HTML::TokeParser to work.

Checking for MIME::Base64.. failed
Can't locate MIME/Base64.pm in @INC (@INC contains: /usr/lib/perl5/i386-linux /usr/lib/perl5 /usr/lib/perl5/site_perl/i386-linux /usr/lib/perl5/site_perl /usr/lib/perl5/site_perl .) at Makefile.PL line 180, <STDIN> line 7.

The Base64 encoding is used in authentication headers in HTTP.

Checking for Net::FTP...... ok
Checking for Digest::MD5 .. ok
The missing modules can be obtained from CPAN.  Visit
<URL:http://www.perl.com/CPAN/> to find a CPAN site near you.


Checking if your kit is complete...
Looks good
Warning: prerequisite HTML::HeadParser failed to load: Can't locate HTML/HeadParser.pm in @INC (@INC contains: /usr/lib/perl5/i386-linux /usr/lib/perl5 /usr/lib/perl5/site_perl/i386-linux /usr/lib/perl5/site_perl /usr/lib/perl5/site_perl .) at (eval 10) line 3.
Warning: prerequisite MIME::Base64 failed to load: Can't locate MIME/Base64.pm in @INC (@INC contains: /usr/lib/perl5/i386-linux /usr/lib/perl5 /usr/lib/perl5/site_perl/i386-linux /usr/lib/perl5/site_perl /usr/lib/perl5/site_perl .) at (eval 11) line 3.
Warning: prerequisite URI failed to load: Can't locate URI.pm in @INC (@INC contains: /usr/lib/perl5/i386-linux /usr/lib/perl5 /usr/lib/perl5/site_perl/i386-linux /usr/lib/perl5/site_perl /usr/lib/perl5/site_perl .) at (eval 13) line 3.
Writing Makefile for libwww-perl

The problem is that I have installed HTML::Parser but it's not recognizing it. Then when I go back to install xmlTV after that (if I continue regardless) I still get the error:
Code:

Module HTML::Parser seems not to be installed.
HTML::Parser is required.
Module LWP seems not to be installed.
LWP 5.65 is required.

Even though they are. Again, I don't know jack about anything, much less about perl, so if anyone could shed some light on this for me, or if I am making this too hard, then the easier way to get around this, that'd be great.

I'm doing it so I can watch TV on my PC, using any TV player out there, however I would like to use Freevo and/or XawTV if that's at all possible.

If you need any more info, please, let me know :)

Thanks for any suggestion

Cool

<edit>
My card info:
It's a WinTV GO card, using the bttv module. From lspci I get:
Code:

00:0d.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
        Subsystem: Hauppauge computer works Inc. WinTV/GO
        Flags: bus master, medium devsel, latency 32, IRQ 9
        Memory at f3000000 (32-bit, prefetchable) [size=4K]
        Capabilities: [44] Vital Product Data
        Capabilities: [4c] Power Management version 2

00:0d.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
        Subsystem: Hauppauge computer works Inc. WinTV/GO
        Flags: bus master, medium devsel, latency 32, IRQ 9
        Memory at f2800000 (32-bit, prefetchable) [disabled] [size=4K]
        Capabilities: [44] Vital Product Data
        Capabilities: [4c] Power Management version 2

I'm running Slack 8.1 and I'm in the US so it's NTFS.

</edit>

Cool

acid_kewpie 03-03-2003 05:24 AM

you don't need xmltv to use xawtv at all. I really dislike xmltv. the way it downloads info seems very backwards, so i took the remote sites out of it's code and wrote my own app to get tv listings in a quarter of the time. i also didn't like that freevo stuff, far to gimmicky and flashy. but then as i hate kde too, that's no suprise. if all you want to do is watch normal tv xawtv is the way to go.

as for HTML::Parser it should be listed in:

/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/HTML/Parser.pm

or your equivalent if you're not using 5.8.0. if it's not there, do a find for it in the perl5 directory. and if it's not there, it's not there.... check the parser install for errors you might have missed.

and as for the card itself, all you should need in modules.conf is

alias char-major-81 bttv

as it's such a common card the default tuner settings etc. should be picked up by default.

MasterC 03-03-2003 05:28 AM

Thank you for your response, I'll fire it up tomorrow and give it a go. That XML crap was giving me a headache, so I left it alone until now, and then I saw your response and was relieved. I've had some luck watching TV with mplayer:
mplayer -tv on:blahblah the default line from the docs.
And with kino's v4l input (very shoddy there).
But in mplayer the frequency seemed jacked up as there was the upper half of the screen at the bottom of the window seperated by a large black line showing the bottom half of the screen at the top of the window (if that makes any sense).

Anyway, I'll give xawtv another try tomorrow and see what I can get. I'll add that line to modules.conf

Thanks again Chris

MasterC 04-25-2003 01:49 PM

Hey Chris, long time since I visited this thread :)

Anyway, I've given your simple.pl script a try, but like you mentioned elsewhere, it's for the UK and I'm not sure how to "port it" to US tv. I can see some of the places to change things, they are quite obvious but in there is comments that I don't understand very well. Also, anacova.com or whatever, like you said, is just for the UK, do you know of an equivilent for US?

I really am just lookin to get something working to record my scheduled programs at regular intervals (whether it's through cron or whatever I don't care) without me having to do anything after the initial setup.

I've now moved onto another project: www.mythtv.org which is using mysql and such but that's giving me a slight headache as well. However, it seems very "neat" so I'll stick it out until the end of the docs at least.

Anyway, basically just an update and a request for more comments/documentation on your simple script :)

Thanks

Cool

acid_kewpie 04-25-2003 02:14 PM

well i found how to make that script from the xmltv source code. i think the US site they use is called zapit, not sure. either way it's a completlely different xml format (which was the whole point of xmltv really..) so you'd need to totally restructure it. just use the source if you want to. i had to stab in the dark a lot to find the right params

Coal


All times are GMT -5. The time now is 01:15 AM.