Re: 4k preview freezing while decoding/rendering

Marc Leeman via gstreamer-devel <[email protected]> Wed, 28 May 2025 10:54:10 +0200
Newsgroups gmane.comp.video.gstreamer.devel
Message-ID <CAH+fs=8rmfWrKYBaJFk5+DsHL3zGzqP-Gv=d64Do+CteMP3LWw@mail.gmail.com>
1. adding 'sync=3Dfalse' is rarely a good approach
2. it's best to have the rendering/saving in a different thread as the
decoding, add a queue for a sink.
3. I would recommend letting GStreamer have more autonomy in
constructing the pipelines, e.g. by using (uri)decodebin(3) and/or
autovideosink or even gst-play-1.0

On Wed, 28 May 2025 at 10:45, 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.



--=20
g. Marc

GPG: 827C FD74 BA46 8152 A041 F3A0 7A6A 4F17 5995 A65B