resonious 4 days ago

I tried this (though with a different tool called aichat) for extremely simple stuff like just "convert this mov to mp4" and it generated overly complex commands that failed due to missing libraries. When I removed the "crap" from the commands, they worked.

So much like code assistance, they still need a fair amount of baby sitting. A good boost for experienced operators but might suck for beginners.

  • cm2187 3 days ago

    Plus you need to know the format of your source file to design the command correctly. How many audio tracks, is the first video track a thumbnail or the video, are the subtitles tracks forced, etc.

    And in some situations ffmpeg has some warts you have to go around. Like they introduced recently a moronic change of behaviour where the first sub tracks becomes forced/default irrespective of the original forced/default flag of the source. You need to add "-default_mode infer_no_subs" to counter that.

    • Philpax 3 days ago

      I usually just paste the output of `ffprobe` into Claude when it's ambiguous. Works a treat.

  • Over2Chars 4 days ago

    My feelings exactly, but I think that's OK!

    It's another tool and one that might actually improve with time. I don't see GNU's man pages getting any better spontaneously.

    Whoa, what if they started to use AI to auto-generate man pages...

    • BlaDeKke 3 days ago

      > Whoa, what if they started to use AI to auto-generate man pages...

      That’s the time to start my career in woodworking.

      • johnisgood 3 days ago

        I already generate man pages (and POD) with Claude for my new projects. :D

        It works really well.

    • michaelcampbell 2 days ago

      > what if they started to use AI to auto-generate man pages...

      Then they'd be wrong about 20% of the time, and still no one would read them. ;-)

      (NB: I'm of the age that I do read them, but I think I'm in the minority.)

  • BiteCode_dev 3 days ago

    Reading this feels like seing a guy getting his first car in 1920 and complaining he still has to drive it himself.

    • imiric 3 days ago

      To me it's more like a guy getting his first car and complaining that the car is driving him in a direction that may or may not be correct, despite his best efforts to steer it where he wants to go. And the only way to know whether he ends up in the right place is to get out of the car, look around, and maybe ask more experienced drivers. Failing that, his only option is to get back in and hope to be luckier in the next trip.

      Or he can just ditch the car and walk. Sure, it's slower and requires more effort, but he knows exactly how to do that and where it will take him.

    • LeoWattenberg 3 days ago

      The beer brewers in my home town used to have a self-driving horse and cart which knew the daily delivery route going by all pubs and didn't really need a human to steer it or indeed be conscious during the trip. Expectedly, the delivery guy would get drunk first thing in the morning and just get carted about collecting the money.

    • pbhjpbhj 3 days ago

      Pony & trap could be largely self-driving, after an initial training period. That would have been a distinct negative to "upgrading" for some, I'd imagine.

      • nine_k 3 days ago

        It's speed and load capacity vs self-driving.

        If we could imagine wiring a pony to control a car, its brain, while good at navigation, would likely be inadequate at the speed that a car attains.

    • atoav 3 days ago

      Sell that guy probably got carried home by his horse after drinking half a bottle of whiskey, so maybe he had a point.

    • [removed] 2 days ago
      [deleted]
    • shriek 3 days ago

      Or maybe calling a cab and telling the cab driver each direction to get to the destination instead of the cab driver just taking you there.

  • assimpleaspossi 3 days ago

    My experience exactly.

    I no longer check with these AI tools after a number of attempts. Unrelated, a friend thought there was a NFL football game last Saturday at noon. Checking with Google's Gemini, it said "no", but there was one between two teams whose season had ended two weeks before at 1:00 Eastern Time and 2:00 Central. (The times are backwards.)

    • bityard 3 days ago

      Do LLMs have knowledge of current events?

      • assimpleaspossi 3 days ago

        Meta.ai got it right. The free chatGPT only has data up till 2021 or something like that.

      • hulitu a day ago

        > Do LLMs have knowledge of current events?

        I don't think the notion of "current" has been explained to them. Thay just define it out of context.

      • johnisgood 3 days ago

        I mean, some are capable of searching the web.

        Ask them about the fire in LA in 2025 January.

  • sdesol 4 days ago

    > "convert this mov to mp4"

    Did any of the commands look like the ones in the left window:

    https://beta.gitsense.com/?chats=12850fe4-ffb1-4618-9215-c13...

    The left window contains a summary of all the LLMs asked, including all commands. The right window contains the individual LLM responses.

    I asked about gotchas with missing libraries as well, and Sonnet 3.5 said there were. Were these the same libraries that were missing for you?

    • resonious 4 days ago

      Looking at this, I am pretty sure I also received a "libx264" clause. Removing it made the command work for me.

      • sdesol 4 days ago

        I don't disagree that we need to be cautious with LLMs, but I've personally stopped asking GPT-4/GPT-4 mini for technical answers. Sonnet 3.5 and DeepSeek V3 (which is much cheaper but still not as good as Sonnet) are your best bet for technical questions.

        Where I find GPT to perform better than Sonnet is with text processing. GPT seems to better understand what I want when it comes to processing documents.

        I'm convinced that no LLM provider has created or will create a moat, and that we will always need to shop around for an answer.

      • jack_pp 4 days ago

        libx264 is the best encoder for h264 ffmpeg has to offer so it's pretty important you bundle it in your ffmpeg install. Those commands are perfectly standard, I've been using something like that for 10+ years

  • keeganpoppen 3 days ago

    what exactly do you want the llm to do here? if the ask was so unambiguous and simple that it could be reliably generated, then the interface wouldn't be so complicated to use in the first place! LLMs are not in any way best suited for one-shot prompt => perfect output, and expectations to that effect are extremely unreasonable. the reason why LLMs are still hard for beginners to use is because the software is hard to use correctly. as with LLM output goes life itself: the results you get from using a tool can only ever be as good as the (mental) model used to choose that tool & the inputs to begin with. if all the information required to generate the output were contained by the initial prompt, then there would be absolutely no need to use the LLM at all in the first place.

  • Philpax 4 days ago

    Hate to be that guy, but which LLM was doing the generation? GPT-4 Turbo / Claude 3.x have not really let me down in generating ffmpeg commands - especially for basic requests - with most of their failures resulting from domain-specific vagaries that an expert would need to weigh in on m

    • resonious 4 days ago

      GPT-4

      • Philpax 4 days ago

        Fair enough. If you remember what you were testing with, I'd love to try it again to see if things are better now.

    • th0ma5 4 days ago

      Hate to be that guy, but which model works without fail for any task that ffmpeg can do?

      • iameli 4 days ago

        "Writing working commands first try for every single ffmpeg feature that exists" is the highest bar I've ever heard of, I love it. I'm gonna start listing it as a requirement on job postings. Like an ffmpeg speedrun.

      • Philpax 4 days ago

        I don't think there's a single human on or outside of this planet that can meet that requirement, but Claude has been pretty good to me. It's certainly a much better starting point than pouring over docs and SO posts.

        • th0ma5 3 days ago

          In my experience you still get a lot of stuff that used to work or stuff that it just makes up.

      • AuryGlenz 3 days ago

        I know I struggled on getting a good command to “simply” make the videos from my Z8 smaller (in file size).

        Usually the color was wrong and I don’t care enough to learn about colorspaces to figure out how to fix it and it’s utterly insane how difficult it is even with LLMs.

        Just reencode it as is but a little more lossy. Is that so hard?

      • bloqs 4 days ago

        This doesnt exist in reality so in one sense, you could challenge the relevance

        • th0ma5 3 days ago

          I think in the non LLM world though you at least have the trail of documentation you can unwind once you're in a bind. I don't care for prompt-a-mole fighting.

pmarreck 3 days ago

A while back I simply wrote my own bash function for this called `please`

as in

    bash> please "use ffmpeg to extract audio from myfile.mov and save it as mp3"
It will then courteously show you the command it wants to run before you agree to do it.

Here is the whole thing, with its two dependent functions, so that people stop writing their own versions of this lol. All it needs is an OPENAI_API_KEY, feel free to modify for other LLMs

EDIT: Moved to a gist: https://gist.github.com/pmarreck/9ce17f7996347dd532f3e20a2a3...

Suggestions welcome- for example I want to add a feature that either just copies it (for further modification) or prepopulates the command line with it somehow (possibly for further modification, or even for skipping the approval step)

  • smusamashah 3 days ago

    please is such an appropriate name. Will rename my ChatGPT alias to please.

atoav 3 days ago

Did you just invent the LLM-equivalent of curl-piping unread shell scripts into sh?

I am sure that will never cause any problems.

  • bspammer 3 days ago

    It displays the generated command to you, there's an additional step to confirm.

  • ykonstant 3 days ago

    > Did you just invent the LLM-equivalent of curl-piping unread shell scripts into sh?

    Many such cases.

dekhn 4 days ago

"The future is already here. It's just not very well distributed"

(honestly, the work you share is very inspiring)

zahlman 4 days ago

>This will then be displayed in your terminal ready for you to edit it, or hit <enter> to execute the prompt. If the command doesnt't look right, hit Ctrl+C to cancel.

I appreciate the UI choice here. I have yet to do anything with AI (consciously and deliberately, anyway) but this sort of thing is exactly what I imagine as a proper use case.

  • hnuser123456 4 days ago

    Just like all other code. There will be user-respecting open source code and tools, and there's user-disrespecting profitable closed code that makes too many decisions for you.

th0ma5 4 days ago

You should figure out what went wrong for the other commenter and fix your tool.

mrweasel 3 days ago

While I love that that works, I still feel like just maybe ffmpeg needs a better interface. Not necessarily a GUI, just a better designed command line.

Waterluvian 4 days ago

I think I’m finally sold on actually attempting to add some LLM to my toolbelt.

As a helper and not a replacement, this sounds grand. Like the most epic autocomplete. Because I hate how much time I waste trying to figure out the command line incantation when I already know precisely what I want to do. It’s the weakest part of the command line experience.

  • Over2Chars 4 days ago

    But possibly the most rewarding. The struggle is its own reward that pays off later many times over.

    • hbn 3 days ago

      There are times I feel minor guilt for using an LLM to relieve brainwork, like figuring out an algorithm. That's probably a skill I should continue practicing for my own sake.

      ffmpeg commands though? It's really not a practical skill outside of using ffmpeg. There's nothing really rewarding to me about memorizing awkwardly designed CLI incantations. It's all arbitrary.

      • Over2Chars 3 days ago

        memorization is not what I'm talking about.

        I'm talking about

        1. you have a problem, you try something and it doesn't work. 2. you find an LLM and it "gives" you the answer with one or two tries 3. problem solved! what have you learned? How to have answers given to you when you ask.

        or 2. you look for an answer in a dizzying haze of man pages, quacks, and website Q&As. 3. you try and try again and eventually problem solved. you have learned not only how to solve a particular problem but your overall ability to solve similar problems has done up. You've learned how to fish, not just ask an LLM for a fish.

    • Waterluvian 4 days ago

      Not for me. It’s a tool I don’t care to use any more than I have to. I’m much more interested in what I’m using the tool to accomplish.

      • Over2Chars 4 days ago

        I am not talking about the tool per se. I am talking about the skill of persistence and creativity in the face of a problem.

        Learning a tool is useful, even invaluable, but if you don't have the persistence to use it, it's useless.

        And many tools are just partially useful under some conditions. So creativity in using them is also useful.

        So it's not about the tools, its about not giving up and trying different things, which makes all tools more effective, and problem-solving more likely.