4k preview freezing while decoding/rendering
Marc Leeman
marc.leeman at gmail.com
Wed May 28 08:54:10 UTC 2025
1. adding 'sync=false' 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
<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.
--
g. Marc
GPG: 827C FD74 BA46 8152 A041 F3A0 7A6A 4F17 5995 A65B
More information about the gstreamer-devel
mailing list