Fallbackswitch not work with glupload
I want to use the gstreamer plugin fallbacksrc on linux. fallbacksrc (with ximagesink) -> OK
gst-launch-1.0 fallbacksrc \
uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm \
fallback-uri=file:///path/to/some/jpg \
! videoconvert \
! ximagesink
It works as expected. fallbacksrc (with glimagesink) -> NG
gst-launch-1.0 fallbacksrc \
uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm \
fallback-uri=file:///path/to/some/jpg \
! videoconvert \
! glimagesink
It does not work.
Error message:
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Noformat', utils/fallbackswitch/src/fallbacksrc/imp.rs:1897:36
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 1073887984
Aborted (core dumped)
===============================================
Another pipeline, that not work:
gst-launch-1.0 \
glvideomixer name=mix background=black ! nvvideoconvert interpolation-method=5 ! video/x-raw, format=NV12, width=1920, height=1080, framerate=25/1 ! nvoverlaysink overlay=0 sync=1 \
fallbacksrc uri=rtsp://admin:password@10.192.48.142 name=rtspsrc fallback-uri=file:///srv/images/camInterrupt.jpg immediate-fallback=1 min-latency=2000000000 timeout=2000000000 ! queue ! \
nvvideoconvert interpolation-method=5 ! \
queue2 ! switchInput.sink_0 \
input-selector name=switchInput ! glupload ! mix. \
multifilesrc location=/srv/fastData/overlay.svg caps=image/svg,width=1920,height=1080,framerate=1/1 ! rsvgdec ! video/x-raw,format=BGRA ! glupload ! mix.
But this work:
gst-launch-1.0 \
glvideomixer name=mix background=black ! nvvideoconvert interpolation-method=5 ! video/x-raw, format=NV12, width=1920, height=1080, framerate=25/1 ! nvoverlaysink overlay=0 sync=1 \
uridecodebin3 uri=rtsp://admin:password@10.192.48.142 name=rtspsrc ! queue ! \
nvvideoconvert interpolation-method=5 ! \
queue2 ! switchInput.sink_0 \
input-selector name=switchInput ! glupload ! mix. \
multifilesrc location=/srv/fastData/overlay.svg caps=image/svg,width=1920,height=1080,framerate=1/1 ! rsvgdec ! video/x-raw,format=BGRA ! glupload ! mix.
Thnks for your help.
Edited by Manuel Schärer