Linux - SoftwareThis 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
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.
I have a tv card installed and working using the bttv driver. I use the program 'tvtime' to watch tv and to view the input video on the tuner card.
I recently discovered nvrec and tried to use that, but failed. The problem is that 'tvtime' is the only thing that can actually use my tuner card. I've tried xawtv to no sucess too. I only get a blue screen.
we can't help if you do't tell us any useful information... normally these sorts of problems come down to configuration, frequency tables etc... you've not even said in what way they don't work....
I kept it the same as yours because everything is already set right.
Here is the output of mplayer:
Code:
Playing tv://.
TV detected! ;-)
Selected driver: v4l
name: Video 4 Linux input
author: Alex Beregszaszi
comment: under development
=================================================================
WARNING: YOU ARE USING V4L DEMUXER WITH V4L2 DRIVERS!!!
As the V4L1 compatibility layer is broken, this may not work.
If you encounter any problems, use driver=v4l2 instead.
Bugreports on driver=v4l with v4l2 drivers will be ignored.
=================================================================
Selected device: BT878 video (Hauppauge (bt878))
Capabilites: capture tuner overlay clipping scales
Device type: 171
Supported sizes: 48x32 => 768x480
Inputs: 4
0: Television: tuner audio tv camera (tuner:1, norm:ntsc)
1: Composite1: audio camera (tuner:0, norm:ntsc)
2: S-Video: audio camera (tuner:0, norm:ntsc)
3: Composite3: audio camera (tuner:0, norm:ntsc)
Using input 'Television'
ioctl get tuner failed: Invalid argument
Tuner isn't capable to set norm!
Error: Cannot set norm!
Exiting... (End of file)
I feel like im missing something very obvious.. Please ignore my newbish'ness
=================================================================
WARNING: YOU ARE USING V4L DEMUXER WITH V4L2 DRIVERS!!!
As the V4L1 compatibility layer is broken, this may not work.
If you encounter any problems, use driver=v4l2 instead.
Bugreports on driver=v4l with v4l2 drivers will be ignored.
=================================================================
Well after changing the 'driver' option to v4l2..it works fine.
So now that I can use mplayer fine..what is stopping me from using 'nvrec?'
I was reading up on nvrec's mailing list and it seems i need a v4l-compat module. Where do I find this?
i use 'hw.0,14' since to the best of my knowledge i use paramaters from dump-mixers
and here is my output:
Code:
MEncoder 1.0pre5-3.2.2 (C) 2000-2004 MPlayer Team
CPU: Intel Pentium 4/Xeon/Celeron Foster 2394 MHz (Family: 8, Stepping: 7)
Detected cache-line size is 64 bytes
CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
Reading /home/joe/.mplayer/codecs.conf: Can't open '/home/joe/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file /home/joe/.mplayer/mencoder: No such file or directory
Font /home/joe/.mplayer/font/font.desc loaded successfully! (206 chars)
success: format: 9 data: 0x0 - 0x0
TV detected! ;-)
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
comment: first try, more to come ;-)
Selected device: BT878 video (Hauppauge (bt878))
Tuner cap:
Tuner rxs: MONO
Capabilites: video capture video overlay VBI capture device tuner read/write streaming
supported norms: 0 = PAL; 1 = NTSC; 2 = SECAM; 3 = PAL-Nc; 4 = PAL-M; 5 = PAL-N; 6 = NTSC-JP; 7 = PAL-60;
inputs: 0 = Television; 1 = Composite1; 2 = S-Video; 3 = Composite3;
Current input: 0
Current format: YUV420
v4l2: current audio mode is : MONO
Error opening audio: No such file or directory
============ Sorry, this file format is not recognized/supported =============
=== If this file is an AVI, ASF or MPEG stream, please contact the author! ===
Cannot open demuxer.
Exiting...
Once you get that figured out though, you may also need to
set "line1" as a record device.
Run:
"alsamixer"
Use the arrow keys to move to "line1" .
Tap the space bar to set it as a record device.
If you want to keep this setting between boots, you may
have to go "su" and do an "alsactl store" .
(just a note here, I don't know how to toggle this back off,
but I don't think it hurts to leave it)
If you want to preview while recording, tapping "M" on "line1"
will mute it. As long as the volume is up and it is a record device,
it should still record.
You can then open the the clip with your favorite player.
I'm having issues with alsa it seems.
I didnt have alsa-mixer installed so I got it.
When trying to run it, i get this error:
Code:
# alsamixer
alsamixer: function snd_ctl_open failed for default: No such file or directory
I did try to restart my alsa settings.
But seeing as it was only a mixer i did use one to set line1 as a recording device.
Now after all that I try running your command and It didnt work. there is no 'alsa' option
I tried it the other way and it still didnt work..Again here is the "new" output of mplayer:
Code:
joe@scarlet:~$ mencoder -oac lavc -lavcopts acodec=mp3 -ovc lavc -lavcopts vbitrate=1800 -tv driver=v4l2:norm=ntsc:channel=03:chanlist=us-cable:alsa:adevice=hw.0,14:forceaudio:width=640:height=480 -o test.avi tv://
MEncoder 1.0pre5-3.2.2 (C) 2000-2004 MPlayer Team
CPU: Intel Pentium 4/Xeon/Celeron Foster 2394 MHz (Family: 8, Stepping: 7)
Detected cache-line size is 64 bytes
CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
Reading /home/joe/.mplayer/codecs.conf: Can't open '/home/joe/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file /home/joe/.mplayer/mencoder: No such file or directory
Font /home/joe/.mplayer/font/font.desc loaded successfully! (206 chars)
success: format: 9 data: 0x0 - 0x0
TV detected! ;-)
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
comment: first try, more to come ;-)
Selected device: BT878 video (Hauppauge (bt878))
Tuner cap:
Tuner rxs: MONO
Capabilites: video capture video overlay VBI capture device tuner read/write streaming
supported norms: 0 = PAL; 1 = NTSC; 2 = SECAM; 3 = PAL-Nc; 4 = PAL-M; 5 = PAL-N; 6 = NTSC-JP; 7 = PAL-60;
inputs: 0 = Television; 1 = Composite1; 2 = S-Video; 3 = Composite3;
Current input: 0
Current format: YUYV
v4l2: current audio mode is : MONO
Error opening audio: No such file or directory
============ Sorry, this file format is not recognized/supported =============
=== If this file is an AVI, ASF or MPEG stream, please contact the author! ===
Cannot open demuxer.
Exiting...
SO finally I got mencoder to record it.. I even got it to use xvid and mp3lame to get the size down of video..
(10 seconds of 320x240 compressed is still 860Kb)
Turns out with alsa oss emulation, /dev/dsp is the recording device.
This takes about 30%cpu on an intel 2.4ghz so if u want better quality (like recording from a vcr) you can even set it higher..just make sure you have a good enough cpu
you might want to use the deinterlacing filter (-vf pp=lb) to get a better image, also i'd suggest trying the higher quality vhq options with lavc over xvid, but that's more personal preference. you can also squeeze a little more quality out of the audio by using abr instead of cbr (average over constant)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.