Closed bastianhjaeger closed 4 months ago
I can't quite figure out what you're asking for, Are you having trouble getting the imagesink to emit a specific type string for downstream tools? or are you having trouble getting imagesrc to recognise the format coming out of a realsense?
if it's the imagesink, you can override the type to an explicit string using the ros-encoding
property
If it's the imagesrc, you can give it a caps-filter specifying the gstreamer type to bypass the auto-detect
I would like to extend the encoding to support 16UC1 encodings (for realsense depth iamges).
If I manually change gst_bridge.cpp#L33-L57 by
everything works for me.
How could I extend the current code to support
MONO16
andTYPE_16UC1
? I am not sure how to resolve the ambiguous conversion instd::string getRosEncoding(GstVideoFormat format)
fromGST_VIDEO_FORMAT_GRAY16_LE
to eitherMONO16
orTYPE_16UC1
Theoretically:
Any insights? I could do the coding.