Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions gaeguli/gaeguli-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,14 @@

#define GAEGULI_PIPELINE_TAG "gaeguli.pipeline_id"

#define GAEGULI_PIPELINE_VSRC_STR "\
%s ! capsfilter name=caps ! %s ! pipewiresink mode=provide stream-properties=%s "
#define GAEGULI_PIPELINE_VSRC_BASE_STR "\
%s ! capsfilter name=caps ! %s ! tee name=t ! pipewiresink mode=provide stream-properties=%s "

#define GAEGULI_PIPELINE_IMAGE_STR "\
valve name=valve drop=1 ! jpegenc name=jpegenc ! jifmux name=jifmux ! fakesink name=fakesink async=0"
t. ! valve name=valve drop=1 ! jpegenc name=jpegenc ! jifmux name=jifmux ! fakesink name=fakesink async=0"

#define GAEGULI_PIPELINE_VSRC_STR \
GAEGULI_PIPELINE_VSRC_BASE_STR GAEGULI_PIPELINE_IMAGE_STR

#define GAEGULI_PIPELINE_GENERAL_H264ENC_STR "\
pipewiresrc path=%u do-timestamp=true ! queue name=enc_first ! videoconvert ! x264enc name=enc tune=zerolatency key-int-max=%d ! \
Expand Down
7 changes: 1 addition & 6 deletions gaeguli/pipeline.c
Original file line number Diff line number Diff line change
Expand Up @@ -604,12 +604,7 @@ _get_vsrc_pipeline_string (GaeguliPipeline * self)
g_autofree gchar *source = _get_source_description (self);
g_autofree gchar *props = _get_stream_props_description (self);

/* FIXME - pipewiresink along with another sink in the pipeline *
* do not provide the captured video to the consumer pipeline. *
* Hence its inclusion is diabled. *
* This should be a sepearate target. */
return g_strdup_printf
(GAEGULI_PIPELINE_VSRC_STR, source,
return g_strdup_printf (GAEGULI_PIPELINE_VSRC_STR, source,
self->source == GAEGULI_VIDEO_SOURCE_NVARGUSCAMERASRC ? "" :
GAEGULI_PIPELINE_DECODEBIN_STR, props);
}
Expand Down