Change camera example to add a time stamp to recorded video
-
Hi All,
I'd like to adapt the camera example in 5.11.1 so that it adds a time/date stamp overlay into the video stream , much the same as you would get on a cctv system.
Can anyone give me an idea of how I could approach this. I'm a Qt nube but an old hat at C++.
Thanks in advance
Rich
-
Hi,
What OS are you working on ?
-
You can use QAbstractVideoFilter and add the time stamp on each image.
Or alternatively, you can exploit GStreamer's qmlsink. This would require you to build a GStreamer pipeline that would do the time-stamping.
-
@RichS71 said in Change camera example to add a time stamp to recorded video:
QAbstractVideoFilter
-
Thanks . The post link you included I'd not seen before and appeared to conclude that no one has succeeded in converting the non QML camera example to use filters.
I guess the bit I can't work out is how to connect the filter to the pipeline of QCamera using C++.
I shall persist .