You are not logged in.

#1 2011-10-23 06:06:51

awayand
Member
Registered: 2009-09-25
Posts: 398

screencasting with webcam

I have searched the forum for the "best" screencasting program, I have tried out a couple, but none of them really suit me.

I tried ffcast, but it for some reason doesn't let me record audio.
I tried gtk-recordmydesktop, but I have the same issue.
I tried xvidcap, same problem.

Also, none of these programs seem to give me the option of recording simultaneously from the webcam. I want to do a screencast and have myself in it, in a small window on the bottom right of the screencast, for example.

I have considered using a more sophisticated program on windows and just running arch in a VM, but that is really clunky.

Anyone have a good setup to share?
thanks!

Offline

#2 2011-10-23 06:11:05

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: screencasting with webcam

Offline

#3 2011-10-23 06:17:59

awayand
Member
Registered: 2009-09-25
Posts: 398

Re: screencasting with webcam

I have tried ffcast2, but how would I get it to record my screen *and* webcam feed simultaneously?

Offline

#4 2011-10-23 08:08:46

stressat
Member
From: Romania
Registered: 2010-10-10
Posts: 73
Website

Re: screencasting with webcam

1- Record your webcam with cvlc for example:   cvlc v4l2:// :v4l2-vdev=”/dev/video0”
2- Record your desktop with ffmpeg:   
ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 30 -s 1280x960 -i :0.0 -acodec pcm_s16le -vcodec libx264 -vpre lossless_ultrafast -threads 0 -sameq captura.avi   

Use pavucontrol to choose audio stream.

Look the result: http://www.2shared.com/video/yd8-1xj9/captura.html

Sorry for my poor English... sad

LE: You can set the cvlc window (webcam) ”Always on top” if you prefer...

Last edited by stressat (2011-10-23 08:20:37)

Offline

#5 2011-10-23 09:13:06

awayand
Member
Registered: 2009-09-25
Posts: 398

Re: screencasting with webcam

very cool! I will check it out, thanks a lot! wink

Offline

#6 2011-10-23 10:38:59

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: screencasting with webcam

As indicated, these are two separate tasks.
As with VLC, FFmpeg also supports Video4Linux2:

ffplay -f video4linux2 /dev/video0

Search "video4linux2" in the ffmpeg(1) man page, there're several examples and some explanations you may find helpful.

Doing the two tasks simultaneously may be very CPU intensive, you may want to record webcam first to a file,

ffmpeg -f video4linux2 -i /dev/video0 out.mpeg

and play it while you do the screencasting. Presumably it will give better quality if your machine is not powerful enough...

Last edited by lolilolicon (2011-10-23 10:44:45)


This silver ladybug at line 28...

Offline

Board footer

Powered by FluxBB