PDA

View Full Version : HOW TO: Use VLC to capture video from your webcam to a file



anil_robo
March 13th, 2006, 08:25 AM
I tried the VLC wizard tonight on Ubuntu Dapper Flight 5 and I was able to capture the webcam video to a file.

Do this:

Connect your webcam.

Open VLC
File--> OPen capture device
Go to Video4Linux tab
Specify your video device name (mine was /dev/video0)
(My webcam audio doesn't work, so I left audio device as it is)
Norm: Automatic

Check "stream output" box
Click settings
Specify a filename (make sure you have write permissions there - usually a file on desktop or home directory is the best bet)
Unselect "dump raw input" (it must reamain empty)
Encapsulation method: MPEG1
Video codec: mp1v
Audio codec: mpga
"select all elementary streams" should remain empty.

Press OK

Press OK

Now press PLAY button on VLC.
The video should start recording. You can check this while VLC is recording video by right clicking on the recording file and selecting properties (it will show increasing file size).

Notes:
1. You can do an HTTP streaming by a similar method you are able to capture to a file.
2. Powerusers:
Media resource locator:
v4l:// :v4l-vdev="/dev/video0" :v4l-adev="/dev/dsp" :v4l-norm=3 :v4l-frequency=-1
Destination target:
:sout=#transcode{vcodec=mp1v,vb=1024,scale=1}:dupl icate{dst=std{access=file,mux=mpeg1,url="FULL PATH NAME HERE"}}

========================================
Keywords: VLC, Video, Capture, Record, Encode, Save, V4L, Video for Linux, Streaming

s57nev
September 8th, 2006, 01:47 PM
Works fine ...but still you can't see yourself while recording and that's not acceptable. We need such application !

cvmostert
October 14th, 2006, 11:19 PM
Works fine ...but still you can't see yourself while recording and that's not acceptable. We need such application !

I totally agree with you... I need to see how stupid i look while recording... and what i am doing... and where to position myself.

Cheers.

edit: thanx anyway... a step in the right direction.

insub2
October 29th, 2006, 09:03 PM
i tried this and got the sound recorded but video is just a blue screen. though i am using a pci card with a vcr hooked up trying to record from a tape. any suggestions?

insub2
October 30th, 2006, 08:27 AM
i tried this and got the sound recorded but video is just a blue screen. though i am using a pci card with a vcr hooked up trying to record from a tape. any suggestions?
figured out that it has to do with my video capture card not working nicely with VLC (and this may be related to not working well with xawtv, also) but this method would work otherwise. thanks for the tip.

insub2
October 30th, 2006, 07:05 PM
SOLUTION!
for video capture card (as opposed to the webcam) set to NTSC (as opposed to NORM)


BUT the recorded quality isn't quite as good as the regular play quality. any thoughts?

stateq2
November 4th, 2006, 03:30 AM
Thanks! I've been trying this w/ mplayer, but the video output kinda fades away after a few seconds....but vlc worked perfect w/ better video quality.

kowal
August 6th, 2007, 08:20 PM
Works fine ...but still you can't see yourself while recording and that's not acceptable. We need such application !

You should try Freej

skanchi
August 24th, 2007, 03:30 PM
you can also select "play locally" in the outputs section. This enables both recording and viewing simultaneously

raphinou
August 30th, 2007, 09:54 AM
I have posted a howto about recording a webcam stream with vlc at http://blog.raphinou.com/2007/08/building-webcam-recorder-with-vlc-ion.html

ekravche
September 2nd, 2007, 02:27 AM
I'm recording but the video size is too small is there a way to change the size?

ozzyprv
September 2nd, 2007, 03:42 AM
Is there any way to confirm that my webcam is actually "/dev/video0"?

I followed the instruccion, but I cannot get the video recorded.

isecore
April 20th, 2008, 04:52 PM
This was exactly what I was looking for. Works fine. The only problem is that my video is horribly distorted.

I'm running a Logitech Quickcam Web (with built-in microphone) on Ubuntu Hardy running on AMD64, current as of 08/04/20. Camera works fine in everything else, but recording here is just noise.

Any input (no pun intended) would be appreciated :)

update: I fixed it. I had to manually specify the resolution in the advanced settings, then the image became normal.

Scormen
April 21st, 2008, 07:43 PM
Hi all,

I'm getting this error message when I try to open a capture device:

v4l demuxer error: cannot get channel infos

Any idea what's going wrong?

Thanks,
Kris

Metaleks
April 22nd, 2008, 05:53 AM
If your webcam is integrated into your laptop, where would the device be located? I can't for the life of me figure out.

pwn
May 23rd, 2008, 10:08 AM
I guess it depends on the driver. I have a Sony Vaio AR590E with an integrated camera. I installed the Ricoh Webcam driver and I got it to work with Mplayer, but couldnt get it to work with VLC. The driver is v4l2.

The device is /dev/video0

akaname
October 6th, 2008, 06:17 PM
Some cameras need v4l2, but VLC Version 0.8.6 supplied by Ubuntu Hardy doesn't support that. Ubuntu Intrepid (end of october) will supply VLC Version 0.9.3 and solve this problem.

OnlyWhisky
December 28th, 2008, 12:33 PM
It doesn't work with Logitech Communicate STX under Ubuntu 8.10.

johnjohn2
February 16th, 2009, 02:50 AM
thanks

danielsk
April 9th, 2009, 07:59 PM
Hi, I'm trying to record the video with my laptop built in camera and mic. I followed the tips and here is where I am now.

First, I'm using 8.10 AMD 64 on a HP DV5160 Pavilion laptop.

I can use VLC to record video and audio, BUT not both at once. If I set up in the VLC "video for linux" tab it records the audio, if I use the video for linux 2 tab it only records video.

I can setup both at once and try to sync video and audio later, but anyone has an idea of how to make them work together?

Thanks

Daniel

seetchoo
May 25th, 2009, 10:55 PM
I have almost exactly the same problem as danielsk has but I cannot capture audio even if I use "video for linux". Is there anybody out there who has any idea that what could be the solution?

danielsk
May 26th, 2009, 05:16 PM
@seetchoo, just to be sure, can you record audio in any other program?

ephigy
June 14th, 2009, 05:37 PM
I can record sound an video using ffmpeg (doesn't synch properly though)but using VLC I can't seem to record sound with my vid. I don't have mp4 listed though, I'm trying to do it with ogg. Am I missing a codec for mp4 (searched but didn't find any mp4 codecs).

executorvs
September 10th, 2009, 01:53 AM
did you ever find a solution to the lack of audio?

nawi2010
October 30th, 2009, 02:27 PM
is there any update for best alternate webcam video recording software for ubuntu instead vlc?

soni1770
November 2nd, 2009, 07:09 PM
cheese is ok

sudo aptget cheese
i thiink

kssworld93
August 10th, 2010, 12:30 AM
sudo apt-get install cheese

kushelmex
August 18th, 2010, 12:14 AM
Work perfect, tnks!!

wojtek.wurzenberger
March 4th, 2011, 04:57 PM
is there any update for best alternate webcam video recording software for ubuntu instead vlc?

I just installed guvcnew and it works perfect.

VLC is to complicated for me and I cannot configure it to stream and see the screen despite the option "Display locally" activated.
Although it streams, I do not see either the controls or panel!

Cheesy works too, but is slow and shatters the videos

My environment Ubuntu 10.10 (Maverick) amd64 runing from SDHC card with 3GB persistence casper file, Toshiba Satellite T115D (4GB RAM, 2Core AMD Vision 64 bit , built in webcam)

executorvs
March 16th, 2011, 06:56 AM
I've been using Kdenlive with great success for a fair bit now.