Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to 'record' with my webcam?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
PARENA
Guru
Guru


Joined: 06 Jan 2003
Posts: 349

PostPosted: Tue Feb 25, 2003 11:42 am    Post subject: How to 'record' with my webcam? Reply with quote

Righty... I have my lovely working webcam. And, of course, I can take snaps at regular intervals, upload those, etc, etc... just like a 'real' webcam. However, what I would like to do is really RECORD and AVI with that webcam, or MPG or whatever, but video format anyway, not snapshots. I can't seem to find a program for that, though....... anyone?
Back to top
View user's profile Send private message
Mimamau
Apprentice
Apprentice


Joined: 11 Jun 2002
Posts: 160
Location: Germany

PostPosted: Tue Feb 25, 2003 1:51 pm    Post subject: Reply with quote

So if your cam is a v4l device, maybe vcr can help you...
Back to top
View user's profile Send private message
PARENA
Guru
Guru


Joined: 06 Jan 2003
Posts: 349

PostPosted: Tue Feb 25, 2003 4:29 pm    Post subject: Reply with quote

Mimamau wrote:
So if your cam is a v4l device, maybe vcr can help you...


hmpf...

Code:
make  all-recursive
make[1]: Entering directory `/var/tmp/portage/vcr-1.09-r2/work/vcr-1.09'
Making all in src
make[2]: Entering directory `/var/tmp/portage/vcr-1.09-r2/work/vcr-1.09/src'
g++ -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/include/avifile  -O2 -c main.cc
g++ -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/include/avifile  -O2 -c v4lxif.cc
g++ -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/include/avifile  -O2 -c dsp.cc
g++ -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/include/avifile  -O2 -c capproc.cc
In file included from capproc.cc:14:
/usr/include/avifile/fourcc.h:4:2: warning: #warning Use #include "avm_fourcc.h" instead
main.cc: In function `void list_attributes(int)':
main.cc:603: no matching function for call to `GetCodecAttr(avm::CodecInfo&,
   const char*, char[256], int)'
/usr/include/avifile/creators.h:124: candidates are: int
   Creators::GetCodecAttr(const CodecInfo&, const char*, int&)
/usr/include/avifile/creators.h:132:                 int
   Creators::GetCodecAttr(const CodecInfo&, const char*, const char**)
make[2]: *** [main.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/vcr-1.09-r2/work/vcr-1.09/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/vcr-1.09-r2/work/vcr-1.09'
make: *** [all-recursive-am] Error 2

!!! ERROR: media-video/vcr-1.09-r2 failed.
!!! Function src_compile, Line 36, Exitcode 2
!!! emake died


well that just sucks :/
Back to top
View user's profile Send private message
herbie
Guru
Guru


Joined: 09 Oct 2002
Posts: 319
Location: London UK

PostPosted: Tue Feb 25, 2003 5:34 pm    Post subject: Reply with quote

I encode into a divx avi with mencoder (distributed with mplayer) using the following command:
Code:
mencoder -tv on:driver=v4l:adevice=/dev/dsp2:width=640:height=480 -o webcam.avi -ovc lavc -lavcopts vcodec=mpeg4 -oac mp3lame
Back to top
View user's profile Send private message
PARENA
Guru
Guru


Joined: 06 Jan 2003
Posts: 349

PostPosted: Tue Feb 25, 2003 7:56 pm    Post subject: Reply with quote

Code:
$ mencoder -tv on:driver=v4l:adevice=/dev/video0:width=640:height=480 -o webcam.avi -ovc lavc -lavcopts vcodec=mpeg4 -oac mp3lame
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/share/locale


MEncoder 0.90rc4-3.2.1 (C) 2000-2003 Arpad Gereoffy (see DOCS)

CPU: Advanced Micro Devices Athlon TB Thunderbird (Family: 6, Stepping: 2)
Detected cache-line size is 64 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Reading /home/parena/.mplayer/codecs.conf: can't open '/home/parena/.mplayer/codecs.conf': No such file or directory
Reading /usr/share/mplayer/codecs.conf: 50 audio & 135 video codecs
File not found: 'frameno.avi'
Reading config file /home/parena/.mplayer/mencoder: No such file or directory
success: format: 0  data: 0x0 - 0x0
TV detected! ;-)
Selected driver: v4l
 name: Video 4 Linux input
 author: Alex Beregszaszi <alex@naxine.org>
 comment: under development
