Skip to content

Instantly share code, notes, and snippets.

@OneOfOne
Created June 24, 2016 11:04
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 OneOfOne/86c444f241a3727fa5046d1fd9323286 to your computer and use it in GitHub Desktop.
Save OneOfOne/86c444f241a3727fa5046d1fd9323286 to your computer and use it in GitHub Desktop.
a systemd service using v4l2loopback and ffmpeg to fake a lower resolution webcam for skype, because skype murders my bandwidth.
[Unit]
Description=fake webcam
[Service]
ExecStartPre=/bin/modprobe v4l2loopback card_label='Skype Sucks'
ExecStart=/usr/bin/ffmpeg -loglevel panic -f v4l2 -video_size 640x360 -i /dev/video0 -f v4l2 -vf scale=320:-1 -r 10 /dev/video1
SuccessExitStatus=255
Restart=always
RestartSec=2
[Install]
WantedBy=default.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment