frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: WTFfmpeg – Natural Language to FFmpeg Translator

https://github.com/scottvr/wtffmpeg
65•ycombiredd•8h ago

Comments

ghostly_s•6h ago
A rough estimate of the disk space required for the model + all other dependencies would be helpful in assessing this tool's utility. It looks like the recommended model alone is 2.4Gb?
adithyassekhar•6h ago
Seems tiny for it to understand natural language, technical terms and their meanings (deinterlacing, pulldown..) and the ffmpeg commands related to it. Assuming it works.
NoboruWataya•1h ago
But also absolutely massive for a tool that tells you how to use another, considerably smaller tool. A cheat sheet would be a few kb.
therein•6h ago
I can't help but find it kinda humorous that if the 119 lines of the system prompt wasn't there, it would just be a generic script that takes your input, sends it to ollama and then system("...") the response after some light processing.

https://github.com/scottvr/wtffmpeg/blob/main/wtffmpeg.py#L9...

>You are an expert at writing commands for the `ffmpeg` multimedia framework.

>Respond ONLY with the `ffmpeg` command. Do not add any explanations, introductory text, or markdown formatting.

Fragility of it aside, and the fact that more is written to try and force it to do less, this is basically the gist of the whole thing.

dylan604•6h ago
The first example from your link

- User: "convert input.mov to a web-friendly mp4" - Assistant: ffmpeg -i input.mov -c:v libx264 -preset medium -crf 23 -c:a aac -b:a 128k output.mp4

Isn't exactly a web-friendly mp4. the fast start option is not used. this means the MooV header is at the end of the file instead of the head. that means the entire file must be read/scanned to get to the metadata when the browser requests it which means a long delay depending on the size of the file.

- User: "create a 10-second clip from my_movie.mkv starting at the 1 minute 30 second mark" - Assistant: ffmpeg -i my_movie.mkv -ss 00:01:30 -t 10 -c copy clip.mkv

this is another poor example, as it is again the slowest option by having the -ss after the -i. placing the -ss before the -i will result in the command being faster.

not really sure who is training this system on how to use ffmpeg, but it doesn't fill me with confidence that simple things like this are being missed. after this example, i just stopped looking

oefrha•5h ago
> that means the entire file must be read/scanned to get to the metadata when the browser requests it which means a long delay depending on the size of the file.

Not really, unless your server doesn’t support range requests, browsers are smart enough to request the end of the file where a non-faststart moov atom typically lives. But yes, you should use faststart.

You’re right that this appears to be the work of someone who’s not very adept at ffmpeg. Which shouldn’t be surprising; as a power user, maybe even expert at ffmpeg, unless I need to write a complex filter graph, consulting an LLM will just slow me down—people like me have no need for this.

savolai•6h ago
It would be helpful if this printed out the relevant sections from the ’man’ page of the command line options it suggests using, or told the user this option is undocumented in the man page.

This way user could directly review if it is suggesting something they want to go on with.

vasco•6h ago
All cli programs (or shell itself) should soon have:

- argument syntax autocorrect

- natural language arguments instead of the actual ones should be accepted

- whenever there's an error executing, instead of just erroring out, the error should go through an LLM and output a proper explanation plus suggested fix

Doing command by command seems the wrong way about it though.

sovietswag•6h ago
Lollll ‘dd’ with autocorrect will be a hoot
vasco•6h ago
Will be much useful than now, obviously it doesn't run it for you.
darkwater•4h ago
How so? A potentially highly destructive command like `dd` (it can literally destroy all your local data in seconds) should be either touched with lot of care and having an idea of what you are doing, or not touched at all. Like some heavy machinery or a scalpel.
reed1•5h ago
This is what agent do, aichat [1] can do this. What you want is a wrapper for it to pipe the result back to LLM and make sure the command succeeded.

[1] https://github.com/sigoden/aichat

yreg•5h ago
It would be insanity for every cli tool to wrap its own llama.cpp

There are plenty of terminal apps with this functionality, e.g. https://www.warp.dev/

cryptonym•5h ago
Having a fuzzy interpretation of configuration, and fuzzy input/output, on something designed for repeatable tasks? This doesn't sound like a great idea.

If you really want to LLM everything, I'd rather have a dedicated flag that provides correction/explanation of args while doing a dry-run. And another to analyze error messages.

vasco•4h ago
I'm not saying if its a good idea or not, I'm saying it's my prediction of what will happen. Nobody will use old style terminals in a few years where you need to type exactly, is my prediction.
Ameo•6h ago
This has to be at least the fifth LLMpeg I've seen posted to hacker news in the past few months.

This whole repo is a single 300 LoC Python file over half of which is the system prompt and comments. It's not even a fine-tuned model or something, it's literally just a wrapper around llama-cpp with a very basic prompt tacked on.

I'm sure it's potentially useful and maybe even works, but I'm really sick of seeing these extremely low-effort projects posted and upvoted over and over.

do_not_redeem•6h ago
It was vibe coded too, the doc comments and pokemon try-catch are dead giveaways. It's a slop wrapper around a slop generator to farm github stars. Welcome to the future.
xhrpost•2h ago
> pokemon try-catch

I've seen LLM's do this in other languages as well but didn't realize there was a term for it. Wrapping entire function bodies in try/catch, at the very least please just wrap the caller so you don't have to indent the entire body for no reason. Not to mention a lot of commands inside can't even throw.

larodi•4h ago
I bet it is very often that people upvote based on the title and perhaps comments, not the actual content or its utility. Besides, this karma business can really get one hooked as a sucker for the high grade…
N_Lens•4h ago
At this rate one could probably automate the low effort project -> HN post pipeline
wolletd•2h ago
Using yet another LLM to generate the project code!
jagged-chisel•2h ago
Hmm … {thinking face emoji}

{money-mouth face emoji}

Sesse__•2h ago
At some point, one would imagine just making a less confusing FFmpeg CLI would be a better use of everyone's time. (I've sort-of understood it now, but the learning curve is pretty steep.)
Liquix•1h ago
that's akin to making a "less confusing git" - the reason ffmpeg/git are so widely used is largely due to how powerful and fine-tunable they are. the learning curve is an unfortunate but necessary side effect
IshKebab•51m ago
You could make both git and ffmpeg much less confusing without sacrificing their power and tunability.
42lux•18m ago
You could also write a wrapper for non technical users without a rewrite or comprising core functionality.
whywhywhywhy•11m ago
It's really not, things can be powerful and easy to use. I'd even say some parts of ffmpeg are well designed in this way like `ffmpeg -i ./video.mp4 ./video.wav` working is well designed.

Think the fact all the commands are shorthand doesn't help because no matter how many ffmpeg commands you copy and paste in your life unless you put the effort in you're not going to begin to remember what -an means in the sea of all the other two letter switches and the copywriting in the output and error messages is very hard to tell whats going wrong for someone who hasn't used it a long time.

Not saying it should all be super wordy just that it's difficult to pick up things though osmosis when the commands look like this -ss -t -rc:v, respect to anyone who actually learnt how this works so they could type it without sitting there with the documentation and hitting a wall for an hour.

Will say though the raw tech inside ffmpeg has always meant figuring out getting it to do the thing has always been worth it because it's insanely powerful.

robertpohl•1h ago
No one is stopping you from creating a Nobel Prize winning ffmpeg wrapper yourself to show how its done ;)
0points•1h ago
> This whole repo is a single 300 LoC Python file over half of which is the system prompt and comments.

You accurately described many "AI apps" of this era.

zipping1549•5h ago
LLMs are pretty good at ffmpeg already. No need to put ridiculous amount of examples.
klntsky•4h ago
Actually no, they are not good at remembering cli args precisely. The docs must be in the context
zipping1549•42m ago
Yes, but from my personal experiences they're pretty amazing at ffmpeg by itself. Figures, considering it's one of the most commonly used and well documented clis.
alfg•5h ago
In case anyone is looking for a FFmpeg command builder that's not ai-generated:

https://github.com/alfg/ffmpeg-commander

Haven't updated in a while, but it's a simplified web UI with a few example presets.

HelloUsername•2h ago
Doesn't all the web-related ffmpeg stuff boil down to https://ffmpegwasm.netlify.app ?

Edit: no, unrelated. Got confused with https://ffmpeg.app .

cranberryturkey•5h ago
https://github.com/profullstack/transcoder - we should integrate.
ivolimmen•5h ago
> wtff "convert my_video.avi to mp4 with no sound"

English is not my mother tongue but I think the model should correct the user that it should be: "convert my_video.avi to mp4 without sound"

MrFurious•5h ago
If you don't want learn ffmpeg syntax, is better use a visual gui how handbrake that a frontend for a fatty LLM.
kimi•4h ago
Instead of LLM, Python and whatnot, it could have been a cheatsheet: https://github.com/scottvr/wtffmpeg/blob/12767e7843b9fd481ba...
huimang•4h ago
Why is it so hard to read the manual or even a cheatsheet? Many people use ffmpeg, it's not like there's a dearth of information out there...
crispyambulance•1h ago
I am sure there exist people who live and breath media/codecs and they're reasonably fluent at getting ffmpeg to do what they want because of a tremendous amount of practice.

But for the vast majority of folks who only occasionally use ffmpeg to do something, the complexity of it is so outrageous it feels like a parody. Literally (I mean literally) THOUSANDS of options/flags. It's just too much for a human to navigate. Of course we're going to "cheat" or just google up something similar to what we want. If an LLM can handle it, even better.

0points•56m ago
I sympathise with the overwhelming sensation of the ffmpeg command line arguments.

But the more you familiarize yourself with a/v streaming and transcoding, you soon realize why you need such amount of control.

I mean, with ffmpeg I can easily combine 3 audio clips, 5 subtitles and a separate video, cut away first 25 seconds and the last 5 minutes of the resulting clip, resize it and change the aspect ratio, reduce audio to mono and specify output codecs for audio and video.

And this is still a pretty simple example of what one could want to do.

Ffmpeg has countless other amazing features, demanding more arguments.

How about for example camera stabilization? (-vf deshake)

How would one even start to explain all of this to an app without thousands of command line arguments?

The whole subject is incredibly complex and ffmpeg is by far the most amazing project in this space.

Without ffmpeg, there would be no youtube in 2005, no plex at all and really the whole of modern social web would probably have happened later if not Fabrice was such a fantastic guy :-)

whywhywhywhy•5m ago
> Why is it so hard to read the manual

https://ffmpeg.org/ffmpeg.html

Let's be honest, it kinda sucks. The commands are barely explained it feels more left as an exercise for the reader to do the puzzle solving of whats trying to be communicated.

Honestly if these processing chain diagrams just had a rollover where if you roll over parts of the command or the block in the chain and the other part highlighted with a description of what the switch was actually doing then a lot more people would be able to understand this, especially if real world before and after examples of outputs were included.

Instead it's <diagram of the chain> <raw string of the command> "Note: one caveat about something"

ycombiredd•4h ago
OP here.. I guess nobody got the joke. The last paragraph of the readme flat out says it was intended as amusing performance art.. Ludicrous is as ludicrous does.
x______________•1h ago

  >Disclaimer This was largely made to amuse myself; consider it a piece of humorous performance art but it so borders on being actually useful, I went to the trouble to document all of this. YMMV. Use at your own risk. The author is not responsible for any damage or data loss that may occur from using this tool. Always review generated commands before executing them, especially when working with important files.

I'm on the fence on this one as the HN community thrives on novel interesting and sometimes humorous content, yet you got the ire of most.

Burying the line about it being a useful yet parody of a project at the very end helps no one understand as exactly for that point, this was sold as the latest and greatest, oh disclaimer, it really isn't.

Don't stop the work, but please remember to keep you intentions clear and your audience will understand.

Best of luck on your future projects!

Edit: Typo

kookamamie•3h ago
> --- Generated ffmpeg Command --- > ffmpeg -i my_video.avi -an -c:v libx264 my_video.mp4

The example itself shows a naive conversion, ending up transcoding to default h.264 params. This should have been -c:v copy for copying the input packets, as-is.

0points•1h ago
No, -c:v copy would copy the video stream from the input .avi (which could be DivX or some other obscure codec for all we know).

I know this from RFTM. I don't ask LLM to second guess me.

yawnxyz•3h ago
fwiw I've been dealing with a lot of ffmpeg lately and it's like the most obtuse API I've ever used, and I'm now using Warp for it, and it works amazingly every time
vrighter•2h ago
You aren't doing anything related to ffmpeg at all. The only thing "related" to ffmpeg is the system prompt, which anyone could just paste into their chat window. Please stop posting low effort content like this.
camillomiller•1h ago
Question: what makes creating a GUI for ffmpeg so difficult that none of sufficiently high quality seems to have gained relevance so far?

Also: I understand the privacy concerns, but basically any LLM that's large enough can act as a conversational UI to ffmpeg nowadays. Why would I want to add a specific one to do that?

pknerd•1h ago
Superb. I always refer GPT to learn about what I need to do with ffmpeg. Glad to see someone made an AI wrapper out of it.

PS: Yeah, ffmpeg is not an easy tool to use.

Cerebras Launches Qwen3-235B, Achieving 1,500 Tokens per Second

https://www.cerebras.ai/press-release/cerebras-launches-qwen3-235b-world-s-fastest-frontier-ai-model-with-full-131k-context-support
51•mihau•1h ago•20 comments

Show HN: Header-only GIF decoder in pure C – no malloc, easy to use

13•FerkiHN•29m ago•9 comments

Brave blocks Microsoft Recall by default

https://brave.com/privacy-updates/35-block-recall/
66•XzetaU8•2h ago•45 comments

