Skip to content
Merged
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
4 changes: 3 additions & 1 deletion fluster/decoders/gstreamer.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
)

PIPELINE_TPL = "{} --no-fault filesrc location={} ! {} ! {} ! {} ! {} {}"
PIPELINE_TPL_FLU_H266_DEC = "{} --no-fault filesrc location={} ! {} ! {} ! {} {}"
PIPELINE_TPL_FLU_H266_DEC = "{} --no-fault filesrc location={} {} ! {} ! {} ! {} {}"


@lru_cache(maxsize=None)
Expand Down Expand Up @@ -791,9 +791,11 @@ def gen_pipeline(
) -> str:
caps = f"{self.caps} ! videoconvert dither=none ! video/x-raw,format={output_format_to_gst(output_format)}"
output = f"location={output_filepath}" if output_filepath else ""

return PIPELINE_TPL_FLU_H266_DEC.format(
self.cmd,
input_filepath,
"! h266parse " if gst_element_exists("h266parse") else "",
self.decoder_bin,
caps,
self.sink,
Expand Down