Rtsp server stream resolution
Matteo Valdina
matteo.valdina at gmail.com
Tue Aug 8 01:32:57 UTC 2017
Hi,
If the stream 1280x720 you need to change the source (what generate the
stream for appsrc) or you need to upscale the stream.
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.
Something like this:
appsrc ! vaapih264dec ! vaapipostproc ! video/x-raw,width=1920,height=1080
! vaapih264enc ! h264parse ! rtph264pay ...
But this is overkill ...
It is better that you investigate how to increase the quality of the source.
Best
Matteo
On Mon, Aug 7, 2017 at 11:07 AM, valerik931 <valerik931 at gmail.com> wrote:
> I think you writed about rtph264pay, but setting this to -1 didn't help.
>
> On media-configure signal invocation I changed appsrc settings to this:
> GstCaps* caps = gst_caps_new_simple("video/x-h264",
>
> "stream-format",G_TYPE_STRING,"byte-stream",
> "width", G_TYPE_INT, videoWidth,
> "height", G_TYPE_INT, videoHeight,
> "framerate", GST_TYPE_FRACTION, 60,
> 1,
> "profile", G_TYPE_STRING,
> "baseline",
> NULL);
>
> g_object_set(G_OBJECT(data->appsrc),
> "stream-type", GST_APP_STREAM_TYPE_STREAM,
> "format", GST_FORMAT_BYTES,
> "caps", caps,
> NULL);
>
> videoWidth and videoHeight are 1080 and 1920 respectively. but stream is
> steel 1280x720.
>
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.
> n4.nabble.com/Rtsp-server-stream-resolution-tp4684106p4684111.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
--
“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.”
- Tony Hoare
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170807/86dd5958/attachment-0001.html>
More information about the gstreamer-devel
mailing list