<div dir="auto"><div>Hi,</div><div dir="auto"><br></div><div dir="auto">Along with this, how can i measure output of encoder? I need to get details of compressed data size per sec, output per second from encoder.</div><div dir="auto"><br></div><div dir="auto">Thanks.<br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Tue, 28 Sep 2021, 1:23 pm Sapna kumari, <<a href="mailto:sapna344@gmail.com">sapna344@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>Hello Nicolas,</div><div dir="auto"><br></div><div dir="auto">Thanks for sharing these details.</div><div dir="auto">I am quite new to this and currently in android native I have added the gstreamer pipeline using gst-rtsp-server.</div><div dir="auto">So I am not quite sure how I can query the format from gst-rtsp-server pipeline. </div><div dir="auto">I have checked in dot graph. Output caps of omx exynos avc encoder shows baseline, constrained baseline, high and main. </div><div dir="auto">And if in case high is set, when I am saving the rtsp stream to file, size of file has also increased for same duration than the one with baseline profile.</div><div dir="auto"><br></div><div dir="auto">Can you please guide me on how I can check this with some sample example? Also if there is any field to be updated in rtsp server pipeline.</div><div dir="auto"><br></div><div dir="auto">Thanks,</div><div dir="auto">Sapna<br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Thu, 23 Sep 2021, 6:29 pm Nicolas Dufresne, <<a href="mailto:nicolas@ndufresne.ca" target="_blank" rel="noreferrer">nicolas@ndufresne.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le jeudi 23 septembre 2021 à 15:21 +0530, Sapna kumari via gstreamer-devel a<br>
écrit :<br>
> Hi,<br>
> <br>
> I am trying to set profile for H264 from baseline to high. I have used below<br>
> rtsp  server pipeline:<br>
> <br>
> appsrc ! amcvidenc-omxexynosavcencoder ! video/x-h264,profile=high ! h264parse<br>
> ! rtph264pay name=pay0 pt=96<br>
> <br>
> On client side :<br>
> gst-launch-1.0.exe rtspsrc lication=rtsp://ip:port ! rtph264depay ! h264parse<br>
> ! splitmuxsink .......and so on.<br>
> <br>
> In dot graph of client pipeline, I see profile as baseline in output caps of<br>
> rtph264depay element.<br>
> <br>
> Can anyone guide me on what could be wrong with this?<br>
<br>
I've looked at the code, media_codec.configure() is fail safe in Android,<br>
returns void. But encoders seems not to set INFO_OUTPUT_FORMAT_CHANGED if the<br>
format configure was altered. As a consequence, you HW driver (Exynos) which<br>
likely does not support High profile, changed it back to baseline and GStreamer<br>
didn't notice.<br>
<br>
Perhaps you may try to force a call to getOutputFormat() after each set_format()<br>
? Though, I'm pretty sure what you are asking from you Exynos encoder is not<br>
possible.<br>
<br>
regards,<br>
Nicolas<br>
<br>
> <br>
> Thanks ,<br>
> Sapna<br>
<br>
<br>
</blockquote></div></div></div>
</blockquote></div></div></div>