LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-02-2002, 09:49 AM   #1
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
really simple TiVoesque script for UK


Hi,

I've written a really short and sweet script that oes the following:

1) downloads tv listings for that day (can easily be extended)
2) reads your xawtv config to find the frequencies (NB. Channel names must match exactly)
3) let's you choose a program
4) set's mencoder to record it when it starts via the at server

only currently works for UK tv, though it would be simple enough to add certain other countries, if you can find a tv listings site what will provide that information in XML. There's one in Germany that can be used, but the one for America (found via XMLTV) doesn't seem to work (anymore?)

http://thirtythreeandathird.net/simple.pl

enjoy!
maybe!
if there's anyone else in england reading this!
with a tv card!
 
Old 12-02-2002, 10:37 AM   #2
nonamenobody
Member
 
Registered: Oct 2002
Posts: 138

Rep: Reputation: 22
Thanks for that, I used record TV programs regularly, back when my TV card was working. If I get round to getting another one I am sure your script will be very handy.

How do you go about recording?

I found the best way was to compress it to divx 4 in real time, but it used about 90% of my CPU (Athlon 1.4GHz).
 
Old 12-02-2002, 03:16 PM   #3
cesman
LQ Newbie
 
Registered: Nov 2002
Posts: 9

Rep: Reputation: 0
MythTV

Hi! Have either of you taken a look at MythTV?! It rules!

wwww.mythtv.org

What is wrong with your tv tuner card? I have a Studio PC, which worked fine under a 2.2 kernel. When I upgraded to 2.4, I have to pass along what tuner I had to the module in order to get it to work. This maybe the same issue you are having.... Take a look at the docs in:

/usr/src/linux/Documentation/video4linux/bttv/

Good luck,
cesman
 
Old 12-02-2002, 06:57 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Original Poster
Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
yeah i saw mthtv, wasn't impressed. there' no need to be so OTT with that sort of thing. it's good if you want that. benefit of my tiiny script is that it uses mencoder, which is SUCH a good divx4 encoder, which also uses a LOT less system resources, due to it's optimization.
 
Old 12-03-2002, 12:00 PM   #5
nonamenobody
Member
 
Registered: Oct 2002
Posts: 138

Rep: Reputation: 22
My tv card never worked very well, when it was working well it I would have to wait until my computer had been on for 5 minutes or so before using the TV tuner. If I started it before that time then in Linux it would lock up my Linux box, in Windows it would not tune until I restarted my computer. If I waited 5 minutes first then everything would be okay. Now it has the same symptoms, which it used to have in the 5 minutes, all the time (under both Linux and Windows).
 
Old 12-03-2002, 12:06 PM   #6
Bill Krauss
LQ Newbie
 
Registered: Mar 2002
Posts: 13

Rep: Reputation: 0
The xmltv grabber for america, tv_grab_na, was broken for a few days, when the provider moved things around, but the new version has been running fine in my crontab for over a week now.
 
Old 12-04-2002, 06:29 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Original Poster
Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
nope, still can't connect to the american one. surely it wouldn't deny me access as i'm not in america??
 
Old 12-04-2002, 01:26 PM   #8
cesman
LQ Newbie
 
Registered: Nov 2002
Posts: 9

Rep: Reputation: 0
Edit /usr/lib/perl5/site_perl/5.8.0/XMLTV/ZapListings.pm (or wherever ZapListings.pm is located) change tvlistings2.zap2it.com to tvlistings.zap2it.com you should find 3 entries. I believe the latest XMLTV fixs this problem.

Cecil

Last edited by cesman; 12-04-2002 at 01:29 PM.
 
Old 12-04-2002, 06:08 PM   #9
Bill Krauss
LQ Newbie
 
Registered: Mar 2002
Posts: 13

Rep: Reputation: 0
Doh!

cesman's reply reminded me that I also had to muck with the URL. Although I didn't have to change the name of the server, I did have to change the page title. On line 74 of ZapListings.pm, I changed register.asp to index.asp.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Iptables (with masq) troubleshooting, very simple script attached script and logs. xinu Linux - Networking 13 11-01-2007 05:19 AM
New to C++ help with simple script Fredstar Programming 9 08-08-2005 12:09 PM
A Simple Script fiod Linux - General 3 09-20-2003 09:56 PM
Simple Script fiod Linux - General 2 09-08-2003 04:03 PM
Simple C Shell script is not so simple elconde Programming 2 09-17-2001 12:53 AM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration