4k preview freezing while decoding/rendering

Jonas Danielsson jonas.danielsson at spiideo.com
Wed May 28 08:27:31 UTC 2025


Hello,

I suspect you  need to set the udp-buffer-size property of the rtspsrc
to handle the large 4K images:
https://gstreamer.freedesktop.org/documentation/rtsp/rtspsrc.html?gi-language=c#rtspsrc:udp-buffer-size

As well as make sure you allow large UDP buffer-size on your host:

Example:
sysctl -w net.core.rmem_max=16777216
rtspsrc udp-buffer-size=16777216

All the best
Jonas

On Wed, 28 May 2025 at 09:40, Manikandan Valaguru via gstreamer-devel
<gstreamer-devel at lists.freedesktop.org> wrote:
>
> Hi,
> We're currently using the following GStreamer pipeline to store 4K video from an RTSP stream:
> "gst-launch-1.0 -e rtspsrc latency=0 location=rtsp://192.168.1.13:5005/videodata ! rtph264depay ! h264parse ! mp4mux ! filesink location=file.mp4"
> The recorded video is then played back using the following pipeline:
> "gst-launch-1.0 filesrc location=videoplayback.mp4 ! qtdemux ! av1parse ! av1dec ! videoconvert ! xvimagesink sync=false "
> However, during playback, we are experiencing stuttering and occasional freezing in the video output. We've attached the video file that exhibits the issue for your reference.
>
> https://drive.google.com/drive/folders/1GvWKAHgY297onzoTD6ff0h17F_6aEWSM
> We suspect the problem might be related to decoding or rendering limitations, possibly due to incorrect pipeline elements or playback configuration. We're especially unsure about the use of av1parse and av1dec, given that the original stream is H.264 encoded.
> We would greatly appreciate your insights on:
>
> Whether the playback pipeline is appropriate for the saved file format.
> If any optimizations or changes can improve the smoothness of playback.
> Any known issues with hardware/software decoding of high-resolution streams.
>
> Thanks in advance for your help!
> Regards,
> Manikandan
>
> This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Taking any action in reliance on the contents of this information is strictly prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. WARNING: Although the company has taken reasonable precautions to ensure no viruses are present in this email, e-con cannot accept responsibility for any loss or damage arising from the use of this email or attachment.


More information about the gstreamer-devel mailing list