SOLVED Text overlay in veye_raspivid
I'm currently testing the VEYE-MIPI-327E on a Raspberry Pi 3 model A+, and so far I'm very happy with what I see. It would, however, be useful to overlay date and time in the video, as I will be storing lengthy recordings. In raspivid you can overlay text, date etc, with the -a / --annotate flag, but this seems to be missing in veye_raspivid. I poked around the source code, and the annotate functionality seems to be present, but when I try the -a or --annotate flag, veye_raspivid returns with
Invalid command line option (--annotate)
I don't have the skills to implement this myself, but should be able to follow simple instructions. Is there any way to overlay time/date information in a video with either veye_raspivid or the python library?
Sorry for reply late. I think veye_raspivid could not support textoverlay as raspivid.
raspivid use the mmal component
vc.ril.camerawhich support overlay text, while veye_raspivid use 'vc.ril.rawcam' which do not support.
I do not check the mmal library code carefully. So there is also some speculation in this conclusion.
Thank you for your reply.
Do you have a suggestion as the best way to implement date and time overlay in the video stream? I'm somewhat familiar with gstreamer, and the first solution that comes to mind is using veye_raspividyuv and piping the output to gstreamer, add the overlay, encode to h264 and store to files. This will of course increase the load on the raspberry as compared to using the internal h264-encoder.
Is there a better solution? Can this be done in using the python library instead of bash scripts?
hi，sorry for reply late.
I've thought about it for a while, but I can't give you any useful advice now. sorry.
@veye_xumm i used text annotation function from the original RPI cam module to embed some important data to my RPI based car dashcam's recordings. Is there any workaround to overlay a text on h264 encoded video with veye camera sensors? I really need it, can you give me some hints? Thanks, Michał.
I understand your concern.
RPI is not a fully open source project. The GPU side is totally closed.
As far as I know, raspicam toolkit use MMAL library to communicate with GPU.
We have to use vc.ril.rawcam component,which do not support text overlay, while raspicam use vc.ril.camera which support.
@veye_xumm OK, thanks. Solved it by adding vc.ril.hvs component before h264 encoder and doing some fancy overlays by libcairo.