Qwen3-Coder: Agentic coding in the world

https://qwenlm.github.io/blog/qwen3-coder/
627•danielhanchen•14h ago•265 comments

Extending Emacs with Fennel (2024)

https://andreyor.st/posts/2024-12-20-extending-emacs-with-fennel/
83•Bogdanp•6h ago•11 comments

QuestDB (YC S20) Is Hiring a Technical Content Lead

https://questdb.com/careers/technical-content-lead/
1•nhourcard•5m ago

AI groups spend to replace low-cost 'data labellers' with high-paid experts

https://www.ft.com/content/e17647f0-4c3b-49b4-a031-b56158bbb3b8
63•eisa01•3d ago•26 comments

SQL Injection as a Feature

https://idiallo.com/blog/sql-injection-as-a-feature
14•foxfired•1d ago•7 comments

Geocities Backgrounds

https://pixelmoondust.neocities.org/archives/archivedtiles
6•marcodiego•2d ago•0 comments

Mathematics for Computer Science (2024)

https://ocw.mit.edu/courses/6-1200j-mathematics-for-computer-science-spring-2024/
161•vismit2000•8h ago•20 comments

More than you wanted to know about how Game Boy cartridges work

https://abc.decontextualize.com/more-than-you-wanted-to-know/
328•todsacerdoti•16h ago•37 comments

Org tutorials

https://orgmode.org/worg/org-tutorials/index.html
108•dargscisyhp•8h ago•42 comments

Rescuing two PDP-11s from a former British Telecom underground shelter (2023)

https://forum.vcfed.org/index.php?threads/rescuing-two-pdp-11-systems-in-uk-from-a-former-big-british-telecom-underground-shelter-in-central-london.1244723/page-2
67•mhh__•6h ago•12 comments

Algorithms for Modern Processor Architectures

https://lemire.github.io/talks/2025/sea/sea2025.html
204•matt_d•13h ago•33 comments

Android Earthquake Alerts: A global system for early warning

https://research.google/blog/android-earthquake-alerts-a-global-system-for-early-warning/
287•michaefe•17h ago•94 comments

Why you can't color calibrate deep space photos

https://maurycyz.com/misc/cc/
155•LorenDB•11h ago•62 comments

I watched Gemini CLI hallucinate and delete my files

https://anuraag2601.github.io/gemini_cli_disaster.html
222•anuraag2601•17h ago•268 comments

Swift-erlang-actor-system

https://forums.swift.org/t/introducing-swift-erlang-actor-system/81248
288•todsacerdoti•17h ago•65 comments

Don't animate height

https://www.granola.ai/blog/dont-animate-height
411•birdculture•3d ago•235 comments

We built an air-gapped Jira alternative for regulated industries

https://plane.so/blog/everything-you-need-to-know-about-plane-air-gapped
242•viharkurama•16h ago•156 comments

TODOs aren't for doing

https://sophiebits.com/2025/07/21/todos-arent-for-doing
373•todsacerdoti•22h ago•215 comments

Managing EFI boot loaders for Linux: Controlling secure boot (2015)

https://www.rodsbooks.com/efi-bootloaders/controlling-sb.html
35•CaliforniaKarl•3d ago•2 comments

Are we witnessing the final days of Mozilla?

https://lunduke.locals.com/post/7132314/are-we-witnessing-the-final-days-of-mozilla
7•dotcoma•19m ago•3 comments

Subliminal learning: Models transmit behaviors via hidden signals in data

https://alignment.anthropic.com/2025/subliminal-learning/
179•treebrained•18h ago•36 comments

Show HN: WTFfmpeg – Natural Language to FFmpeg Translator

https://github.com/scottvr/wtffmpeg
65•ycombiredd•8h ago•50 comments

Many lung cancers are now in nonsmokers

https://www.nytimes.com/2025/07/22/well/lung-cancer-nonsmokers.html
188•alexcos•20h ago•240 comments

When Is WebAssembly Going to Get DOM Support?

https://queue.acm.org/detail.cfm?id=3746174
84•jazzypants•6h ago•74 comments

SubTropolis and KC's Limestone Caves

https://kcyesterday.com/articles/subtropolis
9•taubek•2d ago•0 comments

Font Comparison: Atkinson Hyperlegible Mono vs. JetBrains Mono and Fira Code

https://www.anthes.is/font-comparison-review-atkinson-hyperlegible-mono.html
228•maybebyte•21h ago•143 comments

Gemini North telescope discovers long-predicted stellar companion of Betelgeuse

https://www.science.org/content/article/betelgeuse-s-long-predicted-stellar-companion-may-have-been-found-last
133•layer8•19h ago•35 comments