Created
June 24, 2016 11:04
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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