I try to record a Video with the OpenCV Framework an would like to save that into an Matroska(mkv) Container together with some additional data streams.
First I thought using FFmpeg is the way that. But while looking into the OpenCV Sourcecode and searching in the web I found GStreamer.
Because the documentation in GStreamer is much better than the FFmpeg documentation I would prefer using this Framework.
In my understanding GStreamer is primarily used for Streaming, but could also rncode and mux video data.
Is there any disadvantage when using GStreamer instead of FFmpeg?
Thanks in advance Horst
I try to record a Video with the OpenCV Framework an would like to save that into an Matroska(mkv)
I don't think OpenCV can store video as MKV,
together with some additional data streams.
OpenCV doesn't provide features for this operation.
An easy workaround is to simply call ffmpeg's or gstreamer's cmd-line application to do the conversion for you.
GStreamer has indeed a decent documentation and it can also do the job. The obvious disadvantage is that if you know how to work with FFmpeg, changing to GStreamer will require some extra time to understand how it works since both have completely different APIs: GStreamer architecture was inspired by DirectShow and Quicktime.
The advantage is that GStreamer (besides being cross-platform as well) is used on several big projects and getting to know GStreamer will certainly add a great skill to your programming arsenal.