<div dir="ltr"><div><div><div>Hi,<br></div>If the stream 1280x720 you need to change the source (what generate the stream for appsrc) or you need to upscale the stream. <br></div>Upscaling the stream means that you need to decode, scale and re-encode the stream. This without any quality advantages because your original stream was a 720p.<br><br></div><div>Something like this:<br></div><div><br></div><div>appsrc ! vaapih264dec ! vaapipostproc ! video/x-raw,width=1920,height=1080 ! vaapih264enc ! h264parse ! rtph264pay ...<br></div><div><br></div><div>But this is overkill ...<br>It is better that you investigate how to increase the quality of the source.<br><br></div><div>Best<br></div><div>Matteo<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 7, 2017 at 11:07 AM, valerik931 <span dir="ltr"><<a href="mailto:valerik931@gmail.com" target="_blank">valerik931@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I think you writed about rtph264pay, but setting this to -1 didn't help.<br>
<br>
On media-configure signal invocation I changed appsrc settings to this:<br>
GstCaps* caps = gst_caps_new_simple("video/x-<wbr>h264",<br>
<br>
"stream-format",G_TYPE_STRING,<wbr>"byte-stream",<br>
                                        "width", G_TYPE_INT, videoWidth,<br>
                                        "height", G_TYPE_INT, videoHeight,<br>
                                        "framerate", GST_TYPE_FRACTION, 60,<br>
1,<br>
                                        "profile", G_TYPE_STRING,<br>
"baseline",<br>
                                        NULL);<br>
<br>
    g_object_set(G_OBJECT(data-><wbr>appsrc),<br>
                 "stream-type", GST_APP_STREAM_TYPE_STREAM,<br>
                 "format", GST_FORMAT_BYTES,<br>
                 "caps", caps,<br>
                 NULL);<br>
<br>
videoWidth and videoHeight are 1080 and 1920 respectively. but stream is<br>
steel 1280x720.<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Rtsp-server-stream-resolution-tp4684106p4684111.html" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.<wbr>n4.nabble.com/Rtsp-server-<wbr>stream-resolution-<wbr>tp4684106p4684111.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">“There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.”<br>- Tony Hoare</div>
</div>