Using a digital camera ( Canon) as webcam
I can't use my digital camera ( Canon ixus 160) as webcam
is there an application for that ?
or just in the settings?
webcam camera
add a comment |
I can't use my digital camera ( Canon ixus 160) as webcam
is there an application for that ?
or just in the settings?
webcam camera
Add more info. You must be getting some error or something.
– Rahul
Dec 3 '16 at 9:24
Are there any clues in the manual that this is possible? A similar question has been asked before askubuntu.com/questions/53889/… but it was closed (for no good reason imho). Also something like that is done in this moreno.marzolla.name/software/linux-webcam-server tutorial.
– Bruni
Dec 3 '16 at 13:29
add a comment |
I can't use my digital camera ( Canon ixus 160) as webcam
is there an application for that ?
or just in the settings?
webcam camera
I can't use my digital camera ( Canon ixus 160) as webcam
is there an application for that ?
or just in the settings?
webcam camera
webcam camera
edited Jan 16 at 7:16
Codito ergo sum
1,5043825
1,5043825
asked Dec 3 '16 at 9:21
Fahed GhodhbeneFahed Ghodhbene
3112
3112
Add more info. You must be getting some error or something.
– Rahul
Dec 3 '16 at 9:24
Are there any clues in the manual that this is possible? A similar question has been asked before askubuntu.com/questions/53889/… but it was closed (for no good reason imho). Also something like that is done in this moreno.marzolla.name/software/linux-webcam-server tutorial.
– Bruni
Dec 3 '16 at 13:29
add a comment |
Add more info. You must be getting some error or something.
– Rahul
Dec 3 '16 at 9:24
Are there any clues in the manual that this is possible? A similar question has been asked before askubuntu.com/questions/53889/… but it was closed (for no good reason imho). Also something like that is done in this moreno.marzolla.name/software/linux-webcam-server tutorial.
– Bruni
Dec 3 '16 at 13:29
Add more info. You must be getting some error or something.
– Rahul
Dec 3 '16 at 9:24
Add more info. You must be getting some error or something.
– Rahul
Dec 3 '16 at 9:24
Are there any clues in the manual that this is possible? A similar question has been asked before askubuntu.com/questions/53889/… but it was closed (for no good reason imho). Also something like that is done in this moreno.marzolla.name/software/linux-webcam-server tutorial.
– Bruni
Dec 3 '16 at 13:29
Are there any clues in the manual that this is possible? A similar question has been asked before askubuntu.com/questions/53889/… but it was closed (for no good reason imho). Also something like that is done in this moreno.marzolla.name/software/linux-webcam-server tutorial.
– Bruni
Dec 3 '16 at 13:29
add a comment |
4 Answers
4
active
oldest
votes
Here's another solution.
List of gphoto2 supported cameras: http://gphoto.org/proj/libgphoto2/support.php
You need install gphoto, v4l2loopback-utils and ffmpeg.
Then
sudo modprobe v4l2loopback
and
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.
I get this error (cut at top): Input #0, mjpeg, from 'pipe:': Duration: N/A, bitrate: N/A Stream #0:0: Video: mjpeg, yuvj422p(pc, bt470bg/unknown/unknown), 1056x704, 25 tbr, 1200k tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (mjpeg (native) -> rawvideo (native)) [swscaler @ 0x559c14f77de0] deprecated pixel format used, make sure you did set range correctly [v4l2 @ 0x559c14f42fc0] ioctl(VIDIOC_G_FMT): Invalid argument Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument Error initializing output stream 0:0 -- Conversion failed! ➜ ~
– noreabu
Nov 4 '17 at 11:01
add a comment |
This can be done but requires a number of steps. First, you must install gphoto
and v4l2loopback-utils
.
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
Then run 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 killall gvfs-gphoto2-volume-monitor
.
4
I get this:➜ ~ gphoto2 --stdout --capture-movie | gst-launch-1.0 fdsrc ! decodebin3 name=dec ! queue ! videoconvert ! v4l2sink device=/dev/video1 Setting pipeline to PAUSED ... Nehme Vorschaubilder als Film in 'stdout' auf. Drücke Ctrl-C zum abbrechen. ERROR: Pipeline doesn't want to pause. ERROR: from element /GstPipeline:pipeline0/GstV4l2Sink:v4l2sink0: »/dev/video1« ist kein Wiedergabegerät. Additional debug info: v4l2_calls.c(642): gst_v4l2_open (): /GstPipeline:pipeline0/GstV4l2Sink:v4l2sink0: Capabilities: 0x5200001 Setting pipeline to NULL ... Freeing pipeline ...
– noreabu
Nov 4 '17 at 10:57
@noreabu sounds like a bug that you should report
– hellocatfood
Nov 4 '17 at 19:32
Try /dev/video2
– danger89
Dec 2 '18 at 21:34
This worked via the ffmpeg answer above. I had to useguvcview
to see the output
– Jonathan
Jan 15 at 19:11
add a comment |
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:
Prep
sudo modprobe v4l2loopback
killall gvfs-gphoto2-volume-monitor
Test
lsusb
gphoto2 --auto-detect
LANG=C gphoto2 --summary
LANG=C gphoto2 --list-all-config
Try
gphoto2 --capture-image
gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video1
Visualize (in another terminal)
guvcview
or
guvcview-brlin.guvcview
You can try different /dev/video1
commands
There's also EOS Movie Recorder
Unzip this: https://sourceforge.net/projects/eos-movrec/files/eos-movrec/0.3.3_beta/eos-movrec-0.3.3_beta.zip/download
cd eos-movrec-0.3.2_beta
sudo apt install libgphoto2-dev
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
add a comment |
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.
https://help.ubuntu.com/community/Webcam
Your answer/the link doesn't actually address the specific problems.
– hellocatfood
Dec 4 '17 at 16:16
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f856460%2fusing-a-digital-camera-canon-as-webcam%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
Here's another solution.
List of gphoto2 supported cameras: http://gphoto.org/proj/libgphoto2/support.php
You need install gphoto, v4l2loopback-utils and ffmpeg.
Then
sudo modprobe v4l2loopback
and
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.
I get this error (cut at top): Input #0, mjpeg, from 'pipe:': Duration: N/A, bitrate: N/A Stream #0:0: Video: mjpeg, yuvj422p(pc, bt470bg/unknown/unknown), 1056x704, 25 tbr, 1200k tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (mjpeg (native) -> rawvideo (native)) [swscaler @ 0x559c14f77de0] deprecated pixel format used, make sure you did set range correctly [v4l2 @ 0x559c14f42fc0] ioctl(VIDIOC_G_FMT): Invalid argument Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument Error initializing output stream 0:0 -- Conversion failed! ➜ ~
– noreabu
Nov 4 '17 at 11:01
add a comment |
Here's another solution.
List of gphoto2 supported cameras: http://gphoto.org/proj/libgphoto2/support.php
You need install gphoto, v4l2loopback-utils and ffmpeg.
Then
sudo modprobe v4l2loopback
and
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.
I get this error (cut at top): Input #0, mjpeg, from 'pipe:': Duration: N/A, bitrate: N/A Stream #0:0: Video: mjpeg, yuvj422p(pc, bt470bg/unknown/unknown), 1056x704, 25 tbr, 1200k tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (mjpeg (native) -> rawvideo (native)) [swscaler @ 0x559c14f77de0] deprecated pixel format used, make sure you did set range correctly [v4l2 @ 0x559c14f42fc0] ioctl(VIDIOC_G_FMT): Invalid argument Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument Error initializing output stream 0:0 -- Conversion failed! ➜ ~
– noreabu
Nov 4 '17 at 11:01
add a comment |
Here's another solution.
List of gphoto2 supported cameras: http://gphoto.org/proj/libgphoto2/support.php
You need install gphoto, v4l2loopback-utils and ffmpeg.
Then
sudo modprobe v4l2loopback
and
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.
Here's another solution.
List of gphoto2 supported cameras: http://gphoto.org/proj/libgphoto2/support.php
You need install gphoto, v4l2loopback-utils and ffmpeg.
Then
sudo modprobe v4l2loopback
and
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.
edited Jan 15 at 23:01
Jonathan
1,37531530
1,37531530
answered Nov 4 '17 at 10:24
akadem87akadem87
7112
7112
I get this error (cut at top): Input #0, mjpeg, from 'pipe:': Duration: N/A, bitrate: N/A Stream #0:0: Video: mjpeg, yuvj422p(pc, bt470bg/unknown/unknown), 1056x704, 25 tbr, 1200k tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (mjpeg (native) -> rawvideo (native)) [swscaler @ 0x559c14f77de0] deprecated pixel format used, make sure you did set range correctly [v4l2 @ 0x559c14f42fc0] ioctl(VIDIOC_G_FMT): Invalid argument Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument Error initializing output stream 0:0 -- Conversion failed! ➜ ~
– noreabu
Nov 4 '17 at 11:01
add a comment |
I get this error (cut at top): Input #0, mjpeg, from 'pipe:': Duration: N/A, bitrate: N/A Stream #0:0: Video: mjpeg, yuvj422p(pc, bt470bg/unknown/unknown), 1056x704, 25 tbr, 1200k tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (mjpeg (native) -> rawvideo (native)) [swscaler @ 0x559c14f77de0] deprecated pixel format used, make sure you did set range correctly [v4l2 @ 0x559c14f42fc0] ioctl(VIDIOC_G_FMT): Invalid argument Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument Error initializing output stream 0:0 -- Conversion failed! ➜ ~
– noreabu
Nov 4 '17 at 11:01
I get this error (cut at top): Input #0, mjpeg, from 'pipe:': Duration: N/A, bitrate: N/A Stream #0:0: Video: mjpeg, yuvj422p(pc, bt470bg/unknown/unknown), 1056x704, 25 tbr, 1200k tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (mjpeg (native) -> rawvideo (native)) [swscaler @ 0x559c14f77de0] deprecated pixel format used, make sure you did set range correctly [v4l2 @ 0x559c14f42fc0] ioctl(VIDIOC_G_FMT): Invalid argument Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument Error initializing output stream 0:0 -- Conversion failed! ➜ ~
– noreabu
Nov 4 '17 at 11:01
I get this error (cut at top): Input #0, mjpeg, from 'pipe:': Duration: N/A, bitrate: N/A Stream #0:0: Video: mjpeg, yuvj422p(pc, bt470bg/unknown/unknown), 1056x704, 25 tbr, 1200k tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (mjpeg (native) -> rawvideo (native)) [swscaler @ 0x559c14f77de0] deprecated pixel format used, make sure you did set range correctly [v4l2 @ 0x559c14f42fc0] ioctl(VIDIOC_G_FMT): Invalid argument Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument Error initializing output stream 0:0 -- Conversion failed! ➜ ~
– noreabu
Nov 4 '17 at 11:01
add a comment |
This can be done but requires a number of steps. First, you must install gphoto
and v4l2loopback-utils
.
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
Then run 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 killall gvfs-gphoto2-volume-monitor
.
4
I get this:➜ ~ gphoto2 --stdout --capture-movie | gst-launch-1.0 fdsrc ! decodebin3 name=dec ! queue ! videoconvert ! v4l2sink device=/dev/video1 Setting pipeline to PAUSED ... Nehme Vorschaubilder als Film in 'stdout' auf. Drücke Ctrl-C zum abbrechen. ERROR: Pipeline doesn't want to pause. ERROR: from element /GstPipeline:pipeline0/GstV4l2Sink:v4l2sink0: »/dev/video1« ist kein Wiedergabegerät. Additional debug info: v4l2_calls.c(642): gst_v4l2_open (): /GstPipeline:pipeline0/GstV4l2Sink:v4l2sink0: Capabilities: 0x5200001 Setting pipeline to NULL ... Freeing pipeline ...
– noreabu
Nov 4 '17 at 10:57
@noreabu sounds like a bug that you should report
– hellocatfood
Nov 4 '17 at 19:32
Try /dev/video2
– danger89
Dec 2 '18 at 21:34
This worked via the ffmpeg answer above. I had to useguvcview
to see the output
– Jonathan
Jan 15 at 19:11
add a comment |
This can be done but requires a number of steps. First, you must install gphoto
and v4l2loopback-utils
.
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
Then run 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 killall gvfs-gphoto2-volume-monitor
.
4
I get this:➜ ~ gphoto2 --stdout --capture-movie | gst-launch-1.0 fdsrc ! decodebin3 name=dec ! queue ! videoconvert ! v4l2sink device=/dev/video1 Setting pipeline to PAUSED ... Nehme Vorschaubilder als Film in 'stdout' auf. Drücke Ctrl-C zum abbrechen. ERROR: Pipeline doesn't want to pause. ERROR: from element /GstPipeline:pipeline0/GstV4l2Sink:v4l2sink0: »/dev/video1« ist kein Wiedergabegerät. Additional debug info: v4l2_calls.c(642): gst_v4l2_open (): /GstPipeline:pipeline0/GstV4l2Sink:v4l2sink0: Capabilities: 0x5200001 Setting pipeline to NULL ... Freeing pipeline ...
– noreabu
Nov 4 '17 at 10:57
@noreabu sounds like a bug that you should report
– hellocatfood
Nov 4 '17 at 19:32
Try /dev/video2
– danger89
Dec 2 '18 at 21:34
This worked via the ffmpeg answer above. I had to useguvcview
to see the output
– Jonathan
Jan 15 at 19:11
add a comment |
This can be done but requires a number of steps. First, you must install gphoto
and v4l2loopback-utils
.
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
Then run 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 killall gvfs-gphoto2-volume-monitor
.
This can be done but requires a number of steps. First, you must install gphoto
and v4l2loopback-utils
.
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
Then run 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 killall gvfs-gphoto2-volume-monitor
.
answered May 14 '17 at 23:51
hellocatfoodhellocatfood
1,63042355
1,63042355
4
I get this:➜ ~ gphoto2 --stdout --capture-movie | gst-launch-1.0 fdsrc ! decodebin3 name=dec ! queue ! videoconvert ! v4l2sink device=/dev/video1 Setting pipeline to PAUSED ... Nehme Vorschaubilder als Film in 'stdout' auf. Drücke Ctrl-C zum abbrechen. ERROR: Pipeline doesn't want to pause. ERROR: from element /GstPipeline:pipeline0/GstV4l2Sink:v4l2sink0: »/dev/video1« ist kein Wiedergabegerät. Additional debug info: v4l2_calls.c(642): gst_v4l2_open (): /GstPipeline:pipeline0/GstV4l2Sink:v4l2sink0: Capabilities: 0x5200001 Setting pipeline to NULL ... Freeing pipeline ...
– noreabu
Nov 4 '17 at 10:57
@noreabu sounds like a bug that you should report
– hellocatfood
Nov 4 '17 at 19:32
Try /dev/video2
– danger89
Dec 2 '18 at 21:34
This worked via the ffmpeg answer above. I had to useguvcview
to see the output
– Jonathan
Jan 15 at 19:11
add a comment |
4
I get this:➜ ~ gphoto2 --stdout --capture-movie | gst-launch-1.0 fdsrc ! decodebin3 name=dec ! queue ! videoconvert ! v4l2sink device=/dev/video1 Setting pipeline to PAUSED ... Nehme Vorschaubilder als Film in 'stdout' auf. Drücke Ctrl-C zum abbrechen. ERROR: Pipeline doesn't want to pause. ERROR: from element /GstPipeline:pipeline0/GstV4l2Sink:v4l2sink0: »/dev/video1« ist kein Wiedergabegerät. Additional debug info: v4l2_calls.c(642): gst_v4l2_open (): /GstPipeline:pipeline0/GstV4l2Sink:v4l2sink0: Capabilities: 0x5200001 Setting pipeline to NULL ... Freeing pipeline ...
– noreabu
Nov 4 '17 at 10:57
@noreabu sounds like a bug that you should report
– hellocatfood
Nov 4 '17 at 19:32
Try /dev/video2
– danger89
Dec 2 '18 at 21:34
This worked via the ffmpeg answer above. I had to useguvcview
to see the output
– Jonathan
Jan 15 at 19:11
4
4
I get this:
➜ ~ gphoto2 --stdout --capture-movie | gst-launch-1.0 fdsrc ! decodebin3 name=dec ! queue ! videoconvert ! v4l2sink device=/dev/video1 Setting pipeline to PAUSED ... Nehme Vorschaubilder als Film in 'stdout' auf. Drücke Ctrl-C zum abbrechen. ERROR: Pipeline doesn't want to pause. ERROR: from element /GstPipeline:pipeline0/GstV4l2Sink:v4l2sink0: »/dev/video1« ist kein Wiedergabegerät. Additional debug info: v4l2_calls.c(642): gst_v4l2_open (): /GstPipeline:pipeline0/GstV4l2Sink:v4l2sink0: Capabilities: 0x5200001 Setting pipeline to NULL ... Freeing pipeline ...
– noreabu
Nov 4 '17 at 10:57
I get this:
➜ ~ gphoto2 --stdout --capture-movie | gst-launch-1.0 fdsrc ! decodebin3 name=dec ! queue ! videoconvert ! v4l2sink device=/dev/video1 Setting pipeline to PAUSED ... Nehme Vorschaubilder als Film in 'stdout' auf. Drücke Ctrl-C zum abbrechen. ERROR: Pipeline doesn't want to pause. ERROR: from element /GstPipeline:pipeline0/GstV4l2Sink:v4l2sink0: »/dev/video1« ist kein Wiedergabegerät. Additional debug info: v4l2_calls.c(642): gst_v4l2_open (): /GstPipeline:pipeline0/GstV4l2Sink:v4l2sink0: Capabilities: 0x5200001 Setting pipeline to NULL ... Freeing pipeline ...
– noreabu
Nov 4 '17 at 10:57
@noreabu sounds like a bug that you should report
– hellocatfood
Nov 4 '17 at 19:32
@noreabu sounds like a bug that you should report
– hellocatfood
Nov 4 '17 at 19:32
Try /dev/video2
– danger89
Dec 2 '18 at 21:34
Try /dev/video2
– danger89
Dec 2 '18 at 21:34
This worked via the ffmpeg answer above. I had to use
guvcview
to see the output– Jonathan
Jan 15 at 19:11
This worked via the ffmpeg answer above. I had to use
guvcview
to see the output– Jonathan
Jan 15 at 19:11
add a comment |
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:
Prep
sudo modprobe v4l2loopback
killall gvfs-gphoto2-volume-monitor
Test
lsusb
gphoto2 --auto-detect
LANG=C gphoto2 --summary
LANG=C gphoto2 --list-all-config
Try
gphoto2 --capture-image
gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video1
Visualize (in another terminal)
guvcview
or
guvcview-brlin.guvcview
You can try different /dev/video1
commands
There's also EOS Movie Recorder
Unzip this: https://sourceforge.net/projects/eos-movrec/files/eos-movrec/0.3.3_beta/eos-movrec-0.3.3_beta.zip/download
cd eos-movrec-0.3.2_beta
sudo apt install libgphoto2-dev
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
add a comment |
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:
Prep
sudo modprobe v4l2loopback
killall gvfs-gphoto2-volume-monitor
Test
lsusb
gphoto2 --auto-detect
LANG=C gphoto2 --summary
LANG=C gphoto2 --list-all-config
Try
gphoto2 --capture-image
gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video1
Visualize (in another terminal)
guvcview
or
guvcview-brlin.guvcview
You can try different /dev/video1
commands
There's also EOS Movie Recorder
Unzip this: https://sourceforge.net/projects/eos-movrec/files/eos-movrec/0.3.3_beta/eos-movrec-0.3.3_beta.zip/download
cd eos-movrec-0.3.2_beta
sudo apt install libgphoto2-dev
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
add a comment |
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:
Prep
sudo modprobe v4l2loopback
killall gvfs-gphoto2-volume-monitor
Test
lsusb
gphoto2 --auto-detect
LANG=C gphoto2 --summary
LANG=C gphoto2 --list-all-config
Try
gphoto2 --capture-image
gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video1
Visualize (in another terminal)
guvcview
or
guvcview-brlin.guvcview
You can try different /dev/video1
commands
There's also EOS Movie Recorder
Unzip this: https://sourceforge.net/projects/eos-movrec/files/eos-movrec/0.3.3_beta/eos-movrec-0.3.3_beta.zip/download
cd eos-movrec-0.3.2_beta
sudo apt install libgphoto2-dev
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
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:
Prep
sudo modprobe v4l2loopback
killall gvfs-gphoto2-volume-monitor
Test
lsusb
gphoto2 --auto-detect
LANG=C gphoto2 --summary
LANG=C gphoto2 --list-all-config
Try
gphoto2 --capture-image
gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video1
Visualize (in another terminal)
guvcview
or
guvcview-brlin.guvcview
You can try different /dev/video1
commands
There's also EOS Movie Recorder
Unzip this: https://sourceforge.net/projects/eos-movrec/files/eos-movrec/0.3.3_beta/eos-movrec-0.3.3_beta.zip/download
cd eos-movrec-0.3.2_beta
sudo apt install libgphoto2-dev
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
edited Jan 15 at 19:29
answered Jan 15 at 19:18
JonathanJonathan
1,37531530
1,37531530
add a comment |
add a comment |
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.
https://help.ubuntu.com/community/Webcam
Your answer/the link doesn't actually address the specific problems.
– hellocatfood
Dec 4 '17 at 16:16
add a comment |
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.
https://help.ubuntu.com/community/Webcam
Your answer/the link doesn't actually address the specific problems.
– hellocatfood
Dec 4 '17 at 16:16
add a comment |
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.
https://help.ubuntu.com/community/Webcam
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.
https://help.ubuntu.com/community/Webcam
answered Dec 3 '16 at 11:20
Kyle HKyle H
91737
91737
Your answer/the link doesn't actually address the specific problems.
– hellocatfood
Dec 4 '17 at 16:16
add a comment |
Your answer/the link doesn't actually address the specific problems.
– hellocatfood
Dec 4 '17 at 16:16
Your answer/the link doesn't actually address the specific problems.
– hellocatfood
Dec 4 '17 at 16:16
Your answer/the link doesn't actually address the specific problems.
– hellocatfood
Dec 4 '17 at 16:16
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f856460%2fusing-a-digital-camera-canon-as-webcam%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Add more info. You must be getting some error or something.
– Rahul
Dec 3 '16 at 9:24
Are there any clues in the manual that this is possible? A similar question has been asked before askubuntu.com/questions/53889/… but it was closed (for no good reason imho). Also something like that is done in this moreno.marzolla.name/software/linux-webcam-server tutorial.
– Bruni
Dec 3 '16 at 13:29