Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Last revision Both sides next revision | ||
en:guides:webcam [2014/04/18 18:00] pankso created |
en:guides:webcam [2014/04/18 18:13] pankso |
||
---|---|---|---|
Line 5: | Line 5: | ||
- | ==== Installation ===== | + | ===== Installation ====== |
- | by default your webcam may not be detected due to missinf kernel drivers and this is normal since SliTaz dont provide webcam support on the LiveCD. To install the drivers: | + | by default your webcam may not be detected due to missinf kernel drivers and this is normal since SliTaz dont provide webcam support on the LiveCD. To install the drivers and load it: |
# tazpkg -gi linux-media | # tazpkg -gi linux-media | ||
+ | # modprobe uvcvideo | ||
+ | | ||
+ | You can check if the kernel loaded correctly the module with: 'dmesg | tail'. The webcam may be used with | ||
+ | skype and other visio tools. To try the webcam with Mplayer: | ||
+ | |||
+ | $ mplayer tv:// -tv driver=v4l2:device=/dev/video0 -vo x11 | ||
+ | |||
+ | |||
+ | ===== Pictures and recording === | ||
+ | |||
+ | To take pictures or record the webcam you van install and use Mplayer: | ||
+ | |||
+ | # tazpkg -gi mplayer | ||
+ | | ||
+ | Take a picture: | ||
+ | |||
+ | mplayer tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0 \ | ||
+ | -fps 15 -vo png -frames 1 | ||
+ | |||
+ | Record a video to a file named myvideo.avi: | ||
+ | |||
+ | mencoder tv:// -tv \ | ||
+ | driver=v4l2:width=640:height=480:device=/dev/video0:forceaudio:adevice=/dev/dsp \ | ||
+ | -ovc lavc -oac mp3lame -lameopts cbr:br=64:mode=3 \ | ||
+ | -o myvideo.avi | ||
+ | |||
+ |