Flurry image when showing BGRA raw pixels

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Flurry image when showing BGRA raw pixels

longkas
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/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Flurry image when showing BGRA raw pixels

longkas
Update:
Steps to reproduce this issue:

1) raw file provided, with 1280x720x1 frame data, I have uploaded here:
https://www.dropbox.com/s/braugpr6dx1y8uo/bgra-1280-720-1.raw?dl=0
2) just build pipeline from command and play
 GstElement* pipe = gst_parse_launch("filesrc
location=d:/bgra-1280-720-1.raw blocksize=3686400 !
video/x-raw,width=1280,height=720,format=BGRA,framerate=1/1 ! videoconvert !
imagefreeze ! autovideosink", NULL);

Thats all, to compare, just open a terminal and type the same command:
gst-launch-1.0  -v filesrc location=d:/bgra-1280-720-1.raw blocksize=3686400
! video/x-raw,width=1280,height=720,format=BGRA,framerate=1/1 ! videoconvert
! imagefreeze ! autovideosink

Tested on Windows 10 x64, Gstreamer 1.16 MinGW.






--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel