Skip to content

Instantly share code, notes, and snippets.

@punchagan
Created March 29, 2014 18:05
Show Gist options
  • Save punchagan/9859210 to your computer and use it in GitHub Desktop.
Save punchagan/9859210 to your computer and use it in GitHub Desktop.
Brighter video, thanks to video loopback and gstreamer
#!/bin/bash
MODULE=v4l2loopback
if grep -q $MODULE /proc/modules;
then
echo $MODULE already loaded
else
echo loading $MODULE
sudo modprobe $MODULE
echo $MODULE loaded
fi
gst-launch v4l2src device=/dev/video0 ! v4l2sink device=/dev/video1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment