SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Does any of you record TV from a PCI tv tuner card? If so, How do you do it? Mine is a Pinnacle PCTV Rave and tv standard is Pal-Nc.
I am not looking for something like mythtv. I prefer a script or a small package.
Now, I use a script with mencoder and it works fine (I can't watch tv while recording) but I think there are other ways to record tv. If so, please, let me know so I know them too :-)
Now, I use a script with mencoder and it works fine (I can't watch tv while recording) but I think there are other ways to record tv. If so, please, let me know so I know them too :-)
Thank you!
I wrote some scripts and posted them here a while back. I have simple scripts for recording and watching, and other scripts to generate those scripts from a list of scanned channels. My scripts use dvbstream and mplayer.
Here is a script for watching the PBS HD (east) channel:
#!/bin/sh
dvbstream -f 12140 -p v -s 30000 -v 49 -a 52 -o | mplayer -ao alsa -vo xv -fs -vf pp=lb -
And here is a script for recording it and watching it at the same time:
#!/bin/sh
dvbstream -f 12140 -p v -s 30000 -v 49 -a 52 -o | tee /mnt/sda2/$(date +%Y%m%d%H%M%S).ts | mplayer -ao alsa -vo xv -fs -vf pp=lb -
I also record and watch. Kaffeine will let you do both simultaneously (I believe) however as we share one pci dvb-t card we save and watch a few seconds/minutes behind the actual save to disk on a networked printer/fileserver. We use a script that parses the channels config then offers channel selection, duration of recording name, etc. then runs at once or uses atd to schedule.
This works for us as sometimes someone watches now and someone else at another day/time. The script allows scheduling cli on the remote box using ssh with all users having an account and permission to do so. With an nfs share, anyone can watch while recording with xine, dragonplayer, whatever.
dvbstream -f 12140 -p v -s 30000 -v 49 -a 52 -o | mplayer -ao alsa -vo xv -fs -vf pp=lb -
As far as I can see I have to install dvbstream.
I want to record from a cableTV signal (let's say channel 12). What should I add/modify to the scripts? Don't I have to add somewhere something related to tv standard (Pal-Nc here)?
The short answer is no. My experience is digital with dvb-t, not dvb-c but I believe you would be able to view the output either as a realtime stream or later if you save it to disk either for viewing or burning to a dvd. I don't know allot about the difference in video formats but I'll add my take on it which might be useful to if you decide to start encoding and burning dvbstream output to dvd.
Dvbstream will save to disk as an mpg2 (program stream) when I use the options "-ps" and "-o" like this:
to display video format info and the major differences between dvbstream output before and after (respectively) I encode with the above command is as follows:
There is more to it than the above but the short of it is without encoding, dvbstream's output is not suitable for burning to a dvd. The audio is not correct and while an mpg extension can be used, when an mpeg-ps is encoded for burning to a dvd it is a .vob and the headers are quite different. If it isn't a vob, dvdauthor will not process it
I have compiled it from source for 13. It is trivial I had previously been using one I compiled several years ago and just kept copying over as I upgraded systems. Click the button to download on this page http://sourceforge.net/projects/dvbtools/ Untar and compile with make. You could then make a slackpack but there are only three standalone executables compiled and the only one you need to save to disk is dvbstream which you could just copy into /usr/local/bin. It will work from there. Otherwise copy over all three.
I can't help you with xdtv, I've never used it. I watch real time with xine and just use dvbstream to save to disk. I had set it up once to stream so other clients could watch the stream with codeine but it wasn't worth the bother here when it could be watched seconds or minutes behind the save on a file share.
I have compiled it from source for 13. It is trivial I had previously been using one I compiled several years ago and just kept copying over as I upgraded systems. Click the button to download on this page http://sourceforge.net/projects/dvbtools/ Untar and compile with make. You could then make a slackpack but there are only three standalone executables compiled and the only one you need to save to disk is dvbstream which you could just copy into /usr/local/bin. It will work from there. Otherwise copy over all three.
I can't help you with xdtv, I've never used it. I watch real time with xine and just use dvbstream to save to disk. I had set it up once to stream so other clients could watch the stream with codeine but it wasn't worth the bother here when it could be watched seconds or minutes behind the save on a file share.
I will give it a try. How do you use xine to watch real time tv?
I am getting a bit confused. What is a dvb card? I have an analogue tv card (Pinnacle PCTV-Rave). Can I use dvbstream with it or dvbstream has to do with sattelites?
You need to have the channels.conf for your area in ~/.xine like this:
Code:
rick@rick:~$ ls .xine
catalog.cache cddbcache/ channels.conf config keymap xine-ui_old_playlist.tox
Then open xine. If you don't see the controls, right click on the xine window and select "Show Controls". In the contols pop up you should see "DVB" listed alongside other selections, e.g. DVD, CD.
If you don't have DVB listed then you probably do not have your card properly recognised and there is no /dev/dvb/adapter/whatever
If it is listed but you get a "cant find message" it is a probably a permission problem. Also the is a setting under media which allows you to nominate which dvb device to use. If you only have 1 device it should be 0 (zero).
If your ok so far hit the playlist button in the controls (top left) and if your channels.conf is right you should get a list of stations to select from.
This is minimalist, if you want bells and whistles and are running kde install kaffeine but you'll kave to use it's dvb utility to configure your stations because it won't work off the same channels.conf that xine and some other applications use.
Last edited by justwantin; 09-05-2009 at 06:43 PM.
Reason: nd other players do.
It works fine but the problem is I can't record while watching tv. If I watch through TVTime and then open a terminal and run the script to record, I will get a message telling me the device is busy and the scripts stops recording.
Is there a way I can record and watch at the same time using mencoder to record and mplayer or so to watch?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.