Skip to content

Instantly share code, notes, and snippets.

@tonysan
Created December 25, 2020 00:24
Show Gist options
  • Save tonysan/a432ce599e0586788a247ab3522db0dd to your computer and use it in GitHub Desktop.
Save tonysan/a432ce599e0586788a247ab3522db0dd to your computer and use it in GitHub Desktop.
space_heater.sh
#!/bin/bash
# prereq: ffmpeg and some video files
# https://gist.github.com/jsturgis/3b19447b304616f18657
# one-liner infinite loop from
# https://stackoverflow.com/questions/1289026/syntax-for-a-single-line-bash-infinite-while-loop
while true; do ffmpeg -i some_video_file.mp4 -c:v libx265 -preset placebo -f null /dev/null; sleep 2; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment