i can't use my digital camera ( Canon ixus 160) as webcam is there an application for that ? or just in the settings
Here's another solution.
List of gphoto2 supported cameras: http://gphoto.org/proj/libgphoto2/support.php
You need install gphoto, v4l2loopback-utils and ffmpeg.
sudo modprobe v4l2loopback
gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video1
Now you have webcamera from your digital camera.
This can be done but requires a number of steps. First, you must install
sudo apt-get install gphoto2 v4l2loopback-utils
Plug in your camera via USB. Then run
gphoto2 --abilities to see if your camera is capable of doing this. Here's the output when connecting a Canon EOS 1200D
sudo modprobe v4l2loopback to activate the kernel module needed to create a video device from your camera.
I've seen older tutorials on this task that use gst-launch-0.10 to achieve the next step of this task (e.g. this one). I am using Ubuntu 17.04 which uses gst-launch-1.0. Below is the updated command to create a video device from your digital camera:
gphoto2 --stdout --capture-movie | gst-launch-1.0 fdsrc ! decodebin3 name=dec ! queue ! videoconvert ! v4l2sink device=/dev/video1
This will create a video device in
/dev/video1, which you can now use in programs like VLC.
If you see any errors about the device being in use you need to kill the
gvfs-gphoto2-volume-monitor process by running
I was able to get video & image recording with a Canon DSLR 600D
sudo apt get install guvcview ffmpeg gphoto2 v4l2loopback-dkms v4l2loopback-utils ffmpeg
Plug in camera, any mode seemed to work, test with the basics:
sudo modprobe v4l2loopback killall gvfs-gphoto2-volume-monitor
lsusb gphoto2 --auto-detect LANG=C gphoto2 --summary LANG=C gphoto2 --list-all-config
gphoto2 --capture-image gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video1
Visualize (in another terminal)
You can try different
There's also EOS Movie Recorder
cd eos-movrec-0.3.2_beta sudo apt install libgphoto2-dev mkdir build cd build cmake -DCMAKE_BUILD_TYPE=Release .. make
I wanted to do that once to set up a basic webcam to see what my animals did all day while away at work, lol. You might have to set up streaming with vlc.