Now Reading
FFmpeg Lands CLI Multi-Threading As Its “Most Advanced Refactoring” In A long time

FFmpeg Lands CLI Multi-Threading As Its “Most Advanced Refactoring” In A long time

2023-12-12 09:15:17

MULTIMEDIA

The long-in-development work for a fully-functional multi-threaded FFmpeg command line has been merged! The FFmpeg CLI with multi-threaded transcoding pipelines is now merged to FFmpeg Git forward of FFmpeg 7.0 releasing early subsequent 12 months. FFmpeg is widely-used all through many industries for video transcoding and in in the present day’s many-core world this can be a terrific enchancment for this key open-source venture.

In lately sharing a technical presentation on the FFmpeg multi-threading effort, FFmpeg builders called this work “some of the complicated refactoring of the FFmpeg CLI in a long time.” And in calling for testing in the present day added, “Please check and report points to [FFmpeg Trac] – this is among the most complicated modifications in FFmpeg ever!

The code is now in FFmpeg Git. The patches embody including the thread-aware transcode scheduling infrastructure, transferring encoding to a separate thread, and varied different low-level modifications. In culminating with changing FFmpeg to a threaded structure is summed up as:

fftools/ffmpeg: convert to a threaded structure

Change the primary loop and each part (demuxers, decoders, filters, encoders, muxers) to make use of the beforehand added transcode scheduler. Each occasion of each such part was already working in a separate thread, however now they will truly run in parallel.

FFmpeg threading

See Also

There is a latest presentation on this work by developer Anton Khirnov.

It is terrific seeing this merged and shall be fascinating to see the efficiency affect in apply.



Source Link

What's Your Reaction?
Excited
0
Happy
0
In Love
0
Not Sure
0
Silly
0
View Comments (0)

Leave a Reply

Your email address will not be published.

2022 Blinking Robots.
WordPress by Doejo

Scroll To Top