neige d'aout

knowledge, art, and other stuff

User Tools

Site Tools


v4l2loopback

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
v4l2loopback [2026/06/28 20:36] – created Yukiv4l2loopback [2026/06/28 20:43] (current) Yuki
Line 34: Line 34:
 } }
  
 +# Make sure we're on the GoPro wifi
 nmcli c s --active | grep GoPro > /dev/null nmcli c s --active | grep GoPro > /dev/null
 if [ $? -eq 1 ] if [ $? -eq 1 ]
 then then
   echo "Error: not connected to GoPro"   echo "Error: not connected to GoPro"
-  exit $1+  exit 1
 fi fi
  
 +# Create the video device and delete it on script exit
 DEVICE=$(v4l2loopback-ctl add -n "GoPro") DEVICE=$(v4l2loopback-ctl add -n "GoPro")
 function rmdevice() function rmdevice()
Line 48: Line 50:
 trap rmdevice EXIT trap rmdevice EXIT
  
 +# Make sure preview is on
 PASSWORD=$(api bacpac/sd - | strings) PASSWORD=$(api bacpac/sd - | strings)
 api "camera/pv?t=$PASSWORD&p=%02" /dev/null api "camera/pv?t=$PASSWORD&p=%02" /dev/null
Line 56: Line 59:
 ===== See also ===== ===== See also =====
  
-[[arch>v4l2loopback]]+  * [[arch>v4l2loopback]] 
 +  * [[https://github.com/KonradIT/goprowifihack/tree/master/HERO3|GoPro HERO3 hacking]]
v4l2loopback.1782693399.txt.gz · Last modified: by Yuki