Batch or offline processing, how to?

Hello!

Somewhat connected to this question, I wonder what is the recommended way to use Membrane for “offline or batch” (= as fast as possible and not following the pace of the music) processing.

Example use-cases:

  • loading a mp3, doing some analysis on it, and splitting it in parts, without having to wait the total duration of the mp3
  • applying effects via a custom filter, from a source file to a target file, without having to wait either etc.

Are there examples of doing that somewhere?

Happy to contribute something if not, once I’ve got something working fine.

– Thibaut

Hi there, the pace of processing is ‘as fast as possible’ by default. The simplest example is copying a file to another location: membrane_file_plugin/examples/sink_and_source.exs at master · membraneframework/membrane_file_plugin · GitHub. If you plug an element that works in real-time, such as an audio player, it slows down the processing and other elements adjust to it automatically.

1 Like

Excellent. Many thanks!

1 Like