2025-01-11 ffmpeg and fish, yt-dlp

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

Proxy Information
Original URL
gemini://alexschroeder.ch/2025-01-11-ffmpeg
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
168.249443 milliseconds
Gemini-to-HTML Time
0.145457 milliseconds

This content has been proxied by September (ba2dc).