News for hackers. Stuff that matters.
Re:FFmpeg is getting better with multithreaded transcoding p... by jbk on Monday November 06, 2023 @05:55AM (#38161005)
It's difficult to understand what this is about without the presentation from Anton, at VideoLAN Dev Days 2023, that you can watch here: https://www.youtube.com/watch?v=Z4DS3jiZhfo&t=1221
Re:FFmpeg is getting better with multithreaded transcoding p... by gbersac on Monday November 06, 2023 @06:10AM (#38161076)
I love this guy! He's a very talented guy who devoted his life to open source.
Re:FFmpeg is getting better with multithreaded transcoding p... by lofaszvanitt on Monday November 06, 2023 @06:24AM (#38161148)
Hope he doesn't have to beg for donations.
Re:FFmpeg is getting better with multithreaded transcoding p... by bobsmooth on Monday November 06, 2023 @06:07AM (#38161065)
What is difficult to understand? Does multithreaded mean something different in the realm of video transcoding?
Re:FFmpeg is getting better with multithreaded transcoding p... by t43562 on Monday November 06, 2023 @06:34AM (#38161221)
His work is not primarily about multithreading but about cleaning up ffmpeg to be true to its own architecture so that normal human beings have a chance of being able to maintain it. Things like making data flow one way in a pipeline, separating public and private state and having clearly defined interfaces.

Things had got so bad that every change was super difficult to make.

Multithreading comes out as a natural benefit of the cleanup.

Re:FFmpeg is getting better with multithreaded transcoding p... by pjc50 on Monday November 06, 2023 @06:51AM (#38161344)
^ This: I just spent the ~20 minutes necessary to watch that part of the talk at a reasonable 1.5x speed, and that's the summary. Ffmpeg was suffering from 20 years of incremental change and lack of cleanup/refactoring, and that's what he's spent two years doing.

A couple of great lines including "my test for deprecating an option is if it's been broken for years and nobody is complaining, then definitely nobody is using it".

Re:FFmpeg is getting better with multithreaded transcoding p... by andrewstuart on Monday November 06, 2023 @07:04AM (#38161453)
I often look for obscure options to get specialists tasks done in all sorts of software.

Better to fix the option.

Just because I didn’t go to the very significant effort of complaining doesn’t mean I didn’t want and burn hours trying to use that option.

Re:FFmpeg is getting better with multithreaded transcoding p... by pjc50 on Monday November 06, 2023 @07:14AM (#38161534)
The verdict of the presentation was that many options are (bad) duplicates of the filter graph, and you should configure the software through the filter graph.

We saw in openssl what the consequences of never removing any code for decades were. It has a real cost.

Always a case-by-case decision, though.

Re:FFmpeg is getting better with multithreaded transcoding p... by Zagitta on Monday November 06, 2023 @07:15AM (#38161542)
You can't expect open source developers to be omniscient and know you want to use a specific feature if you don't communicate that to them. Would you rather have them add telemetry?
Re:FFmpeg is getting better with multithreaded transcoding p... by johnmaguire on Monday November 06, 2023 @01:20PM (#38166463)
Fixing the option takes time and expertise, as well as an idea of what users actually are trying to do.

If you don't give feedback to developers, how do you expect them to know you wanted to use the option?

Better to remove a broken feature than let users burn hours futilely trying to make it work.

Re:FFmpeg is getting better with multithreaded transcoding p... by smcnally on Tuesday November 07, 2023 @12:42AM (#38173665)
And “the most-popular encoder on at least two planets” as Mars Rover Perseverance runs it.

https://www.reddit.com/r/space/comments/lpz3l7/the_mars_2020...

Re:FFmpeg is getting better with multithreaded transcoding p... by bootloop on Monday November 06, 2023 @06:13AM (#38161093)
> "multi-threading it's not really all about just multi-threading - I will say more about that later - but that is the marketable term"

That's whats said in the video at least in the first 10 seconds so it might be that multi-threading is just a too trivial term for the work here. (But haven't watched the video yet so just an observation.)

Re:FFmpeg is getting better with multithreaded transcoding p... by rolandog on Monday November 06, 2023 @05:49PM (#38170275)
If I recall correctly, he meant that multi-threading wasn't a direct goal, but a "side effect" of rewriting some parts of the codebase to match the expected conceptual flow, and paying off some re-write debt that had been accumulated after years of new features being "tacked on".
Re:FFmpeg is getting better with multithreaded transcoding p... by defrost on Monday November 06, 2023 @06:17AM (#38161112)
There are many different types of pipelined processing tasks with many differing kinds of threading approaches, and I guess the video clears up what kinds of approaches work best with transcoding ..
Re:FFmpeg is getting better with multithreaded transcoding p... by gooseus on Monday November 06, 2023 @08:03AM (#38162036)
Nice, great presentation! Curious what he has in mind for the "dynamic pipelines" and "scripting (Lua?)" he mentions in the "Future directions" section. I'm imagining something more powerful for animating properties?
Re:FFmpeg is getting better with multithreaded transcoding p... by dylan604 on Monday November 06, 2023 @11:16AM (#38164536)
Man, i really want to watch this presentation, but the piss poor audio just causes my brain to have a fit. How in today's time is this still possible to screw up so badly?
Re:FFmpeg is getting better with multithreaded transcoding p... by jugad on Monday November 06, 2023 @12:55PM (#38166036)
What are you talking about... the audio might not professional studio level 10/10, but I don't see anything significantly wrong with it - given that its more like a standard presentation mic. Its clearly good enough.
Re:FFmpeg is getting better with multithreaded transcoding p... by dylan604 on Monday November 06, 2023 @01:12PM (#38166336)
Every time he turns away from the mic and continues talking while looking at the projection his volume goes way down and at best sounds like a mumble. It is very taxing to keep up with him when he's turned away. It's the wrong mic for the task.
Re:FFmpeg is getting better with multithreaded transcoding p... by wildekek on Monday November 06, 2023 @01:23PM (#38166511)
Agreed. Maybe some are not as sensitive to this, but it is a major energy suck for me. A little post-processing on noise and compression would come a long way. This recording is as raw as the Ramsey meme.
Re:FFmpeg is getting better with multithreaded transcoding p... by jbk on Monday November 06, 2023 @01:34PM (#38166710)
We're very happy for your volunteering to record our next developer conference, tickets are free!
Re:FFmpeg is getting better with multithreaded transcoding p... by dylan604 on Monday November 06, 2023 @01:46PM (#38166892)
if you weren't on a different continent separated by a very large body of water, I'd be there. I'll donate by suggesting the use of a lav mic vs a podium mic.

It is very difficult for some people to be able to understand clearly voices that are muddled from off axis audio recording. It's a real condition. I have hard time hearing voices in a crowded room from people across the table from me. We spend time worrying about the aria tags in our mark up, but we just assume that everyone has the same hearing abilities? I get that most people probably don't think about this when they don't have a hearing condition, but to be dismissive about it is an entirely different level of egregiousness.

Could my initial criticism have been provided with an entirely different tact, absolutely. But after the mental exhaustion that video was, that was all the energy I could afford at the time.

Re:FFmpeg is getting better with multithreaded transcoding p... by aidenn0 on Monday November 06, 2023 @11:45AM (#38164936)
Oh, I've run into so many issues related to the "Extras" listed on the slide at ~33m into that video.