Selected device: Philips 675 webcam
 Capabilites: capture
 Device type: 1
 Supported sizes: 128x96 => 640x480
 Inputs: 1
  0: Webcam:  (tuner:0, norm:pal)
unable to open '/dev/video0': Device or resource busy
============ 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...


Okay, what I understand here is that I need to get the encoding type supported and that /dev/video0 is in use. But /dev/video0 isn't in use. When I start "camstream" it runs fine. I shut it down, try mencoder and I get this error. However, trying "camstream" again works without problems.

Sorry I'm so much trouble, I'm just pretty much a noob when it comes to video. I can setup my webcam to take the pictures with for example camstream and all, but that's about it. :(
Back to top
View user's profile Send private message
herbie
Guru
Guru


Joined: 09 Oct 2002
Posts: 319
Location: London UK

PostPosted: Tue Feb 25, 2003 9:42 pm    Post subject: Reply with quote

ok, sorry adevice is the audio device (my webcam has a builtin micrphone) from the command you entered mencoder was probably trying to encode audio from your video input - not gonna happen! You probably don't need to specify a device, this should be detected, try something like:
Code:
mencoder -tv on:driver=v4l:width=640:height=480 -o webcam.avi -ovc lavc -lavcopts vcodec=mpeg4 -oac mp3lame

hope that helps,
Herbie.
Back to top
View user's profile Send private message
PARENA
Guru
Guru


Joined: 06 Jan 2003
Posts: 349

PostPosted: Wed Feb 26, 2003 2:24 pm    Post subject: Reply with quote

YAY! THAT WORKS! Very cool, thanks!!!

*happy camper* :)
Back to top
View user's profile Send private message
Cmor
n00b
n00b


Joined: 28 Jul 2002
Posts: 44
Location: Westbrook, Maine

PostPosted: Sat Mar 15, 2003 11:42 pm    Post subject: using vcr on composite1 input Reply with quote

Any idea on how to make vcr record on the composite input instead of the tv tuner? This is driving me INSANE!!!! :x
Back to top
View user's profile Send private message
qwkbrnfox
Apprentice
Apprentice


Joined: 05 Nov 2002
Posts: 231
Location: Vancouver, BC, Canada

PostPosted: Mon Mar 17, 2003 4:37 pm    Post subject: Re: using vcr on composite1 input Reply with quote

Cmor wrote:
Any idea on how to make vcr record on the composite input instead of the tv tuner? This is driving me INSANE!!!! :x

Give
Code:
v4lctl -c /dev/video setinput Composite1
You will probably have to replace /dev/video with the appropriate device.

Disclaimer: I haven't used this for a while. I _think_ this was the right command!
Back to top
View user's profile Send private message
Cmor
n00b
n00b


Joined: 28 Jul 2002
Posts: 44
Location: Westbrook, Maine

PostPosted: Mon Mar 17, 2003 5:35 pm    Post subject: Reply with quote

ok will try that. I was hoping not to have to score a VCR for this but this may be just what it takes. thanks!
Back to top
View user's profile Send private message
CountZero
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jan 2003
Posts: 79
Location: Arlington, TX, USA

PostPosted: Mon Mar 17, 2003 5:54 pm    Post subject: OT: What webcam? Reply with quote

PARENA,
What webcam do you have? My last one just died and I'm looking for a new one.
Back to top
View user's profile Send private message
Cmor
n00b
n00b


Joined: 28 Jul 2002
Posts: 44
Location: Westbrook, Maine

PostPosted: Mon Mar 17, 2003 10:25 pm    Post subject: bah Reply with quote

damn.....close but no cigar I guess. What is does is still try to record from the tv channel I think but it does seem to record. Audio is seemingly not there....I am using the linein on the sound card so should I specify another adevice option for that recording command? Im going to try to consult the mplayer page for more info since the man files for this stink.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum