Skip to content

Commit

Permalink
CS-2376-delete parsebin of h266dec pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
rsanchez87 committed Sep 26, 2024
1 parent f7d69e3 commit 52baf4f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion fluster/decoders/gstreamer.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
)

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


@lru_cache(maxsize=None)
Expand Down Expand Up @@ -195,12 +196,21 @@ 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 ""
if self.name == "Fluendo_H.266":
return PIPELINE_TPL_FLU_H266_DEC.format(
self.cmd,
input_filepath,
self.decoder_bin,
self.caps,
self.sink,
output,
)
return PIPELINE_TPL.format(
self.cmd,
input_filepath,
"parsebin",
self.decoder_bin,
caps,
self.caps,
self.sink,
output,
)
Expand Down Expand Up @@ -654,6 +664,8 @@ class FluendoVVCdeCH266Decoder(GStreamer10Video):

codec = Codec.H266
decoder_bin = " fluh266dec "
name = "Fluendo_H.266"
description = "Fluendo H.266 decoder"
api = "VVdeC"


Expand Down

0 comments on commit 52baf4f

Please sign in to comment.