Earlier quoted context omitted.
Why on earth would you possibly think that?
I'm quite confused by the answers I got from this thread. Haven't you tried refactoring with gpt-4 yet?
FFmpeg lands CLI multi-threading as its "most complex refactoring" in decades
101–110 of 186 posts
Re: FFmpeg lands CLI multi-threading as its "most complex refactoring" in decades
#102I've always wondered if better multi-core performance can come from processing different keyframe segments separately. IIUC all current encoders that support parallelism work by multiple threads working on the same frame at the same time. Often times the frame is split into regions and each thread focuses on a specific region of the frame. This approach can have a (usually small) quality/efficiency cost and requires…
I know next to nothing about video encoders, and in my naive mind I absolutely thought that parallelism would work just like you suggested it should. It sounds absolutely wild to me that they're splitting single frames into multiple segments. Merging work from different threads for every single frame sounds wasteful somehow. But I guess it works, if that's how everybody does it. TIL!
Re: FFmpeg lands CLI multi-threading as its "most complex refactoring" in decades
#103There is a noticeable delay booting up this pipeline for each tool invoke right now. We are working on putting in some optimizations but improvements in FFmpeg will definitely help. https://github.com/trypromptly/LLMStack is the project repo for the curious.
Re: FFmpeg lands CLI multi-threading as its "most complex refactoring" in decades
#104I've always wondered if better multi-core performance can come from processing different keyframe segments separately. IIUC all current encoders that support parallelism work by multiple threads working on the same frame at the same time. Often times the frame is split into regions and each thread focuses on a specific region of the frame. This approach can have a (usually small) quality/efficiency cost and requires…
Re: FFmpeg lands CLI multi-threading as its "most complex refactoring" in decades
#105It’s nuts to think that in the near future LLM will be able to do that refactoring in seconds. All we need is enough context window.
Parent post is getting down voted to oblivion but it seems a reasonable belief for someone who is not highly engaged with AI. I have only the vaguest understanding of how it works (and it's probably wrong) and to my layman mind it also seems like a totally fair assumption, based on experience as a user and the constant flood of news. Please explain why the suggestion that a future AI / sufficiently advanced LLM could…
Re: FFmpeg lands CLI multi-threading as its "most complex refactoring" in decades
#106Earlier quoted context omitted.
I'm dying.
https://www.youtube.com/watch?v=9kaIXkImCAM
(ps: and no, it's not Rick Astley/Never Gonna Give You Up)
Re: FFmpeg lands CLI multi-threading as its "most complex refactoring" in decades
#107Re: FFmpeg lands CLI multi-threading as its "most complex refactoring" in decades
#108Earlier quoted context omitted.
Video codecs often encode the delta from the previous frame, and because this delta is often small, it's efficient to do it this way. If each thread needed to process the frame separately, you would need to make significant changes to the codec, and I hypothesize it would cause the video stream to be bigger in size.
Isn't that delta partially based on the last keyframe? I guess it would be codec dependent, but my understanding is that keyframes are like a synchronization mechanism where the decoder catches up to where it should be in time.
It also has a lossless codec ffv1 where the entropy coder doesn't reset, so it truly can't be multithreaded.
Re: FFmpeg lands CLI multi-threading as its "most complex refactoring" in decades
#109Earlier quoted context omitted.
I'm quite confused by the answers I got from this thread. Haven't you tried refactoring with gpt-4 yet?
> Haven't you tried refactoring with gpt-4 yet? I most certainly have not. At work, I do greenfield development in a specialized problem domain, and I would not trust a model (or, for that matter, a junior developer) to do any kind of refactor in an acceptable manner. (That aside, there's no way I'm goingto expose company code to any sort of outside party without the approval of upper management). At home, I program…
Re: FFmpeg lands CLI multi-threading as its "most complex refactoring" in decades
#110I've always wondered if better multi-core performance can come from processing different keyframe segments separately. IIUC all current encoders that support parallelism work by multiple threads working on the same frame at the same time. Often times the frame is split into regions and each thread focuses on a specific region of the frame. This approach can have a (usually small) quality/efficiency cost and requires…
IIUC - International Islamic University Chittagong?