If you know, you know. The `ffmpeg` command line options. ๐คจ
Let me collect some function definitions on this page. I'll be adding more over the years to come, for sure.
function video-resolution ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of default=nw=1 $argv end # remember to download lower resolutions for smaller laptops yt-dlp --list-formats URL yt-dlp --format N URL # download audio only yt-dlp --extract-audio --audio-format mp3 URL # extract audio without converting ffmpeg -i input.mp4 -vn -acodec copy output.aac # convert to mp3 ffmpeg -i input.mp4 output.mp3
โ#ffmpeg โ#fish
function ediff --description 'Compare two files using Emacs' emacs -nw --eval "(ediff \"$argv[1]\" \"$argv[2]\")" end function ssh-copy --description 'Copy text to the local clipboard' read -z -l input printf "\033]52;c;" printf "%s" $input | base64 printf "\a" end