Talk to me when you ffmpeg by heart π
linuxmemes
Hint: :q!
Sister communities:
Community rules (click to expand)
1. Follow the site-wide rules
- Instance-wide TOS: https://legal.lemmy.world/tos/
- Lemmy code of conduct: https://join-lemmy.org/docs/code_of_conduct.html
2. Be civil
- Understand the difference between a joke and an insult.
- Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
- Don't get baited into back-and-forth insults. We are not animals.
- Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
- Bigotry of any kind will not be tolerated. This is an LGBTQ+-friendly community -- if that is a problem for you, you should leave.
3. Post Linux-related content
- Including Unix and BSD.
- Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of
sudoin Windows. - No porn, no politics, no trolling or ragebaiting.
- Don't come looking for advice, this is not the right community.
4. No recent reposts
- Everybody uses Arch btw, can't quit Vim, <loves / tolerates / hates> systemd, and wants to interject for a moment. You can stop now.
5. π¬π§ Language/ΡΠ·ΡΠΊ/Sprache
- This is primarily an English-speaking community. π¬π§π¦πΊπΊπΈ
- Comments written in other languages are allowed.
- The substance of a post should be comprehensible for people who only speak English.
- Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
6. (NEW!) Regarding public figures
We all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations. - Keep discussions polite and free of disparagement.
- We are never in possession of all of the facts. Defamatory comments will not be tolerated.
- Discussions that get too heated will be locked and offending comments removed. Β
Please report posts and comments that break these rules!
Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.
Alright alright, I'll get you the moon you wanted.
This comment got my brain stuck in an infinite loop: there's a rabbit on the Japanese moon, there are tons of moon themed jazz songs, the moon is cheeze, moonshine, moon rhymes with boon, Moon River is a beautiful song, Kame-sennin blew up the moon to make Son Goku revert to his human form, Moonraker was only "meh..."...
I still don't get it. WHAT does this expression mean π
To βask for the moonβ is to make an unreasonable request. The comment is a play on that saying. In this context, it means, βIβll do the impossibleβ
Not to mention imagemagick. I can often get ffmpeg to more or less do what I want on the first try, but imagemagick always results in a second try after reading the documentation for the 938th time.
For the magick stuff I do all the time (you all know what it is) I prepared a script. I wrote it probably a couple of years ago by this point and even if you held a gun to my head and I had it open in the text editor in front of me I couldn't explain to you what all the flags and arguments actually do.
Ahahaha I feel you. My ffmpeg scripts are similar: they work, but GOD knows why. I should print the manual and read before bed.
ffmpeg is always funny to me, because it feels like you could convert anything into anything, if you just knew the right flags, but 99% of my use is extracting a clip out of a video file.
And the command for that is in my shell history, so I wouldn't know the flags either. Β―\_(β_Κβ)_/Β―
HAH! I know!!! The "correct" flags are always: Ctrl + r 'ffmpeg' an undefined amount of times 8D
I just remember running the coolest ffmpeg command many years ago, I don't remember the actual command, but it rendered th video as ascii art
Shut. Up. That sounds amazing. Did it convert the video data into ASCII text or did it use ASCII characters to resemble the actual video?
i wish i could get ffmpegged
guy getting bred by two girls call that ffmpreg
I got it, mostly... The various filter chains, not so much. But I can map input streams and set dispositions and metadata, and know a bunch of svtav1 passthru params by heart; with enough experience to set pretty decent crf/preset/filmgrain-synth settings by eyeballing the input (ofc specifics depends on the video encoder and whether or not I'm using something like the psyex/hdr fork...)
Some people look at this as wizardry, but it's really not too hard once to get the hang of ordered arguments... Like whether or not you put -ss before or after -i changes the seeking behavior.... Okay, it's a little wizardry.
eXtract Ze Vucking File
tar is usually smart enough to figure that .tar.gz is a compressed archive, so tar xvf suffices.
Moreover, .tar.xz archives are much more common nowadays, and the flag to tell tar to use xz decompression is J. Yes, uppercase J I shit you not, because all other letters of alphabet were already taken. The next commandline option added to tar is going to be a Unicode emoji symbol.
tar π€π¨οΈπ archive files
$ tar -π₯Ί --ππ uwu.tar.gz
I was going to use this opportunity to shill for tldr by linking directly to their page on tar.
But I just realized tar's reputation is so bad, they use it as the example on tldr's homepage. π

Again this old myth that using tar is possible without looking up commands every time. It's been debunked many times
eXtract Ze File
xzvf or nothing
but how am i supposed to remember that?
eXtract Ze Vucking File?
eXtract Ze Vucking File?
Ja mein freund.
e[x]tract; g[z]ip; [v]erbose; [f]ile
Reordered, and we can have [v]erbosely e[x]tract g[z]ip [f]ile, or tar vxzf [file]
I find it more difficult to remember other options. Might stick better if pronouncing the g in gzip similarly as GNU insists GNU be pronounced, with a hard gβnever really tried it, but sounds a little funny. Actually, I think I first remembered it as g sounding like the, making for extract the zip file, but with a soft g; I felt the former put too much emphasis on a letter not used as an option.
It's pretty simple
tar
e[x]tract
[z]is
[f]ile
[v]erbosely
archive.tar.gz
--directory=archivedir
For creation it's pretty much the same but you need to specify [c]reate, e.g. tar czvf archive.tar.gz filestoarchive/ and for lis[t]ing it's - tar tf archive.tar.gz
tar
[t]he
[f]uck
am_i_looking_at.tar.gz
I saw tar -xvf 13 years ago and have been using it ever since.
I just use tar xf (extract file). Not sure, if that would've already worked 13 years ago...
Tar (some versions at least?) is actually smart enough to detect which format to use based on file extension of the output, so you don't need to remember which flag corresponds to which compressor. Examples:
tar -caf archive.tar.xz [files]
tar -caf archive.tar.bz2 [files]
# extract
tar -xf archive.tar.xz
tar -xf archive.tar.bz2
So you really only need to remember that c means create, x means extract
Wait until you manage to rsync correctly...
Unless you're doing something really specific just use -a.
Well i'll be damned learning just now thanks to you that it equals -rlptgoD (recursive, links, perms, times, group, owner, devices)
I'm one of the lucky 10000...
I once had a job where I used tar multiple times a day for years. I don't think I could forget how to use it if I wanted to, which I don't because I still use it.
Honestly I just create and extract. I don't use most of the options. But, I had a lead about ten years ago dare me to create and compress a .tar.gz directly without looking it up and I was most of the way through typing it by the time he finished talking. He looked at me like I was doing black magic.
If like me you have no memory, use aliases often.
Put them in a dedicated file, I find it easier to manage. You'll need to modify bashrc or zshrc to link to the new file. Big plus, they now work with both. I don't know if it can be done with fish.
Now my favorite tip for us brainless: start aliases with an easy to reach character you most likely wouldn't use in a terminal. I use "Γ©", on a french keyboard.
Γ©+tab: all my aliases
Γ©+t+tab: I see "Γ©tarextract" (there it is), "Γ©text-edit", "Γ©todo"
I don't even need to remember aliases. I don't need to remember anything!
Imathop out.
tar -xvf all the things!
It's easy, you just have to remember the development was from Transylvania.
EXtract Ze Vamn Files
Why is everyone always going in about tar? I never saw the issue with it, its not more or less complicated than other commands that take command line flags...
For example: sudo netstat -peanut, where -peanut actually expands to -p -e -a -n -u -t. I don't have any idea anymore what each letter stands for while I do recall that tar -cjf file.tar * is -c create, -j bzip2 compression and -f filename
Try ffmpeg command line options, and tar starts to look like a starter job.
I still remember moment when I accidentally swapped tar's arguments and it just overwrited my 20 Gib directory with empty tarball. (I had backups luckily.)
