Streaming of video from grayscale 16 bits lossless

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Streaming of video from grayscale 16 bits lossless

manuk
Hello all,

I would like to stream a video in grayscale 16 bits to udp without loss the resolution in using udpsink and from udpsrc client retrieve the grayscale image in 16 bits.

I have tried to use the rtpvrawpay but this one does not support grayscale 16 bits.

Have you any ideas to do that without loss?

Thanks in advance.
Reply | Threaded
Open this post in threaded view
|

Re: Streaming of video from grayscale 16 bits lossless

Josh Doe
rtpvrawpay only supports the color formats defined in RFC 4175 [1],
which does not include GRAY8, or GRAY16_LE/BE. I found another RFC
4421 [2] which adds a few other RGB formats, but nothing about
grayscale.

If you're only streaming between your own services, you can payload
GStreamer buffers using rtpgstpay. Don't forget this will be very
demanding on your network depending on your resolution and framerate.

[1]: https://tools.ietf.org/html/rfc4175
[2]: https://tools.ietf.org/html/rfc4421

On Mon, May 22, 2017 at 5:26 AM, manuk <[hidden email]> wrote:

> Hello all,
>
> I would like to stream a video in grayscale 16 bits to udp without loss the
> resolution in using udpsink and from udpsrc client retrieve the grayscale
> image in 16 bits.
>
> I have tried to use the rtpvrawpay but this one does not support grayscale
> 16 bits.
>
> Have you any ideas to do that without loss?
>
> Thanks in advance.
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Streaming-of-video-from-grayscale-16-bits-lossless-tp4683064.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Streaming of video from grayscale 16 bits lossless

Nicolas Dufresne-5
Le mardi 23 mai 2017 à 09:08 -0400, Josh Doe a écrit :

> rtpvrawpay only supports the color formats defined in RFC 4175 [1],
> which does not include GRAY8, or GRAY16_LE/BE. I found another RFC
> 4421 [2] which adds a few other RGB formats, but nothing about
> grayscale.
>
> If you're only streaming between your own services, you can payload
> GStreamer buffers using rtpgstpay. Don't forget this will be very
> demanding on your network depending on your resolution and framerate.
>
> [1]: https://tools.ietf.org/html/rfc4175
> [2]: https://tools.ietf.org/html/rfc4421
Another option if you need to use less bandwidth, would be to use PNG
compression along with rtpgstpay/depay. I think with the use case of
streaming depth buffers, someone will need to propose an RFC to extend
this. For higher compression, one could use some 10bit or 12bit YUV
with H264/5. The UV will be constant, and the GRAY mapped as Y will be
better then 8bit, but less then 16bit. Theoretically, we could craft a
16bit Y-Cb-Cr 4:1:1 format that would fit the RTP standard here. But
even though standard, it would not be commonly supported, so the gst
payload might do the same.

regards,
Nicolas
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (188 bytes) Download Attachment