Question / Help Record DSLR camera in Debian

gsp

New Member
Hi,

I couldn't find a way to connect my Canon DSLR Camera to Debian and record from there. I tried with gphoto2 but I keep getting an error and I haven't seen any up to date guide on how to do it.
Can someone share some guidance on how to record in OBS with a DSLR camera in linux (ideally debian)

Thanks
 

glenjo

New Member
So I just finished doing that using a Nikon D300s. I'm using ArchLinux, but I don't think it makes any difference.

Here's a link to the instructions for getting you camera streaming at /dev/video0:


Here is the command that worked for me for getting the streaming running:

gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video0

Then when you start OBS, you click to add a Source, use Video Capture Device (V4L2), and you should see you camera's output.
 

belgian_style

New Member
I just made a video on that

Your video was very helpful for a project that I am working on. I ended up using this command on my mac. I also happen to have an RTMP server so I used that to "wirelessly" transfer this video from one computer to another. On the OBS side I use the VLC Video Source option.

gphoto2 --stdout --capture-movie | ffmpeg -f mjpeg -i - -f flv "rtmp://garageserver.catt/live/video"
 
Top