av1enc: videotestsrc av1enc error ERROR: pipeline doesn't want to preroll
https://gstreamer.freedesktop.org/documentation/aom/av1enc.html
environment debian
FROM debian:bookworm-20230814
RUN apt update -y && apt install -y --no-install-recommends libgstreamer1.0-dev gstreamer1.0-tools \
libgstreamer-plugins-base1.0-dev gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly
ERROR: pipeline doesn't want to preroll.
gst-launch-1.0 videotestsrc num-buffers=50 ! av1enc ! webmmux ! filesink location=av1.webm
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Redistribute latency...
ERROR: from element /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0: Internal data stream error.
Additional debug info:
../libs/gst/base/gstbasesrc.c(3132): gst_base_src_loop (): /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0:
streaming stopped, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
environment alpine
FROM alpine:3.18.3
RUN apk add --no-cache gstreamer gstreamer-dev libnice-gstreamer gstreamer-tools gst-plugins-good gst-plugins-base gst-plugins-bad
Segmentation fault (core dumped)
/ # gst-launch-1.0 -v videotestsrc num-buffers=50 ! av1enc ! webmmux ! filesink location=av1.webm
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0.GstPad:src: caps = video/x-raw, width=(int)320, height=(int)240, framerate=(fraction)30/1, format=(string)I420, multiview-mode=(string)mo
no, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive
Redistribute latency...
/GstPipeline:pipeline0/GstAV1Enc:av1enc0.GstPad:sink: caps = video/x-raw, width=(int)320, height=(int)240, framerate=(fraction)30/1, format=(string)I420, multiview-mode=(string)mono, pixel-a
spect-ratio=(fraction)1/1, interlace-mode=(string)progressive
Segmentation fault (core dumped)
environment archlinux
FROM archlinux:base-20230723.0.166908
RUN pacman -Syy && pacman -S --noconfirm gstreamer gst-plugins-good gst-plugins-base gst-plugins-bad
It is normal
gst-launch-1.0 videotestsrc num-buffers=50 ! av1enc ! webmmux ! filesink location=av1.webm
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Redistribute latency...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
Redistribute latency...
New clock: GstSystemClock
Got EOS from element "pipeline0".
Execution ended after 0:00:35.768311266
Setting pipeline to NULL ...
Freeing pipeline ...