Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Change camera example to add a time stamp to recorded video
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
What OS are you working on ?
RichS71 last edited by RichS71
I'm using Linux Mint 18.1 and ubuntu 16.04.
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.
That's great I'll give that a go and update this thread accordingly.
Thanks for your help.
I've read around using QAbstractVideoFilter but all the examples I'm finding seem to require QML . Is there a way to add the filter using C++ avoiding the QML route?
Pablo J. Rogina last edited by
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 .