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 c938943
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions 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 @@ -654,8 +655,27 @@ class FluendoVVCdeCH266Decoder(GStreamer10Video):

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

def gen_pipeline(
self,
input_filepath: str,
output_filepath: Optional[str],
output_format: OutputFormat,
) -> 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,
self.decoder_bin,
caps,
self.sink,
output,
)


@register_decoder
class FluendoH265Gst10Decoder(GStreamer10Video):
Expand Down

0 comments on commit c938943

Please sign in to comment.