Discussion:
Streaming of video from grayscale 16 bits lossless
manuk
2017-05-22 09:26:47 UTC
Permalink
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.
Josh Doe
2017-05-23 13:08:52 UTC
Permalink
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
Post by 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.
--
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
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Nicolas Dufresne
2017-05-23 14:33:58 UTC
Permalink
Post by 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
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

Loading...