Profile set to high but output shows baseline

Sapna kumari sapna344 at gmail.com
Tue Sep 28 07:53:58 UTC 2021


Hello Nicolas,

Thanks for sharing these details.
I am quite new to this and currently in android native I have added the
gstreamer pipeline using gst-rtsp-server.
So I am not quite sure how I can query the format from gst-rtsp-server
pipeline.
I have checked in dot graph. Output caps of omx exynos avc encoder shows
baseline, constrained baseline, high and main.
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.

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.

Thanks,
Sapna

On Thu, 23 Sep 2021, 6:29 pm Nicolas Dufresne, <nicolas at ndufresne.ca> wrote:

> Le jeudi 23 septembre 2021 à 15:21 +0530, Sapna kumari via gstreamer-devel
> a
> écrit :
> > Hi,
> >
> > I am trying to set profile for H264 from baseline to high. I have used
> below
> > rtsp  server pipeline:
> >
> > appsrc ! amcvidenc-omxexynosavcencoder ! video/x-h264,profile=high !
> h264parse
> > ! rtph264pay name=pay0 pt=96
> >
> > On client side :
> > gst-launch-1.0.exe rtspsrc lication=rtsp://ip:port ! rtph264depay !
> h264parse
> > ! splitmuxsink .......and so on.
> >
> > In dot graph of client pipeline, I see profile as baseline in output
> caps of
> > rtph264depay element.
> >
> > Can anyone guide me on what could be wrong with this?
>
> I've looked at the code, media_codec.configure() is fail safe in Android,
> returns void. But encoders seems not to set INFO_OUTPUT_FORMAT_CHANGED if
> the
> format configure was altered. As a consequence, you HW driver (Exynos)
> which
> likely does not support High profile, changed it back to baseline and
> GStreamer
> didn't notice.
>
> Perhaps you may try to force a call to getOutputFormat() after each
> set_format()
> ? Though, I'm pretty sure what you are asking from you Exynos encoder is
> not
> possible.
>
> regards,
> Nicolas
>
> >
> > Thanks ,
> > Sapna
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20210928/798ca545/attachment.htm>


More information about the gstreamer-devel mailing list