" mplayer -tv device=/dev/video0 tv:// -dumpfile file2300.avi " not working :(
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
Use Mencoder to capture from tv. Mplayer dumpstream won't give you sound.
mencoder is hanging unfortunatly :
Code:
~$ mencoder -tv device=/dev/video0 tv:// -o webcam.avi
MPlayer SVN-r31309 (C) 2000-2010 MPlayer Team
success: format: 9 data: 0x0 - 0x0
TV file format detected.
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
comment: first try, more to come ;-)
v4l2: your device driver does not support VIDIOC_G_STD ioctl, VIDIOC_G_PARM was used instead.
Selected device: USB camera
Capabilites: video capture read/write streaming
supported norms:
inputs: 0 = sonixj;
Current input: 0
Current format: unknown (0x4745504a)
tv.c: norm_from_string(pal): Bogus norm parameter, setting default.
v4l2: ioctl enum norm failed: Invalid argument
Error: Cannot set norm!
Selected input hasn't got a tuner!
v4l2: Cannot get fps
Audio block size too low, setting to 16384!
Floating point exception
I tried all googled stuffs with v4l and V4l2, it is surely a no way with mencoder
adevice is the audio capture/playing device and where you have the microphone connected.
If you have more than one audio capture device, you need to experiment with /dev/dsp2. /dev/dsp3, ...etc.
Note: Some sound cards have more than one audio output, you may need to add the audioid=<value> switch. an example
mencoder -tv device=/dev/video0:adevice=/dev/dsp:audioid=0 tv:// -ovc lavc -o filename.avi
If 0 doesn't work try 1,2 ...etc.
Also, have you checked your mixer settings?
Check if the microphone is checked (i.e for capture )
When you check your mixer, see if there is another tab. This tab could be for the microphone that's on the webcam.
For example, I have a USB microphone. When I open kmix, a miver program for KDE, I have three tabs, one tab is my soundcard, the other is for the tv tuner card and the third one is for the USB mic.
When I record from the USB mic, I use /dev/dsp2 as the recording source. (eg third tab)
Note: Audio capture devices are counted starting at 0
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.