Skip to content

Instantly share code, notes, and snippets.

@Yardanico
Created December 27, 2017 18:34
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 Yardanico/c8574960c83e7ff9633378c12f3acfc8 to your computer and use it in GitHub Desktop.
Save Yardanico/c8574960c83e7ff9633378c12f3acfc8 to your computer and use it in GitHub Desktop.
import osproc
let komande = ["-f", "video4linux2", "-s 640x480", "-i /dev/video0", "-ss 0:0:2", "-frames 1" , "/tmp/out.jpg"]
let process = startProcess("ffmpeg", "", komande)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment