Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Change camera example to add a time stamp to recorded video

Change camera example to add a time stamp to recorded video

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 3 Posters 1.4k Views 3 Watching
  • 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.
  • R Offline
    R Offline
    RichS71
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What OS are you working on ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • R Offline
        R Offline
        RichS71
        wrote on last edited by RichS71
        #3

        Hi SGaist,

        I'm using Linux Mint 18.1 and ubuntu 16.04.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • R Offline
            R Offline
            RichS71
            wrote on last edited by
            #5

            That's great I'll give that a go and update this thread accordingly.
            Thanks for your help.

            1 Reply Last reply
            0
            • R Offline
              R Offline
              RichS71
              wrote on last edited by
              #6

              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. RoginaP 1 Reply Last reply
              0
              • R RichS71

                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. RoginaP Offline
                Pablo J. RoginaP Offline
                Pablo J. Rogina
                wrote on last edited by
                #7

                @RichS71 said in Change camera example to add a time stamp to recorded video:

                QAbstractVideoFilter

                You may want to check this post and this blog just in case.

                Upvote the answer(s) that helped you solve the issue
                Use "Topic Tools" button to mark your post as Solved
                Add screenshots via postimage.org
                Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                1 Reply Last reply
                0
                • R Offline
                  R Offline
                  RichS71
                  wrote on last edited by
                  #8

                  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 .

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved