Skip to content

Instantly share code, notes, and snippets.

@vpnwall-services
Last active May 11, 2023 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vpnwall-services/0e0d299d350eeb5579d4088a8399817d to your computer and use it in GitHub Desktop.
Save vpnwall-services/0e0d299d350eeb5579d4088a8399817d to your computer and use it in GitHub Desktop.
[Secorder2] Secorder2
#!/bin/bash
wget https://raw.githubusercontent.com/jschmid1/gopro_as_webcam_on_linux/master/gopro
#put cam in GoConnect mode
sudo bash gopro webcam -u debian -r 1080
# record
ffmpeg -nostdin -threads 1 -i 'udp://@0.0.0.0:8554?overrun_nonfatal=1&fifo_size=50000000' -f:v mpegts -fflags nobuffer -vf format=yuv420p -f v4l2 /dev/video42 -c copy fart.mkv
# re-encode later
ffmpeg -i mjpeg.mkv -c:v libx264 -crf 23 -preset medium -pix_fmt yuv420p out.mkv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment