VEYE IMAGING Forum
    • Categories
    • Tags
    • Recent
    • Popular
    • Users
    • WIKI
    • veye.cc
    • Register
    • Login

    Text overlay in veye_raspivid

    Scheduled Pinned Locked Moved VEYE MIPI camera
    raspberryoverlayannotateveye-raspividveye-mipi-327e
    7 Posts 3 Posters 3.9k Views 1 Watching
    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 Offline
      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_xummV 1 Reply Last reply Reply Quote 0
      • veye_xummV Offline
        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.

        Questions will be answered as soon as possible, please be patient.
        如果你使用中文,请直接用中文提问。
        May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

        T 1 Reply Last reply Reply Quote 0
        • T Offline
          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_xummV 1 Reply Last reply Reply Quote 0
          • veye_xummV Offline
            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.

            Questions will be answered as soon as possible, please be patient.
            如果你使用中文,请直接用中文提问。
            May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              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_xummV 1 Reply Last reply Reply Quote 0
              • veye_xummV Offline
                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.

                Questions will be answered as soon as possible, please be patient.
                如果你使用中文,请直接用中文提问。
                May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                M 1 Reply Last reply Reply Quote 0
                • M Offline
                  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

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • First post
                    Last post