LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   " mplayer -tv device=/dev/video0 tv:// -dumpfile file2300.avi " not working :( (https://www.linuxquestions.org/questions/linux-general-1/mplayer-tv-device%3D-dev-video0-tv-dumpfile-file2300-avi-not-working-824791/)

frenchn00b 08-07-2010 09:18 AM

" mplayer -tv device=/dev/video0 tv:// -dumpfile file2300.avi " not working :(
 
Hello,

Mencoder has not a support for my webcam.

However "
Quote:

mplayer -tv device=/dev/video0 tv://
" works flawlessly well.

So option dumpfile in man page is there to help us !!
But well the command
Quote:

" mplayer -tv device=/dev/video0 tv:// -dumpfile file2300.avi "
results in a 0kylobytes files.

Has someone any ideas how to force mplayer to dump file -tv flow data to file?

DJ Shaji 08-07-2010 09:31 AM

Use Mencoder to capture from tv. Mplayer dumpstream won't give you sound.

frenchn00b 08-07-2010 10:40 AM

Quote:

Originally Posted by DJ Shaji (Post 4058962)
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

gdaughen 09-13-2010 03:22 PM

I was able to capture video from my webcam using the command string:
mencoder -tv device=/dev/video0 tv:// -ovc lavc -o filename.avi

I'm still working on trying to get the audio to work.

Greg
Ubuntu 10.04
VF0415 Live! Cam Vid. IM Ultra
MEncoder SVN-r1.0~rc3+svn20090426-4.4.3

dv502 09-13-2010 04:14 PM

Have you tried the adevice switch?

mencoder -tv device=/dev/video0:adevice=/dev/dsp tv:// -ovc lavc -o filename.avi

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 )

Hope this helps.

dv502 09-13-2010 04:14 PM

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

- Cheers


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