Skip to content

How to improve throughput #269

Answered by neilcsmith-net
BBDooooog asked this question in Q&A
Discussion options

You must be logged in to vote

Moved to discussions as this is more a series of questions than an issue.

Firstly, never, ever call Gst::deinit! Please see https://javadoc.io/static/org.freedesktop.gstreamer/gst1-java-core/1.4.0/org/freedesktop/gstreamer/Gst.html#deinit-- Call Gst::init once when you start up - not per pipeline.

You can create a pipeline per request, or cache and reuse pipelines. Start with the first, and prove you have a throughput issue first.

GStreamer will use its own threads for processing anyway - there shouldn't be any concurrency issues with running multiple pipelines at the same time. However, it is highly recommended to use Gst::invokeLater or Gst::getExecutor to run all Java code interacting …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@BBDooooog
Comment options

@neilcsmith-net
Comment options

Answer selected by BBDooooog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #268 on June 06, 2023 06:38.