Pushing bmp frames using appsrc

Peto kybuliak at gmail.com
Tue Apr 17 09:50:31 UTC 2018


Hi guys,

I need to create a pipeline into which I can push images and they are
streamed as video using HLS.
I started simple and created a following pipeline:

appsrc -> avdec_bmp -> videoconvert -> queue -> autovideosink

where appsrc has following configuration:

caps=image/bmp,framerate=0/1,width=900,height=374
stream-type=0 // No seeking
format=3 // time
do-timestamp=true

But when I push images into the pipeline, my process crashes after a
few images are pushed.
I am trying it on Windows 10, installed
gstreamer-1.0-x86_64-1.14.0.1.msi,
gstreamer-1.0-devel-x86_64-1.14.0.1.msi and
I am using C# Visual Studio 2017

With GST_DEBUG=3 I get following log messages:

0:00:00.179678881 15352 000002142BEB06F0 WARN            d3dvideosink
d3dhelpers.c:1106:d3d_set_window_handle:<autovideosink0-actual-sink-d3dvideo>
Window HWND already set to: 0
0:00:00.199762950 15352 000002142BB83DC0 FIXME                default
gstutils.c:3963:gst_pad_create_stream_id_internal:<app_src:src>
Creating random stream-id, consider implementing a deterministic way
of creating a stream-id
0:00:00.214943959 15352 000002142BEB06F0 WARN                  appsrc
gstappsrc.c:1802:gst_app_src_push_internal:<app_src> do-timestamp=TRUE
but buffers are provided before reaching the PLAYING state and having
a clock. Timestamps will not be accurate!
0:00:00.257439924 15352 000002142BEB06F0 WARN                  appsrc
gstappsrc.c:1802:gst_app_src_push_internal:<app_src> do-timestamp=TRUE
but buffers are provided before reaching the PLAYING state and having
a clock. Timestamps will not be accurate!

The whole sample can be found here
https://gist.github.com/kybu/e510323b62594ec47ee5e4165831b52e

Any help is greatly appreciated, thanks.

Peter Vrabel


More information about the gstreamer-devel mailing list