LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 04-04-2010, 07:13 PM   #1
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
Video recorder, how to record a television programme using the computer?


Have a television card on the computer. Works perfectly well and it would be nice to use the computer as a television program recorder. Buggering about with a DVD recorder is a lot of trouble.

How is it possible to do this - surely pretty basic - job? Buggered if I know.

It is important to compress the thing into *.avi format or something like that. Otherwise it takes up a huge amount of space.

How would mplayer do it for example?

Thanks any help.
 
Old 04-04-2010, 08:16 PM   #2
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
I have some scripts I made a long time ago, tailor them to your requirements/card

Capture TV
Code:
#!/bin/sh
sudo nice -n -1 mencoder -tv \
driver=v4l2:device=/dev/video0:input=3:normid=0:mjpeg:decimation=1:quality=100:brightness=-8:contrast=0:saturation=0:alsa \
-ovc lavc -oac lavc -lavcopts vbitrate=1500:abitrate=128:mbd=1:v4mv \
-vf lavcdeint,crop=688:560:10:8,scale=448:336 \
-o ~/Capture\ -\ rename_me_NOW!!.avi tv://
sleep 1
sudo chown $USER ~/Capture\ -\ rename_me_NOW!!.avi
Capture TV hq
Code:
#!/bin/sh
exec	mencoder -tv \
	driver=v4l2:device=/dev/video0:input=1:normid=0:mjpeg:decimation=1:quality=100:brightness=10:contrast=-2:saturation=10:alsa \
	-ovc lavc -oac lavc -lavcopts aspect=4/3:vbitrate=2000:vhq \
	-vf crop=700:572:2:2,lavcdeint \
	-o ~/Capture\ -\ rename_me_NOW!!.avi \
	tv://
exit
Capture TV wide
Code:
#!/bin/sh
sudo nice -n -1 mencoder -tv \
driver=v4l2:device=/dev/video0:input=3:normid=0:mjpeg:decimation=1:quality=100:brightness=-8:contrast=0:saturation=0:alsa \
-ovc lavc -oac lavc -lavcopts vbitrate=1500:abitrate=128:mbd=1:v4mv \
-vf lavcdeint,crop=688:416:10:80,scale=512:288 \
-o ~/Capture-ws\ -\ rename_me_NOW!!.avi \
tv://
sleep 1
sudo chown $USER ~/Capture-ws\ -\ rename_me_NOW!!.avi
Capture TV wide+hq
Code:
#!/bin/sh
exec	mencoder -tv \
	driver=v4l2:device=/dev/video0:input=1:normid=0:mjpeg:decimation=1:quality=100:brightness=10:contrast=-2:saturation=10:alsa \
	-ovc lavc -oac lavc -lavcopts aspect=16/9:vbitrate=2000:vhq \
	-vf crop=700:432:2:72,lavcdeint \
	-o ~/Capture-ws\ -\ rename_me_NOW!!.avi \
	tv://
exit
The ones with sudo in them raise the priority of the process... good luck!
 
1 members found this post helpful.
Old 04-05-2010, 04:45 AM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
You can try:

http://xawdecode.sourceforge.net/
http://mplayer-tools.sourceforge.net/
http://www.artificialworlds.net/wiki/RecordTV/RecordTV
 
1 members found this post helpful.
Old 07-18-2010, 11:42 PM   #4
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215

Original Poster
Blog Entries: 2

Rep: Reputation: 49
Thanks, in the spirit of keeping things as simple as possible this just about works for me:
Code:
mencoder -o mencoderTest.avi -ovc lavc -lavcopts vhq -oac pcm tv://
lavc gives compression, but the quality is very bad so put vhq, very high quality, in; seems to improve things but don't really know. The sound is pcm which means uncompressed - compress it and the audio visual synchronisation A/V sync goes down the tubes.

No ~/.mplayer/mcoder.conf file for simplicity.

The big thing is to bugger about with alsamixer for your life. <m> and <space>.

Just thought I'd put in the simplest possible thing I've come up with.
 
Old 07-19-2010, 03:06 AM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
For on-the-fly compression of multimedia, may want to try transcode ... it's kinda difficult to use, but they say it may be able to handle it. I can't find the article right now, but it was faster than mencoder and ffmpeg and was capable of this.
 
  


Reply



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
cant connect to super video(television) jackcarver Linux - Newbie 2 01-01-2010 06:51 AM
cannot record with Sound Recorder JayBee21 Linux - Newbie 3 11-20-2009 07:28 AM
video recorder rlnd Linux - Software 7 08-14-2006 02:26 AM
S-video: link up computer to television hamish Linux - Hardware 1 02-10-2005 08:15 AM
How to record a television transmission from realplayer chinese TV file miguipda Linux - Software 5 01-19-2005 01:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:28 PM.

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
Open Source Consulting | Domain Registration