Skip to content

averissimo/cool-tricks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 

Repository files navigation

cool tricks to remember

General settings

See averissimo/linux-config

Use DSLR as webcam

from stackoverflow

Requirements:

$ sudo apt install gphoto2 v4l2loopback-utils ffmpeg

Use it (after plugging in camera via usb cable)

#!/bin/bash

# killall gphoto processes
ps -aux | grep gphoto | grep -v grep | awk '{ print $2 }' | xargs kill -9 

# add video loopbackd device
sudo modprobe v4l2loopback

# Use gphoto to capture and pipe it to loopback device (that can be used by skype, zoom, etc..)
gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video2

note: /dev/video2 might be different (depending on computer), use v4l2-ctl --list-devices to see which one is the loopback (dummy)

RStudio links

Current version and Preview

About

Cool tricks to remember

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors