LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-23-2008, 07:24 PM   #16
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168

Does luvcview report the cam as /dev/video0 or /dev/video1, etc.?
Good luck. ;-)
 
Old 09-23-2008, 07:41 PM   #17
ed_homeLinux
Member
 
Registered: Apr 2005
Distribution: redhat FC6
Posts: 43

Original Poster
Rep: Reputation: 15
When I run luvcview I get


luvcview version 0.2.1
Video driver: x11
A window manager is available
video /dev/video0
 
Old 09-23-2008, 08:16 PM   #18
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
That looks like an ffmpeg problem. Did you install a stable version of ffmpeg or a snapshot? If it's the later, try a stable version, if it's the former, try an updated version.
Good luck. ;-)

Last edited by Peacedog; 09-23-2008 at 08:43 PM. Reason: Clarity
 
Old 09-24-2008, 03:59 PM   #19
ed_homeLinux
Member
 
Registered: Apr 2005
Distribution: redhat FC6
Posts: 43

Original Poster
Rep: Reputation: 15
I checked the ffmpeg website. They essentially don't produce "stable" versions. Maybe it was that spca driver I installed earlier or maybe ffmpeg doesn't like 64 bit OSes. Anyway, can you recommend something besides ffmpeg for recording video and audio. Thanks.

Ed
 
Old 09-24-2008, 06:25 PM   #20
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
You cold try mencoder, there is a package called videoview, I haven't used it and do not know much about it.
Good luck. ;-)
 
Old 09-28-2008, 02:18 PM   #21
ed_homeLinux
Member
 
Registered: Apr 2005
Distribution: redhat FC6
Posts: 43

Original Poster
Rep: Reputation: 15
I redid the OS. I put on the 32 bit version of Fedora 9. I installed the video driver and mplayer. The latter includes mencoder. How do I use mencoder to record video and audio? When I type

mencoder -oac help

I get

mencoder -oac help
MEncoder dev-SVN-r27667-4.3.0 (C) 2000-2008 MPlayer Team
CPU: AMD Athlon(tm) 64 Processor 3400+ (Family: 15, Model: 15, Stepping: 0)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2


Available codecs:
copy - frame copy, without re-encoding (useful for AC3)
pcm - uncompressed PCM audio
lavc - FFmpeg audio encoder (MP2, AC3, ...)


The availabe codecs from the "-ovc help" are

Available codecs:
copy - frame copy, without re-encoding. Doesn't work with filters.
frameno - special audio-only file for 3-pass encoding, see DOCS.
raw - uncompressed video. Use fourcc option to set format explicitly.
lavc - libavcodec codecs - best quality!
vfw - VfW DLLs, read DOCS/HTML/en/encoding-guide.html.
qtvideo - QuickTime DLLs, currently only SVQ1/3 are supported.
 
Old 09-28-2008, 02:44 PM   #22
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
You could try this.
Code:
$ mencoder tv:// -tv driver=v4l:width=<width>:height=<height>:device=/dev/video0:forceaudio:adevice=/dev/dsp -ovc lavc -oac mp3lame -lameopts cbr:br=64:mode=3 -o <filename>.avi
Taken from here.
You could also retry ffmpeg on the new system and videoview.
Good luck. ;-)
 
Old 09-29-2008, 06:35 PM   #23
ed_homeLinux
Member
 
Registered: Apr 2005
Distribution: redhat FC6
Posts: 43

Original Poster
Rep: Reputation: 15
Thanks. What values for the width and height are supported? Do you know? I have been trying 320x640. I tried the command as

mencoder tv:// -tv driver=v4l:width=640:height=320:device=/dev/video0:forceaudio:adevice=/dev/dsp -ovc lavc -oac mp3lame -lameopts cbr:br=64:mode=3 -o test.avi

and got a message saying "lameopts is not an MEncoder option. I then try

mencoder tv:// -tv driver=v4l:width=640:height=320:device=/dev/video0:forceaudio:adevice=/dev/dsp -ovc lavc -oac mp3lame -o test.avi

and got a message saying "MPlayer was compiled without libmp3lame support." From my previous post you can see that "lavc" is available for both audio and video. Therefore, I tried

mencoder tv:// -tv driver=v4l:width=640:height=320:device=/dev/video0:forceaudio:adevice=/dev/dsp -ovc lavc -oac lavc -o test.avi

and got a message saying "WARNING: YOU ARE USING V4L DEMUXER WITH V4L2 DRIVERS!!!." I then try setting the driver as "v4l2" instead of "v4l" as shown below.

mencoder tv:// -tv driver=v4l2:width=640:height=320:device=/dev/video0:forceaudio:adevice=/dev/dsp -ovc lavc -oac lavc -o test.avi

This appears to work, because it starts throwing a lot of text to the screen and doesn't stop. The light on the camera also comes on. However, there is no picture shown to me. If I interrupt it and try to open the file, I get a message about proprietary and free formats. Is there a format I can use that is already installed on my computer? Should I see the picture as it is being recorded like with luvcview? Thanks for your help.

Ed
 
Old 09-29-2008, 07:58 PM   #24
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
I don't *think* you'll be able to see what is recorded. There is a good Mencoder guide here. That should help with your options/formats. Hope that helps. You're welcome. ;-)
Good luck. ;-)

Did you try VideoView?
Good luck. ;-)

Last edited by Peacedog; 09-29-2008 at 08:01 PM.
 
Old 10-05-2008, 05:00 PM   #25
ed_homeLinux
Member
 
Registered: Apr 2005
Distribution: redhat FC6
Posts: 43

Original Poster
Rep: Reputation: 15
I couldn't get videoview to work. Also, note that mplayer doesn't work with the camera (http://www.quickcamteam.net/software...tible-software).

I installed "cheese." This will record video fine just like luvcview but doesn't appear to record audio.

I plan to start a new thread in the software section. Thanks for your help.
 
Old 10-05-2008, 07:10 PM   #26
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
You're welcome, I'm not familiar with cheese but, does it have a section/preference to select/configure audio options? If so, that should be set to your usb audio device (camera mic).

Other than that, sorry I couldn't be more help. You may want to pursue or chase down the problem with ffmpeg as it's very useful for more than just the camera.
Good luck. ;-)
 
  


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
webcam not working in fedora 8 av.dubey Linux - Newbie 2 08-17-2008 05:17 AM
recommend high quality webcam gothicbob Linux - Hardware 2 05-22-2007 04:33 PM
Recommend webcam and scripts for... ylikone Linux - Hardware 1 09-13-2006 04:00 AM
Fedora Core 5, would you recommend it? TomJon Linux - Distributions 4 07-31-2006 11:59 AM
LQ: Recommend to me a good webcam! ValidiusMaximus Linux - Hardware 2 07-26-2005 11:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:12 AM.

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