4k preview freezing while decoding/rendering

Manikandan Valaguru via gstreamer-devel <[email protected]> Wed, 28 May 2025 07:40:16 +0000
Newsgroups gmane.comp.video.gstreamer.devel
Message-ID <KL1PR03MB8117AB6C817DE209BF4AE157B567A@KL1PR03MB8117.apcprd03.prod.outlook.com>
--_000_KL1PR03MB8117AB6C817DE209BF4AE157B567AKL1PR03MB8117apcp_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,
We're currently using the following GStreamer pipeline to store 4K video fr=
om an RTSP stream:
"gst-launch-1.0 -e rtspsrc latency=3D0 location=3Drtsp://192.168.1.13:5005/=
videodata ! rtph264depay ! h264parse ! mp4mux ! filesink location=3Dfile.mp=
4"
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 fre=
ezing 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 limitation=
s, possibly due to incorrect pipeline elements or playback configuration. W=
e'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 forma=
t.
  *   If any optimizations or changes can improve the smoothness of playbac=
k.
  *   Any known issues with hardware/software decoding of high-resolution s=
treams.

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 o=
r copy this e-mail. Taking any action in reliance on the contents of this i=
nformation 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 f=
rom your system. WARNING: Although the company has taken reasonable precaut=
ions to ensure no viruses are present in this email, e-con cannot accept re=
sponsibility for any loss or damage arising from the use of this email or a=
ttachment.

--_000_KL1PR03MB8117AB6C817DE209BF4AE157B567AKL1PR03MB8117apcp_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo=
ttom:0;} </style>
</head>
<body dir=3D"ltr">
<div style=3D"margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Apto=
s_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-s=
ize: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
Hi,</div>
<div style=3D"margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Apto=
s_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-s=
ize: 12pt; color: rgb(0, 0, 0);">
We're currently using the following GStreamer pipeline to store 4K video fr=
om an RTSP stream:</div>
<div style=3D"margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Apto=
s_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-s=
ize: 12pt; color: rgb(0, 0, 0);">
&quot;gst-launch-1.0 -e rtspsrc latency=3D0 location=3Drtsp://192.168.1.13:=
5005/videodata ! rtph264depay ! h264parse ! mp4mux ! filesink location=3Dfi=
le.mp4&quot;</div>
<div style=3D"margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Apto=
s_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-s=
ize: 12pt; color: rgb(0, 0, 0);">
The recorded video is then played back using the following pipeline:</div>
<div style=3D"margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Apto=
s_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-s=
ize: 12pt; color: rgb(0, 0, 0);">
&quot;gst-launch-1.0 filesrc location=3Dvideoplayback.mp4 ! qtdemux ! av1pa=
rse ! av1dec ! videoconvert ! xvimagesink sync=3Dfalse &quot;</div>
<div style=3D"margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Apto=
s_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-s=
ize: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
However, during playback, we are experiencing <b>stuttering</b>&nbsp;and <b=
>occasional freezing</b>&nbsp;in the video output. We've attached the video=
 file that exhibits the issue for your reference.<br>
<br>
<a href=3D"https://drive.google.com/drive/folders/1GvWKAHgY297onzoTD6ff0h17=
F_6aEWSM" id=3D"LPlnkOWA3332fa21-af87-4d6b-3c17-9179e1ac29b9" class=3D"OWAA=
utoLink">https://drive.google.com/drive/folders/1GvWKAHgY297onzoTD6ff0h17F_=
6aEWSM</a></div>
<div style=3D"margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Apto=
s_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-s=
ize: 12pt; color: rgb(0, 0, 0);">
We suspect the problem might be related to decoding or rendering limitation=
s, possibly due to incorrect pipeline elements or playback configuration. W=
e're especially unsure about the use of av1parse and av1dec, given that the=
 original stream is H.264 encoded.</div>
<div style=3D"margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Apto=
s_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-s=
ize: 12pt; color: rgb(0, 0, 0);">
We would greatly appreciate your insights on:</div>
<ul>
<li style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, C=
alibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Whether the playback pipeline is appropriate for the saved file format.</li=
><li style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, =
Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
If any optimizations or changes can improve the smoothness of playback.</li=
><li style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, =
Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Any known issues with hardware/software decoding of high-resolution streams=
.</li></ul>
<div style=3D"margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Apto=
s_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-s=
ize: 12pt; color: rgb(0, 0, 0);">
Thanks in advance for your help!</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
Regards,<br>
Manikandan<br>
<br>
</div>
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 o=
r copy this e-mail. Taking any action
 in reliance on the contents of this information is strictly prohibited. Pl=
ease notify the sender immediately by e-mail if you have received this e-ma=
il by mistake and delete this e-mail from your system. WARNING: Although th=
e company has taken reasonable precautions
 to ensure no viruses are present in this email, e-con cannot accept respon=
sibility for any loss or damage arising from the use of this email or attac=
hment.
</body>
</html>

--_000_KL1PR03MB8117AB6C817DE209BF4AE157B567AKL1PR03MB8117apcp_--