Image Corruption pulling images via appsink from RTSP stream:

Scot Zarkiewicz scotzark at gmail.com
Tue Dec 20 22:22:34 UTC 2022


Hi All-

Trying to pull images from the pipeline below through an appsink:
rtspsrc location=rtsp://192.168.0.104:554 ! rtph265depay ! h265parse !
decodebin ! appsink name=sink

The frame is converted as such:

    g_signal_emit_by_name (sink, "pull-sample", &sample);

    caps = gst_caps_new_simple ("image/jpeg",
                                "pixel-aspect-ratio", GST_TYPE_FRACTION, 1,
1,
                                "width", G_TYPE_INT, 1920,
                                "height", G_TYPE_INT, 1080,
                                NULL);

    to_sample = gst_video_convert_sample (sample, caps,
GST_CLOCK_TIME_NONE, &err);

The issue is that we are having quite a bit of corruption of the image, see
below (note that not all frames are corrupted):

[image: image.png]

[image: image.png]

Any insight would be greatly appreciated!

thanks

Scot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20221220/129d2b3b/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 750636 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20221220/129d2b3b/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 851401 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20221220/129d2b3b/attachment-0003.png>


More information about the gstreamer-devel mailing list