I am new to GStreamer and I try to swap the color channels of a RGB-video. (e.g. red to blue). How can I do this with gst-launch?
I go trough this list but I am unable to find an element to do it: http://gstreamer.freedesktop.org/documentation/plugins.html
I wrote now my own Element. I used "Colorflip" as my base Element, changed the name to "ChannelFlip" (you must rename all methods from gst_video_flip_bla to gst_channel_flip_bla and rename the structs). Then I was able to register my element with:
gst_element_register(NULL, "channelflip", GST_RANK_NONE, GST_TYPE_CHANNEL_FLIP);
Then I added my enums to
GstChannelFlipMethod
and my properties to_GstChannelFlip
. Changed caps to "RGB" and added my Code togst_channel_flip_packed_simple
and called it ingst_channel_flip_transform_frame
instead ofvideoflip->process (videoflip, out_frame, in_frame);
with: