Re: 4k preview freezing while decoding/rendering

Jonas Danielsson via gstreamer-devel <[email protected]> Wed, 28 May 2025 10:27:31 +0200
Newsgroups gmane.comp.video.gstreamer.devel
Message-ID <CAL7FtpiFrs1iP5XErfHR6q_qScXYH++yCrBQ+feO3qwjd5R+QA@mail.gmail.com>
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-langua=
ge=3Dc#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=3D16777216
rtspsrc udp-buffer-size=3D16777216

All the best
Jonas

On Wed, 28 May 2025 at 09:40, Manikandan Valaguru via gstreamer-devel
<[email protected]> 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=3D0 location=3Drtsp://192.168.1.13:500=
5/videodata ! rtph264depay ! h264parse ! mp4mux ! filesink location=3Dfile.=
mp4"
> The recorded video is then played back using the following pipeline:
> "gst-launch-1.0 filesrc location=3Dvideoplayback.mp4 ! qtdemux ! av1parse=
 ! av1dec ! videoconvert ! xvimagesink sync=3Dfalse "
> However, during playback, we are experiencing stuttering and occasional f=
reezing in the video output. We've attached the video file that exhibits th=
e issue for your reference.
>
> https://drive.google.com/drive/folders/1GvWKAHgY297onzoTD6ff0h17F_6aEWSM
> We suspect the problem might be related to decoding or rendering limitati=
ons, possibly due to incorrect pipeline elements or playback configuration.=
 We're especially unsure about the use of av1parse and av1dec, given that t=
he 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 strea=
ms.
>
> Thanks in advance for your help!
> Regards,
> Manikandan
>
> This email and any files transmitted with it are confidential and intende=
d 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 b=
y 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 preca=
utions 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.