Skip to content

Instantly share code, notes, and snippets.

@yuraloginoff
yuraloginoff / ffmpeg_recipes.md
Last active December 18, 2025 13:37 — forked from protrolium/ffmpeg.md
ffmpeg recipes

ffmpeg recipes

Video compression - decrease size, maintain quality

ffmpeg -i original.mp4 -crf 28 compressed.mp4

CRF: It ranges from 0 (lossless quality) to 51 (lowest quality), with lower values resulting in higher quality and larger file sizes.

-c:a copy -preset fast -hide_banner -loglevel warning

Converting Audio into Different Formats / Sample Rates

@yuraloginoff
yuraloginoff / Colorful Bash Prompt
Last active June 6, 2020 11:27 — forked from trinne/Colorful Bash Prompt
#bash: Colorful Bash Prompt
# Colorful Bash Prompt, inspired by "Extravagant Zsh Prompt"
# Screenshot: http://img.gf3.ca/d54942f474256ec26a49893681c49b5a.png
# A big thanks to \amethyst on Freenode
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then export TERM=gnome-256color
elif infocmp xterm-256color >/dev/null 2>&1; then export TERM=xterm-256color
fi
if tput setaf 1 &> /dev/null; then
tput sgr0