Showing posts with label webcam. Show all posts
Showing posts with label webcam. Show all posts

Sunday, May 22, 2011

mepis8 webcam ffmpeg 5moy2011

tested 5moy2011 mepis8 ...
mepis8 uname -r 2.6.27!!!

---------------------
mpeg
352x288

/**************
****mepis8 ****
*************/

this work with the [ffmpeg -formats] [-f mpeg]
==================

LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so \ ffmpeg -f oss -i /dev/dsp -acodec mp3 -f mpeg -s 352x288 -r 30000/1001 -i /dev/video0 -qmin 4 -qmax 4 -b 500 -aspect 4:3 -f mpeg -r 30000/1001 -y vid-mpeg-ffmpeg-with-mp3sound-q4.mpg


NOTE: "/dev/dsp" can probably be swapped out with [/dev/audio] .

mepis8 is built on debian lenny repos. Debian's ffmpeg is missing alot of codecs but it works better than MENCODER for av sync web cam recording because mencoder did not keep the audio in sync.
for /dev/dsp to work it may require "alsa-oss.deb" the legacy compliance ap layer is likely needed. "?"
------------------
[check] "capture" control on it needs to be used to grab mic sound recording.

alt.....
NOW ffmpeg-svn
alt.....
Now mepis8 with debiand's 2.6.26 kernel loaded
uname -a
Linux mepis1 2.6.26-2-686 #1 SMP Wed Sep 21 04:35:47 UTC 2011 i686 GNU/Linux

/******************
*** debian / lenny *
*******************/
##############################
mpeg
================
640x480
================
mepis8 uname -r 2.6.27-***
mepis8 code:
$ LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so \
############
or
debian/lennny
uname -r 2.6.26-2-686
video :large
code lenny:
$ nice -n 19 ffmpeg -f oss -i /dev/dsp -acodec mp3 \ -f video4linux \ -s 640x480 \ -r 30000/1001 \ -i /dev/video0 -qmin 4 -qmax 4 \ -b 500 -aspect 4:3 \ -f mpeg -r 30000/1001 \ vid-[large]-mpeg-ffmpeg-with-mp3sound-q4-large.MPG
video :small
code lenny:
$ nice -n 19 ffmpeg -f oss -i /dev/dsp -acodec mp3 -ac 2 \ -f video4linux \ -s 352x288 \ -r 15000/1001 \ -i /dev/video0 -qmin 4 -qmax 30 \ -b 500 -aspect 4:3 \ -f mpeg -r 20 \ vid-[small]-mpeg-ffmpeg-with-mp3sound-q4-small.mpg

Friday, May 13, 2011

test my ffmpeg webcam vlog script

for lubuntu 11.04
webcam test script. has auto renaming using the time function.
os: linux Lubuntu11.04 @ 5moy2011 uname -r 2.6.38-8-generic hardware: acer aspire one [aod255e] webcam video driver: video4linux2 audio drivers: alsa for the mic.
#################################### note the low bitrate and frame rate, netbook settings are kind of slow so keep the bitrate, codecs and frame rate low so that the netbook keeps up with ffmpeg. press Q to stop ffmpeg.
#!/bin/bash
#
# test auto vlog1 [ naming] script and capture byant.
##############################
##ffmpeg -r 15 -b 800k -s 640x400 -f video4linux2 -i /dev/video0  \
## -vcodec msmpeg4v2 -f alsa -ac 2 -vol 512 -i hw:0,0 vlog111div3-vol512_alsa.avi
##
###############################

DIR=/home/"user"/vlog



  ffmpeg -r 15 -b 800k -s 640x400 -f video4linux2 -i /dev/video0  \
-vcodec msmpeg4v2 -f alsa -ac 2 -vol 512 -i hw:0,0  vv1temp-out-lowercase.avi &&
  

 sleep 2

 for old in `ls   ~/vlog/*.avi` ; do today=~/vlog/`date +%F+Hour%H+Min%M+Sec%S`.AVI  ;  mv     $old $today; done


lubuntu mods below. ########################################## sound works , video works , wifi and lan work. not bad for a 200$ netbook from walmart.
lsmod
Module                  Size  Used by
cryptd                 19801  0 
aes_i586               16956  3 
aes_generic            38023  1 aes_i586
parport_pc             32111  0 
ppdev                  12849  0 
snd_hda_codec_realtek   255820  1 
joydev                 17322  0 
snd_hda_intel          24140  6 
snd_hda_codec          90901  2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep              13274  1 snd_hda_codec
snd_pcm                80244  4 snd_hda_intel,snd_hda_codec
snd_seq_midi           13132  0 
arc4                   12473  2 
snd_rawmidi            25269  1 snd_seq_midi
snd_seq_midi_event     14475  1 snd_seq_midi
i915                  450944  2 
snd_seq                51291  2 snd_seq_midi,snd_seq_midi_event
brcm80211             690428  0 
snd_timer              28659  4 snd_pcm,snd_seq
snd_seq_device         14110  3 snd_seq_midi,snd_rawmidi,snd_seq
sparse_keymap          13666  0 
mac80211              257001  1 brcm80211
uvcvideo               66851  0 
drm_kms_helper         40745  1 i915
cfg80211              156212  2 brcm80211,mac80211
videodev               75143  1 uvcvideo
psmouse                73312  0 
drm                   180037  3 i915,drm_kms_helper
snd                    55295  17 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
serio_raw              12990  0 
soundcore              12600  1 snd
snd_page_alloc         14073  2 snd_hda_intel,snd_pcm
i2c_algo_bit           13184  1 i915
video                  18951  1 i915
lp                     13349  0 
parport                36746  3 parport_pc,ppdev,lp
usbhid                 41704  0 
hid                    77084  1 usbhid
ahci                   21591  2 
libahci                25548  1 ahci
atl1c                  36237  0 
#########################################
/********************** *** debian lenny old ** *********************/ and now for debian lenny mepis8/debian/lenny
debian lenny webcam scrypt. uname -r 2.6.26
#!/bin/bash
#
# test auto vlog1 [ naming] script and capture byant.
##############################
## lubuntu settingd BAK#
##ffmpeg -r 15 -b 800k -s 640x400 -f video4linux2 -i /dev/video0  \
## -vcodec msmpeg4v2 -f alsa -ac 2 -vol 512 -i hw:0,0 vlog111div3-vol512_alsa.avi
##
###############################

DIR=/home/"user name"/vlog1



 nice -n 19 ./ffmpeg-svn -f oss -i /dev/dsp -acodec mp3 -ac 2 -vol 512 \
  -f video4linux  -s 640x480 -r 30000/1001  -i /dev/video0  \
 -f avi -vcodec msmpeg4 -qmin 4 -qmax 7 -b 800 \
 vv1temp-out-lowercase.avi &&
  

 sleep 2

 for old in `ls   ~/vlog1/*.avi` ; do today=~/vlog1/`date +%F+Hour%H+Min%M+Sec%S`.AVI  ;  mv     $old $today; done

ok.

Tuesday, March 16, 2010

ffmpeg vextor-linux webcam video4linux2

vector-linux Vector linux = uses * ( LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so ) Vector Linux = and uses * ( -f video4linux2 ) thats video 4 linux TWO Debian uses * ( -f video4linux ) thats video 4 linux ONE. ================ ffmpeg web cam recording vector/linux $ LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so ffmpeg -f oss -i /dev/dsp -acodec mp3 \ -f video4linux2 -s 352x288 -r 30000/1001 -i /dev/video0 \ -qmin 4 -qmax 4 -b 500 \ -aspect 4:3 -f avi -vcodec msmpeg4 -r 30000/1001 -y tvffmpeg--msmpeg-with-mp3sound-q4.avi ============================= It's taking me a while to get use to Vector-Linux. With debian enabling the debian multi media repo made installing video editing software kind of easy. But doing video editing with Vector-Linux takes some work to install KDENLIVE and cinelerra but it can be done. ********************************** video transcoder ffmpeg and video editor kdenlive (build) (ffmpeg) and (kdenlive) for vector-linux to install a custom build of ffmpeg i used LINK: http://connie.slackware.com/~alien/slackbuilds/ffmpeg/build/ heres a how to do it VIDEO. Part 1. Upgrading and packaging ffmpeg from a 3rd party SlackBuild. http://forum.vectorlinux.com/index.php?PHPSESSID=574d0ea2e90d4c6bc3f31a467c59daa6&topic=8608.msg71234#msg71234
direct link @ http://www.opensourcebistro.com/blog1/?p=268 it worked for me BUT i did not follow the TUT letter for letter. * I was not able to get slackbuild to install apps but it did a good job compiling the apps so i let it do that then i ran " make install " ass root. my new ffmpeg worked great but from time to tine updates kind of fouled it up so i reinstall it when that happens. so don't delete the source when your done make a backup and reinstall ffmpeg from that. update do break things from time to time when you install 3rd party apps. *********************************** video editor (cinelarra) verssion (cinelerra-20080527-i686-1as.tgz ) ( 3rd party) (binary) from .... http://repository.slacky.eu/slackware-12.1/multimedia/cinelerra/20080527/ worked ok for me. but i did have to reinstall ffmpeg after installing cinelarra and i was not able to get my web cam to save mpeg file from cinelarra so i save my video as ms-avi's and that worked for me. NOTE recording my webcam from cinelarra the audio was all ways out of sync so thats why i use command line instead. command line apps are a lot more flexible to work with. *********************************** VOIP (skype) When i use Vector_Linux.....@$
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype " was needed for me to get my web cam to work with CAM programs like skype .

Wednesday, May 27, 2009

Linux debian lenny and a working 046d:08af Logitech QuickCam chat WEBCAM (Easy/Cool )

first plug it in and check " lsusb "
my quickcam chat (id) is suported my video4linux
Search debian for the gspca driver for the chipset.
now open a terminal and type "uname -r" to find your kernel module. mine is " uname -r 2.6.26-2-686 " ( so i have to install the " gspca-modules-2.6.26-2-686 ") video4linux should allso be installed. use apt-get.......... and modeprobe the gspca module OR reboot. and your web cam should work
------------------------------ " lsmod " should show : gspca 639568 0 videodev 27520 1 gspca v4l1_compat 12260 1 videodev ------------------------------
you can test your web cam with programs like chease and xawtv. Skype vide o works for me. but some programs like black box bsetbg and other wallpaper aps can screwe up skype2 video. black box bsetbg will not let skype2 display video. so don't use bsetbg to set your wallpaper. I logged out of my icewm desktop and log back in and video chat worked for me. CHeeSe come defualt with debian lenny. but cheese only records WEBCAM video as ogg theora. i'm not a fan of "ogm" oggmux, So I don't use CHeeSE so try using ffmpeg to record video. ffmpeg can record video to avi or mpeg formats, thats why i like VLC video land client can stream the webcam video as well. have fun with your $20 Logitech QuickCam chat web cam. I got mine from Walmart for $20. it works good for cif video 352x288 30fps on my slow pc. good enough for skype2 and chat.

Monday, May 25, 2009

record your webcam with ffmpeg-svn

"1st just the video" for a quick test $ ./ffmpeg -f video4linux -s 352x288 -r 30000/1001 -i /dev/video0 -sameq -aspect 4:3 -f avi -vcodec msmpeg4 -r 30000/1001 -y tvffmpeg.avi ====================== this codec only works with the ffmpeg-svn that i compiled. because DEBIAN can be so stupid some times and not to include extra codecs........ ///////////////////////////////////////////////// /////////------- sound no try the recording with a 3.5mm mic...... =============== " with your sound this time...." " using -f oss -i /dev/dsp \ " ============== now with audio $ ./ffmpeg-svn -f oss -i /dev/dsp \ -f video4linux -s 352x288 -r 30000/1001 -i /dev/video0 \ -sameq -aspect 4:3 -f avi -vcodec msmpeg4 -r 30000/1001 -y tvffmpeg--msmpeg-with-sound.avi ------------------------------------- //////////////////////// /////---- AND NOW you can " TEST " acodec mp3 $ ./ffmpeg-svn -f oss -i /dev/dsp -acodec mp3 \ -f video4linux -s 352x288 -r 30000/1001 -i /dev/video0 \ -sameq -aspect 4:3 -f avi -vcodec msmpeg4 -r 30000/1001 -y tvffmpeg--msmpeg-with-mp3sound.avi #////////////////////////// #///////////////////////// #/////////////////////// #//////////////////// #///////////////// #///////////// #//////// # last a low quality format for a smal file this time. $ ./ffmpeg-svn -f oss -i /dev/dsp -acodec mp3 \ -f video4linux -s 352x288 -r 30000/1001 -i /dev/video0 \ -qmin 4 -qmax 4 -b 500 \ -aspect 4:3 -f avi -vcodec msmpeg4 -r 30000/1001 -y tvffmpeg--msmpeg-with-mp3sound-q4.avi

Tuesday, May 12, 2009

improve-your webcams image quality.

if your new to webcams check this site out. URL:
http://strobist.blogspot.com/2007/05/how-to-improve-your-cheapo-webcams.html
http://strobist.blogspot.com/2007/05/how-to-improve-your-cheapo-webcams.html