A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
A list of useful commands for the ffmpeg command line tool.
Full documentation: https://www.ffmpeg.org/ffmpeg.html
ffmpeg -i input.mp4 output.mkv
Summarizing the instructions of the pass
tool (as seen on its website).
Execute: $ sudo apt install pass
hello world! |
# Note: This will only work on Navi21 GPUs (6800/6900+). | |
# See: https://github.com/RadeonOpenCompute/ROCm/issues/1668#issuecomment-1043994570 | |
# Install Conda (latest from https://docs.conda.io/en/latest/miniconda.html#linux-installers) | |
wget https://repo.anaconda.com/miniconda/Miniconda3-py39_4.12.0-Linux-x86_64.sh | |
bash Miniconda3-py39_4.12.0-Linux-x86_64.sh | |
# follow the prompts to install it, and run `conda` to make sure it's working. | |
# Install git and curl, and clone the stable-diffusion repo | |
sudo apt install -y git curl |
#!/usr/bin/env nix-shell | |
#!nix-shell -i bash -p ffmpeg pngquant gifski gifsicle | |
# shellcheck shell=bash | |
set -euo pipefail | |
if [[ "$#" -ne 3 ]]; then | |
echo "Usage: gif.sh <name> <scale> <fps>" | |
exit 1 | |
fi |
Here I used glob style input. I also had to pad because the image height was odd
ffmpeg -framerate 10 -pattern_type glob -i '*.jpg' -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2" out.gif
ffmpeg -framerate 20 -pattern_type glob -i '*.jpg' -vf "scale=trunc(iw/4)*2:trunc(ih/4)*2" out.gif
Apache and Nginx are the two most common web servers in the world. Apache is a classical solution, but due to it's memory consumption (because to it's nature of creating a new process for each request) we will leave it for another occasion. Nginx is very fast and the RAM consumption is very-very low, if we need to serve static pages. But Nginx's configuration is not to easy read and understand, this is why we will try more flexible and clear solution, which is more intended for newbies.
Caddy is written is Go, open-source and pretty fast web server. If you're looking for low-memory solution the Cadd