Skip to main content

Search

Items tagged with: ffmpeg


FFmpeg has the ability to create a waveform image from an audio file. But the default colors are a bit exotic. The "showwavespic=s=1920x1080" option in the command sets the image size.

$ ffmpeg -i input.mp3 -filter_complex showwavespic=s=1920x1080 -frames:v 1 waveform.png

https://trac.ffmpeg.org/wiki/Waveform

#ffmpeg #waveform


Last week we've started testing a rework of a Python+ffmpeg duo service to a pure Rust implementation.
The service is a custom logic around video processing.
The Rust code is built around gstreamer-rs bindings.
ffmpeg doing less then the custom Rust implementation consumes 1.5GB RAM and 1.15 CPU.
Our new Rust implementation consumes 133MB RAM and 0.18 CPU.
I'd say this is a huge win. I'm really glad that the effort payed back.

#rust #ffmpeg #python #gstreamer