Command Line Magic on Nostr: With yt-dlp, it's essential to know about the -F and -f options to control the format ...
With yt-dlp, it's essential to know about the -F and -f options to control the format and size of the video that you download. Use -F first to get a list of formats, maybe combine that with | grep -v "video only" to exclude those, then use -f with the format number. Otherwise you could waste a lot of space and bandwidth when you don't mean to.
yt-dlp -F id | grep -v "video only"
yt-dlp -f 22 id
Published at
2023-05-02 13:59:47Event JSON
{
"id": "f8c9813951ee45f437a9b3a3d6f9a4fbb618179cf0aef9e9de5eb83348f5a5a2",
"pubkey": "f5f1075f3fad1755cef1ef9024d53eafd24ea460383319ffb9949f3b6a3cde1a",
"created_at": 1683035987,
"kind": 1,
"tags": [
[
"mostr",
"https://mastodon.social/users/climagic/statuses/110299446455789632"
]
],
"content": "With yt-dlp, it's essential to know about the -F and -f options to control the format and size of the video that you download. Use -F first to get a list of formats, maybe combine that with | grep -v \"video only\" to exclude those, then use -f with the format number. Otherwise you could waste a lot of space and bandwidth when you don't mean to.\nyt-dlp -F id | grep -v \"video only\"\nyt-dlp -f 22 id\n\nhttps://files.mastodon.social/media_attachments/files/110/299/440/535/466/962/original/3146a34d4d4e55ae.jpg",
"sig": "4f6390f7b7df02bb687088262883e84ccda532e2e394c20e61e395eddd4ece18537feb1866c95fa7bcfbcc005d229f278dc249c5f503943518467080c0dba457"
}