Flurry image when showing BGRA raw pixels
longkas
longkas at gmail.com
Mon Apr 22 07:52:01 UTC 2019
Hello,
I'm using appsrc to stream BGRA frame buffers to the autovideosink, but the
image seems flurry and not clear,
but if I save the pixel buffers as PNG file, the image seems quite ok, see
my attachment, the above part is using appsrc to videosink and the bottom is
single frame buffer to PNG
<http://gstreamer-devel.966125.n4.nabble.com/file/t378770/appsrcBGRA.jpg>
my appsrc looks like:
appsrcCaps = gst_caps_new_simple("video/x-raw",
"width", G_TYPE_INT, V_WIDTH,
"height", G_TYPE_INT, V_HEIGHT,
"format", G_TYPE_STRING, "BGRA",
"framerate", GST_TYPE_FRACTION, 0, 1,
NULL);
gst_app_src_set_size(appSrc, -1);
gst_app_src_set_duration(appSrc, GST_CLOCK_TIME_NONE);
gst_app_src_set_stream_type(appSrc, GST_APP_STREAM_TYPE_STREAM);
gst_app_src_set_max_bytes(appSrc, V_WIDTH * V_HEIGHT * 4 * 1);
g_object_set(videotestsrc, "is-live", TRUE, NULL);
g_object_set(videotestsrc, "do-timestamp", TRUE, NULL);
g_object_set(videotestsrc, "format", GST_FORMAT_TIME, NULL);
appsrc pipeline:
#gst-launch-1.0 -v appsrc ! autovideosink
PNG test pipeline:
#gst-launch-1.0 -v filesrc location=e:/frame.png ! decodebin !
imagefreeze ! autovideosink
any advice whats going on, thanks
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel
mailing list