Navigation

    VEYE IMAGING Forum

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Recent
    • Popular
    • Users
    • WIKI
    • veye.cc

    SOLVED Text overlay in veye_raspivid

    VEYE MIPI camera
    annotate overlay raspberry veye-mipi-327e veye-raspivid
    3
    7
    1443
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      Turbel last edited by

      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?

      Thanks!

      veye_xumm 1 Reply Last reply Reply Quote 0
      • veye_xumm
        veye_xumm @Turbel last edited by

        @turbel
        Sorry for reply late. I think veye_raspivid could not support textoverlay as raspivid.
        raspivid use the mmal component vc.ril.camera which 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.

        T 1 Reply Last reply Reply Quote 0
        • T
          Turbel @veye_xumm last edited by

          @veye_xumm
          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?

          veye_xumm 1 Reply Last reply Reply Quote 0
          • veye_xumm
            veye_xumm @Turbel last edited by

            @turbel
            hi,sorry for reply late.
            I've thought about it for a while, but I can't give you any useful advice now. sorry.

            M 1 Reply Last reply Reply Quote 0
            • M
              majonez @veye_xumm last edited by

              @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ł.

              veye_xumm 1 Reply Last reply Reply Quote 0
              • veye_xumm
                veye_xumm @majonez last edited by

                @majonez
                Hi,
                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.

                M 1 Reply Last reply Reply Quote 0
                • M
                  majonez @veye_xumm last edited by

                  @veye_xumm OK, thanks. Solved it by adding vc.ril.hvs component before h264 encoder and doing some fancy overlays by libcairo.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post