Gstreamer hw-accelertor encoding does work under ubuntu 20.04 but not under ubuntu 22.04

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Gstreamer hw-accelertor encoding does work under ubuntu 20.04 but not under ubuntu 22.04

rvswdev
Hi,

I am using gstreamer under docker image.
following is my docker image packages:

FROM ubuntu:20.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y && apt-get --no-install-recommends install -y  \
    build-essential \
    gdb \
    gstreamer1.0-plugins-base \
    gstreamer1.0-plugins-good \
    gstreamer1.0-vaapi \
    gstreamer1.0-x \
    intel-gpu-tools \
    intel-media-va-driver-non-free \
    libavcodec-dev \
    libavformat-dev \
    libcairo2-dev \
    libcurl4-openssl-dev \
    libgirepository1.0-dev \
    libgstreamer1.0-0 \
    libgstreamermm-1.0-dev \
    gstreamer1.0-tools \
    libgtk2.0-dev \
    liblz4-dev \
    libmfx-tools \
    libmfx1 \
    libpython3-dev \
    libsasl2-dev \
    libssl-dev \
    libswscale-dev \
    libtool \
    libtool-bin \
    libva-drm2 \
    libva-x11-2 \
    libzstd-dev \
    pkg-config \
    python-gi-dev \
    python3-gi \
    rapidjson-dev \
    vainfo \
    zlib1g-dev

When using ubuntu 20.04, the following cmd flow is working as expected:

gst-launch-1.0 -v videotestsrc  ! 'video/x-raw,width=3840,height=2160,framerate=30000/1001' ! vaapipostproc ! 'video/x-raw(memory:VASurface),width=1920,height=1080' ! queue ! vaapih264enc ! splitmuxsink location=file%003d.mp4 max-size-time=500000000

gst-launch-1.0 -v videotestsrc  ! 'video/x-raw,width=3840,height=2160,framerate=30000/1001' ! vaapipostproc ! 'video/x-raw,width=1920,height=1080' ! queue ! vaapih264enc ! splitmuxsink location=file%003d.mp4 max-size-time=500000000

Migrating to ubuntu 22.04:
FROM ubuntu:22.04

The gstreamer command does not work, the ‘splitmuxsink’ does not create any split files.

Is it known issue?
How can I check it?