Skip to content

chore: enable libav and vvdec plugins for source-compiled GStreamer in Dockerfile#364

Open
mdimopoulos wants to merge 1 commit into
masterfrom
OCP-7268
Open

chore: enable libav and vvdec plugins for source-compiled GStreamer in Dockerfile#364
mdimopoulos wants to merge 1 commit into
masterfrom
OCP-7268

Conversation

@mdimopoulos

Copy link
Copy Markdown
Contributor

Adding the following in the Dockerfile

  • enable previously disabled libav plugins when compiling GStreamer from source
  • compile vvdec from source when GStreamer 1.26.0 or above is requested

@mdimopoulos mdimopoulos changed the title chore: enable libav (incl. vvdec) plugins for source-compiled GStreamer in Dockerfile chore: enable libav and vvdec plugins for source-compiled GStreamer in Dockerfile Jun 16, 2026
Comment thread docker/Dockerfile
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \
\
# 5. Extract pre-compiled cargo-c binaries directly to skip compilation errors \
curl -L "https://github.com/lu-zero/cargo-c/releases/latest/download/cargo-c-x86_64-unknown-linux-musl.tar.gz" | tar -xz -C ${CARGO_HOME}/bin && \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use something like ${ARCH}, instead hardcoded value x86_64?

Comment thread docker/Dockerfile
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \
\
# 5. Extract pre-compiled cargo-c binaries directly to skip compilation errors \
curl -L "https://github.com/lu-zero/cargo-c/releases/latest/download/cargo-c-x86_64-unknown-linux-musl.tar.gz" | tar -xz -C ${CARGO_HOME}/bin && \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here, can we use ${CARGO_C_VERSION}, instead latest? A new release can breaks the building

Comment thread docker/Dockerfile
\
# 1. Ensure OpenSSL development headers are present for the Rust compilation \
apt-get update && apt-get install -y --no-install-recommends \
libssl-dev \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

libssl-dev twice installed

Comment thread docker/Dockerfile
# 8. Refresh loader runtime cache and run post-build cleanup \
ldconfig && \
rm -rf /tmp/gst-plugins-rs ${CARGO_HOME}/registry ${CARGO_HOME}/git; \
else \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can clean also toolchain...

&& rm -rf "$RUSTUP_HOME" "$CARGO_HOME"

Comment thread docker/Dockerfile
&& mkdir -p /tmp/gstreamer && cd /tmp/gstreamer \
&& curl -L "https://gitlab.freedesktop.org/gstreamer/gstreamer/-/archive/${GSTREAMER_VERSION}/gstreamer-${GSTREAMER_VERSION}.tar.gz" | tar xz \
&& cd gstreamer-${GSTREAMER_VERSION} \
# Dynamically assign -Dvaapi=enabled for ANY version older than 1.28 \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it not < 1.28 ?

@rsanchez87 rsanchez87 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

several minor comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants