Pure FREE screencast program or wtf


I had a chat with a guy in these days about how much pain in the ass could be a nice screencast program that does something like that

display your own webcam
record your audio mic
record your desktop

ok yes you can do it in several ways but it’s a pain in the ass if you try to do that using webm or ogg

yes there is recordmydesktop but for some guys this software simply doesn’t work well , i mean the audio is not synchronized with the video and so …

so we started to do something at the end:

to avoid problems with ffmpeg webm and shit like that i have used this

sudo apt-get install vorbis-tools oggz-tools

ffplay  -f video4linux2   -i /dev/video0 -video_size 640x480 & arecord -f cd -t raw | oggenc - -r -o $HOME/out_audio.ogg  & ffmpeg -f x11grab  -s $(xrandr  | awk '/, current /{ gsub(/\,/,""); print $8"x"$10}') -i :0.0  -r 25 -threads $(awk '/processor/{print}' /proc/cpuinfo | wc -l) -y -vcodec ljpeg $HOME/out_video.avi

if you want stop the all that shit just do

pkill --signal TERM oggenc & pkill --signal TERM ffmpeg & pkill --signal TERM ffplay 

as you can seee there is

arecord -f cd -t raw | oggenc - -r -o $HOME/out_audio.ogg 

if you need to use non-standard mic you need to se the device how ?

arecord -L  

you could get a lot of crap here but there is a way to print just what you need ….

for example

arecord -L | awk -F'=' '/CARD/ && !/DEV/ {print $2}' 
 U0x46d0x81b
IXP

so let’s say i want use the usb card that is U0x46d0x81b the other is IXP

i would write

arecord --quiet --file-type wav --rate=44100 -D plughw:U0x46d0x81b| oggenc - -r -o $HOME/out_audio.ogg 

if i want use the internal audio card instead that is the default too…

arecord --quiet --file-type wav --rate=44100 -D plughw:IXP | oggenc - -r -o $HOME/out_audio.ogg 

my own stuff don’t read😀

this my own string

ffplay  -f video4linux2   -i /dev/$(ls /dev/  | grep video) -video_size 640x480 & arecord -f cd -t raw | oggenc - -r -o $HOME/out_audio.ogg  & ffmpeg -f x11grab  -s $(xrandr  | awk '/, current /{ gsub(/\,/,""); print $8"x"$10}') -i :0.0  -r 25 -threads $(awk '/processor/{print}' /proc/cpuinfo | wc -l) -y -vcodec ljpeg $HOME/out_video.avi
ffplay  -f video4linux2   -i /dev/$(ls /dev/  | grep video) -video_size 640x480 & arecord --quiet --file-type wav --rate=44100 -D plughw:U0x46d0x81b | oggenc - -r -o $HOME/out_audio.ogg  & ffmpeg -f x11grab  -s $(xrandr  | awk '/, current /{ gsub(/\,/,""); print $8"x"$10}') -i :0.0  -r 25 -threads $(awk '/processor/{print}' /proc/cpuinfo | wc -l) -y -vcodec ljpeg $HOME/out_video.avi

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: