News for hackers. Stuff that matters.
Re:Twenty One Zero-Days in FFmpeg by nerdsniper on Friday June 12, 2026 @08:44PM (#48511046)
Is GStreamer a more secure alternative or does it just get a bit less attention than ffmpeg?
Re:Twenty One Zero-Days in FFmpeg by derf_ on Saturday June 13, 2026 @12:08AM (#48512984)
Any multimedia project trying to support a large number of formats, whose usage in the wild differs by orders of magnitude, is going to have code of varying quality (although quality is not strictly correlated with usage: age and complexity are also big factors, among others). GStreamer puts plugins into different categories (-good, -bad, etc.) based on things like the maturity of the code, which helps you judge what risks you are taking. With FFmpeg it is harder to know which formats are more likely to have issues. Of course GStreamer can use FFmpeg, in which case you will also have all of FFmpeg's problems.

In both cases you are best off restricting things to what you actually use.

Re:Twenty One Zero-Days in FFmpeg by hugmynutus on Friday June 12, 2026 @11:59PM (#48512916)
GStreamer is just a different front end to ffmpeg.

ffmpeg's core functionality (encode, decode, streams, pipes, channels) are all implemented in `libav` which gstreamer links against.

Re:Twenty One Zero-Days in FFmpeg by harrall on Saturday June 13, 2026 @12:26AM (#48513127)
GStreamer doesn’t use ffmpeg’s pipeline at all. It implements a much more advanced directed graph with disconnect, connection and pad negotiation. You can dynamically swap out the entire filter graph during live playback with zero disruption. Swap feeds, outputs, effects… all at runtime.

ffmpeg and other media frameworks (Windows Media Foundation, Apple’s AVFramwork) only support static pipelines. You can use “switcher” components but the inputs are still static.

GStreamer is extremely special. The only thing that comes close was Microsoft’s DirectShow, which has since been replaced with Media Foundation which can’t do it. And while DirectShow did support it, it was fragile because many 3rd party filters did not support dynamic configuration.

GStreamer does use ffmpeg, but it just wraps the core encoder/decoder/filter code and discards the streams/graph/pipe part of ffmpeg.

Re:Twenty One Zero-Days in FFmpeg by Sesse__ on Saturday June 13, 2026 @03:14AM (#48514346)
> ffmpeg and other media frameworks (Windows Media Foundation, Apple’s AVFramwork) only support static pipelines.

FFmpeg doesn't do “pipelines”. It's a library, not a framework.

Re:Twenty One Zero-Days in FFmpeg by mort96 on Saturday June 13, 2026 @10:43AM (#48517816)
It's also a command line tool, where you can design (limited) media graphs: sources, sinks, filters, encoders, decoders, muxers, demuxers. You don't express it as directly as gst-launch's pipeline syntax, but it's very much a pipeline.
Re:Twenty One Zero-Days in FFmpeg by mort96 on Saturday June 13, 2026 @10:32AM (#48517726)
GStreamer is not "just a different front end to ffmpeg". GStreamer is a pluggable media graph system.

"GStreamer" doesn't link against libav. The GStreamer plugin "gst-libav" links against libav. If you're not using the gst-libav, you're not using ffmpeg. I'd bet a relatively small amount of GStreamer use cases use gst-libav; I typically see people use e.g x264dec and x264enc (from the x264 plugin) to decode and encode media, or, for hardware encoding/decoding, the v4l2enc and v4l2dec elements (or elements from a SoC vendor's plug-in such as gst-rockchip). It also has its own non-libav elements to handle container formats, pixel format conversion, scaling, etc, which are more natural to use since they're part of the core gstreamer plug-in packages rather than gst-libav.

Re:Twenty One Zero-Days in FFmpeg by WD-42 on Friday June 12, 2026 @10:12PM (#48511891)
From what I understand gstreamer is more about building complex pipelines and plugins, ffmpeg is better at playing some obscure 20 year old video format extremely efficiently so you can watch it compiled for a potato.

Different cases really I think both are good.

Re:Twenty One Zero-Days in FFmpeg by hackernudes on Friday June 12, 2026 @11:01PM (#48512381)
That's not really true. Ffmpeg is a Swiss army knife for anything related to digital multimedia (old and new). It is broken into a few libraries but doesn't really have plugins.

Gstreamer has a different model, chaining together plugins. Lots of overlap, but I think Gstreamer only has real traction because some silicon vendors use it.

Re:Twenty One Zero-Days in FFmpeg by wmf on Friday June 12, 2026 @11:16PM (#48512522)
Doesn't GStreamer mostly use ffmpeg plugins?
Re:Twenty One Zero-Days in FFmpeg by ranger_danger on Friday June 12, 2026 @09:55PM (#48511708)
In my experience it's mainly run by very grumpy and opinionated Europeans who take pride in having bugs old enough to drink.
Re:Twenty One Zero-Days in FFmpeg by samiv on Saturday June 13, 2026 @03:56AM (#48514639)
Gstreamer is a multimedia framework where the user creates media DAGs by placing video/audio/multimedia elements such as demuxers, decoders etc in a pipeline. The framework then takes care of running the media pipeline and handles the data buffering etc.

Within the framework there are multitudes of plugin packages that contain said elements and many of them are built on top of ffmpeg.