394
me btw (lemmy.blahaj.zone)
submitted 1 week ago by not_IO to c/lemmyshitpost@lemmy.world
top 41 comments
sorted by: hot top controversial new old
[-] WolfLink@sh.itjust.works 11 points 6 days ago

Compress video to a broadly compatible format:

ffmpeg -i input -c:v libx264 -pix_fmt yuv420p -crf 25 -preset slow -c:a libfdk_aac -b:a 128k output.mp4

This incantation is what I end up needing 99% of the time I do something with ffmpeg.

[-] bhamlin@lemmy.world 2 points 6 days ago

I've been a fan of libsvtav1 lately.

[-] WolfLink@sh.itjust.works 2 points 6 days ago* (last edited 6 days ago)

I ran a comparison between libsvtav1 and h264 and h265 and found that libsvtav kinda sucks.

It does produce smaller file sizes at h265, but it tends to add a visible blur.

[-] bhamlin@lemmy.world 1 points 5 days ago

Might be what you're encoding. So far pretty much everything I've done has been visually indistinguishable (to me and my wife). Most of the content I've been encoding is anime, however.

[-] WolfLink@sh.itjust.works 2 points 5 days ago

I should try it on anime. I was using it on phone videos.

[-] LORDSMEGMA@sh.itjust.works 4 points 6 days ago

Where's that madman that uses ffmpeg instead of cat

[-] Jankatarch@lemmy.world 3 points 6 days ago

Excuse me??

[-] Agent641@lemmy.world 2 points 6 days ago

Two questions:

  1. Why?

  2. How?

[-] Calfpupa@lemmy.ml 2 points 6 days ago

Where's that one YouTube with the older Lady that explains ffmpeg

[-] damnthefilibuster@lemmy.world 72 points 1 week ago

It’s very simple.

ffmpeg -i input_file <deep-dark-magic-you-should-be-afraid-of> output_file

Couldn’t be simpler.

[-] Laser@feddit.org 21 points 1 week ago

-filter_complex sends its regards

[-] jlow@discuss.tchncs.de 3 points 1 week ago

That you don't need to prepend output-file with -o but need(?) to do it with the input / -i weirds me out every time I use ffmpeg (which is a lot).

[-] damnthefilibuster@lemmy.world 4 points 1 week ago

No but that’s understandable- you can have any number of inputs (what’s the upper limit, I wonder) but everything goes into only one output…

[-] jlow@discuss.tchncs.de 3 points 6 days ago

Ah, ok? So anything after an -i is an input but the last thing is always the output so ot doesn't need a mark? Interesting.

[-] damnthefilibuster@lemmy.world 2 points 6 days ago

Pretty much!

[-] Ganbat@lemmy.dbzer0.com 46 points 1 week ago

Why learn when you can do what I do and look it up every single time you want to do something as though you are but a goldfish who learned to type?

[-] hraegsvelmir@ani.social 1 points 6 days ago

Because you can improve and refine your technique. For example, I no longer need to open up duckduckgo to figure out what that one command was that worked for me 6 months ago. Now, I just type away. ctrl-r, ffmpeg, and bam, right there in my shell history, all I need to do is change the inputs and outputs.

[-] lauha@lemmy.world 16 points 1 week ago

Humans are fish who learned to type. And on average pretty golden

[-] cybervseas@lemmy.world 38 points 1 week ago

fr feels like its own programming language

This is literally only for the ffmpeg filters 😅

[-] SnotFlickerman 13 points 1 week ago

I fucking love the default video. Classic.

[-] blorgnis@piefed.social 4 points 1 week ago

the video it pulled for cross-fade was fun too

[-] DaPorkchop_@lemmy.ml 2 points 1 week ago

i have never seen this tool before and now i am forever in your debt

[-] cybervseas@lemmy.world 1 points 1 week ago

Nah you’re not. We’re Lemmy. Just pay it forward 😘

[-] tiramichu@sh.itjust.works 25 points 1 week ago

I find it wild there are countless "convert videos online for free!" sites on the Internet full of bonus malware which are all just thin wrappers around ffmpeg. And yet they persist because people want googleable answers to their problem which don't need a command line or downloading anything.

Personally I've got a Python script which provides a slightly friendlier wrapper around ffmpeg for my common use-cases.

But honestly ffmpeg is such a beast, so much of what we use daily depends on it under the hood.

[-] SlurpingPus@lemmy.world 1 points 6 days ago

Wait until you hear that ffmpeg is available as a library, including for Python. And that there are Python modules providing Python-specific ways of specifying the processing filters and whatnot, instead of putting them into the single command string.

[-] ChaoticNeutralCzech@feddit.org 2 points 1 week ago

Yes! The picture is inaccurate, people who need to learn ffmpeg rarely know they do.

[-] SCmSTR 15 points 1 week ago

More like ffmpreg amirite?

[-] FooBarrington@lemmy.world 5 points 1 week ago

Is that the fork that converts regexes into mp4?

[-] Passerby6497@lemmy.world 6 points 1 week ago

Why learn ffmpeg when you can find the holy words that invokes the machine spirits transmutation codex and write them on your data slate to be used again later?

[-] answersplease77@lemmy.world 5 points 1 week ago

i cannot fix her. I'd let her read the wiki or just install canvas

[-] felixwhynot@lemmy.world 4 points 1 week ago

Why do you need to learn ffmpeg

[-] VibeSurgeon@piefed.social 11 points 1 week ago

Wanting to do anything with video for one

[-] wreckedcarzz@lemmy.world 11 points 1 week ago* (last edited 1 week ago)

Not true. You can:

  • create
  • delete
  • copy
  • move
  • spend an afternoon with windows movie maker
  • think you are creating but forgot to reinstall the sd card
  • upload to youtube without any editing like a boss

So many things you can do without ffmpeg

[-] WolfLink@sh.itjust.works 1 points 6 days ago

YouTube and windows movie maker are almost certainly using ffmpeg.

[-] undefined@lemmy.hogru.ch 13 points 1 week ago

You really named probably the only video editing software that isn’t using ffmpeg somewhere.

[-] SkunkWorkz@lemmy.world 7 points 1 week ago

YouTube uses ffmpeg to convert the video, even if you don’t edit the video.

[-] defrostedLasagna4921@piefed.zip 1 points 1 week ago

Does it still convert if you upload in its formats (AV1 & Opus)?

[-] SkunkWorkz@lemmy.world 3 points 1 week ago

Yeah it needs to create the different files for each resolution. But also the bitrate of the original file is probably too high for YouTube’s liking anyway so they re-encode it.

[-] VibeSurgeon@piefed.social 1 points 1 week ago

I guess I should clarify that I'm talking from a video engineering perspective.

[-] starchylemming@lemmy.world 10 points 1 week ago

don't let your dreams be dreams

create that ffm pegging video

[-] CubitOom@infosec.pub 2 points 1 week ago
this post was submitted on 26 Feb 2026
394 points (100.0% liked)

Lemmy Shitpost

38391 readers
3931 users here now

Welcome to Lemmy Shitpost. Here you can shitpost to your hearts content.

Anything and everything goes. Memes, Jokes, Vents and Banter. Though we still have to comply with lemmy.world instance rules. So behave!


Rules:

1. Be Respectful


Refrain from using harmful language pertaining to a protected characteristic: e.g. race, gender, sexuality, disability or religion.

Refrain from being argumentative when responding or commenting to posts/replies. Personal attacks are not welcome here.

...


2. No Illegal Content


Content that violates the law. Any post/comment found to be in breach of common law will be removed and given to the authorities if required.

That means:

-No promoting violence/threats against any individuals

-No CSA content or Revenge Porn

-No sharing private/personal information (Doxxing)

...


3. No Spam


Posting the same post, no matter the intent is against the rules.

-If you have posted content, please refrain from re-posting said content within this community.

-Do not spam posts with intent to harass, annoy, bully, advertise, scam or harm this community.

-No posting Scams/Advertisements/Phishing Links/IP Grabbers

-No Bots, Bots will be banned from the community.

...


4. No Porn/ExplicitContent


-Do not post explicit content. Lemmy.World is not the instance for NSFW content.

-Do not post Gore or Shock Content.

...


5. No Enciting Harassment,Brigading, Doxxing or Witch Hunts


-Do not Brigade other Communities

-No calls to action against other communities/users within Lemmy or outside of Lemmy.

-No Witch Hunts against users/communities.

-No content that harasses members within or outside of the community.

...


6. NSFW should be behind NSFW tags.


-Content that is NSFW should be behind NSFW tags.

-Content that might be distressing should be kept behind NSFW tags.

...

If you see content that is a breach of the rules, please flag and report the comment and a moderator will take action where they can.


Also check out:

Partnered Communities:

1.Memes

2.Lemmy Review

3.Mildly Infuriating

4.Lemmy Be Wholesome

5.No Stupid Questions

6.You Should Know

7.Comedy Heaven

8.Credible Defense

9.Ten Forward

10.LinuxMemes (Linux themed memes)


Reach out to

All communities included on the sidebar are to be made in compliance with the instance rules. Striker

founded 2 years ago
MODERATORS