Skip to content

Commit

Permalink
Make queue of fileSink thread leaky.
Browse files Browse the repository at this point in the history
For higher delay times, the pipeline got completely stuck. Therefore, we now changed it to drop old buffers once it gets full.
  • Loading branch information
neslihanedes authored Jun 16, 2021
1 parent 5a197fd commit 6c6d97d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private String buildPipelineDescription() {

String recordingFileName = System.currentTimeMillis() + ".mp4";
String fileSink =
"t. ! queue " +
"t. ! queue leaky=downstream " +
"! videoconvert ! " + gpuNvidiaEncoding + " ! mp4mux ! filesink location=" + recordingFileName;

descriptionBuilder.append(fileSink);
Expand Down

0 comments on commit 6c6d97d

Please sign in to comment.