LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 08-07-2010, 09:18 AM   #1
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Rep: Reputation: 57
" 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?
 
Old 08-07-2010, 09:31 AM   #2
DJ Shaji
Member
 
Registered: Dec 2004
Location: Yo Momma's house
Distribution: Fedora Rawhide, ArchLinux
Posts: 518
Blog Entries: 15

Rep: Reputation: 106Reputation: 106
Use Mencoder to capture from tv. Mplayer dumpstream won't give you sound.
 
Old 08-07-2010, 10:40 AM   #3
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by DJ Shaji View Post
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
 
Old 09-13-2010, 03:22 PM   #4
gdaughen
LQ Newbie
 
Registered: Jun 2005
Posts: 1

Rep: Reputation: 0
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
 
Old 09-13-2010, 04:14 PM   #5
dv502
Member
 
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642

Rep: Reputation: 57
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.

Last edited by dv502; 09-13-2010 at 04:23 PM.
 
Old 09-13-2010, 04:14 PM   #6
dv502
Member
 
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642

Rep: Reputation: 57
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

Last edited by dv502; 09-13-2010 at 04:46 PM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem: "Cannnot connect to /dev/video0/" foodhater Linux - Hardware 1 05-15-2005 11:04 AM
V4L: "cat /dev/video0: no such device"; to be sure not supported? jago25_98 Linux - Hardware 1 01-27-2005 04:04 PM
gnomemeeting crashed, now i got "video0: Device or resource busy" B sirpelidor Linux - Hardware 0 01-10-2005 03:02 AM
"unable to find device node for /dev/x in /dev!" during install zombiedeth *BSD 0 02-02-2004 02:38 AM
another "device /dev/dsp can't be opened (device does not exist)" in DEBIAN, woody Kroppus Linux - Hardware 12 11-13-2003 12:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:38 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