Live data from Hacker News

Show HN: LLMpeg

github.com

41–50 of 83 posts

Re: Show HN: LLMpeg

#41
post #39

Most commonly I use ffmpeg to extract a slice of an audio or video file without re-encoding. In case it interests folks, I made a tool called ffslice to do this: https://github.com/jchook/ffslice/

does the tool snap to I-frames when slicing?

Re: Show HN: LLMpeg

#42
post #31

The system prompt may be a bit too simple, especially when using gpt-4o-mini as the base LLM that doesn't adhere to prompts well. > You write ffmpeg commands based on the description from the user. You should only respond with a command line command for ffmpeg, never any additional text. All responses should be a single line without any line breaks. I recently tried to get Claude 3.5 Sonnet to solve an FFmpeg problem…

I asked your question across multiple LLMs and had them reviewed by multiple LLMs. DeepSeek Chat said Claude 3.5 Sonnet produced an invalid command. Here is my chat. https://beta.gitsense.com/?chats=197c53ab-86e9-43d3-92dd-df8... Scroll to the bottom on the left window to see that Claude acknowledges that the command that DeepSeek produced was accurate. In the right window, you'll find the conversation I had with Dee…

So that last one is a hallucination: there's no `n_frames` variable for the select filter: https://ffmpeg.org/ffmpeg-filters.html#select_002c-aselect

At the least, I learnt a lot about how FFmpeg works.

Re: Show HN: LLMpeg

#43
post #33

Earlier quoted context omitted.

ffmpeg has abysmal defaults. I've always been of the opinion that CLI utilities should have sane defaults useful to a majority of users. As someone who has used ffmpeg for well over a decade, I find it baffling that you have to pass so many arguments to get an even remotely usable result

it should really just have an interactive mode that supports batching. It would cover 99% of use cases. I recommend everyone ITT to just use Handbrake (a GUI) unless they have extremely niche use cases. What's the point of using a LLM? You just need one person who knows ffmpeg better than you to write a GUI. And someone did. So use that. If Handbrake doesn't solve your problem please just go to Stack Overflow. The LL…

I used RazorLame back in the day and then MediaCoder for a decade. Then I found out MediaCoder uses ffmpeg!

The main thing I do with ffmpeg is make highly compatible MP4s because some devices can't handle some MP4s.

ffmpeg -i input.mp4 -c:v libx264 -profile:v baseline -level 3.0 -pix_fmt yuv420p -movflags faststart outut.mp4

If I can make a Handbrake preset for that, it might save me a tiny bit of hassle.

Re: Show HN: LLMpeg

#45
post #37
post #9

i think this type of interaction is the future in lots of areas. i can imagine we replace API's completely with a single endpoint where you hit it up with a description of what you want back. like, hit up 'news.ycombinator.com/api' with "give me all the highest rated submissions over the past week about LLMs". a server side LLM translates that to SQL, executes the query, returns the results. this approach is broadly…

Do you envision the LLMs creating a protocol? Would the caller supply the schema for the response?

I mentioned here recently that I let LLMs design the APIs which they are going to use. I got quite a negative response to that, which surprised me.

Re: Show HN: LLMpeg

#46
We should offer a prize for the first person who finds an innocuous input that leads to the model responding with an unintended malicious response.

I think it's funny that 1990's sci-fi movies about AI always showed that two of the most ridiculous things people in the future could do were:

- give your powerful AI access to the Internet

- allow your powerful AI to write and run its own code

And yet here we are. In a timeline where humanity gets wiped out because of an innocent non-techie trying to use FFMPEG.

Somebody is watching us and throwing popcorn at their screen right now!

Re: Show HN: LLMpeg

#47
post #31

Earlier quoted context omitted.

I asked your question across multiple LLMs and had them reviewed by multiple LLMs. DeepSeek Chat said Claude 3.5 Sonnet produced an invalid command. Here is my chat. https://beta.gitsense.com/?chats=197c53ab-86e9-43d3-92dd-df8... Scroll to the bottom on the left window to see that Claude acknowledges that the command that DeepSeek produced was accurate. In the right window, you'll find the conversation I had with Dee…

So that last one is a hallucination: there's no `n_frames` variable for the select filter: https://ffmpeg.org/ffmpeg-filters.html#select_002c-aselect At the least, I learnt a lot about how FFmpeg works.

Yeah, it is crazy how confidently LLMs can say something when it has never existed. Having said that, I'm still a HUGE fan of LLMs, as I know it is very unlikely that multiple LLMs will brain fart at the same time. If you know how to navigate things, you will get a solution much faster than you probably would have in the past.

Re: Show HN: LLMpeg

#48
post #39

Most commonly I use ffmpeg to extract a slice of an audio or video file without re-encoding. In case it interests folks, I made a tool called ffslice to do this: https://github.com/jchook/ffslice/

does the tool snap to I-frames when slicing?

>without re-encoding

What do you think?

Re: Show HN: LLMpeg

#49

We should offer a prize for the first person who finds an innocuous input that leads to the model responding with an unintended malicious response. I think it's funny that 1990's sci-fi movies about AI always showed that two of the most ridiculous things people in the future could do were: - give your powerful AI access to the Internet - allow your powerful AI to write and run its own code And yet here we are. In a t…

LLMs don't have intentions, so it would never be an unintended malicious response.

Re: Show HN: LLMpeg

#50
post #39

Most commonly I use ffmpeg to extract a slice of an audio or video file without re-encoding. In case it interests folks, I made a tool called ffslice to do this: https://github.com/jchook/ffslice/

does the tool snap to I-frames when slicing?

I don't know about ffslice, but you can get frame-perfect slicing with minimal reencoding via LosslessCut's experimental "smart cut" feature[2] or Smart Media Cutter's[3] smartcut[4].

[1] https://github.com/mifi/lossless-cut

[2] https://github.com/mifi/lossless-cut/issues/126

[3] https://smartmediacutter.com/

[4] https://github.com/skeskinen/smartcut

Post reply on HN