Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CS-2376-delete parsebin of h266dec pipeline #191

Merged
merged 2 commits into from
Sep 30, 2024
Merged
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
5 changes: 4 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,10 @@ exclude-too-few-public-methods=
ignored-parents=

# Maximum number of arguments for function / method.
max-args=5
max-args=17

# Maximum number of positional arguments for function / method (default=5.)
max-positional-arguments = 17

# Maximum number of attributes for a class (see R0902).
max-attributes=7
Expand Down
21 changes: 20 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 @@ -654,7 +655,25 @@ class FluendoVVCdeCH266Decoder(GStreamer10Video):

codec = Codec.H266
decoder_bin = " fluh266dec "
api = "VVdeC"
provider = "Fluendo"
api = "SW"

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
Expand Down
Loading