×

Discussion Board

Results 1 to 3 of 3

Hybrid View

  1. #1
    Registered User
    Join Date
    Dec 2009
    Location
    Switzerland
    Posts
    121

    recording video with watermark (QCamera)

    Hi,
    I want record a video and write a text on it, with Symbian-Belle.

    I begun to search in google and I found a lot of examples, but all with still images. Also the QCamera example in Qt4.7.0 does only save a single shot and not the stream.

    I want to see the stream on the display and also record that stream on the phone.

    With this code, I get the video stream:
    Code:
    // Own video output drawing that shows camera view finder pictures
        //! [0]
        QMediaService* ms = m_camera->service();
        QVideoRendererControl* vrc = ms->requestControl<QVideoRendererControl*>();
        m_myVideoSurface = new MyVideoSurface(this,this,this);
        vrc->setSurface(m_myVideoSurface);
        //! [0]
    and with present, I get the frame buffer:
    Code:
    m_frame = frame;
        if (surfaceFormat().pixelFormat() != m_frame.pixelFormat() ||
                surfaceFormat().frameSize() != m_frame.size()) {
            stop();
            return false;
        } else {
            m_target->updateVideo();
            return true;
        }
    (token from QCamera example).

    But how can I save the stream to the memory? And how can I add a text to this buffer? If I add the text in the paint-event, I can only change the surface contents on the display.

    Thanks!
    I discovered Qt in the summer 2010, it was sooo easy and nice to use, that I begun to write some apps.
    Thank you Nokia, for giving me this possibility!

  2. #2
    Registered User
    Join Date
    Jul 2008
    Posts
    90

    Re: recording video with watermark (QCamera)


  3. #3
    Registered User
    Join Date
    Dec 2009
    Location
    Switzerland
    Posts
    121

    Re: recording video with watermark (QCamera)

    Thank you MVuori, but I can't use it...

    With mediarecorder, if I set an output file and calling record(), nothing happens. And there isn't any file on the output directory.

    I think I will leave this project with QCamera. There aren't working examples on the net and it seem all really instable with the mobility...
    I discovered Qt in the summer 2010, it was sooo easy and nice to use, that I begun to write some apps.
    Thank you Nokia, for giving me this possibility!

Similar Threads

  1. How to Pause the Video recording and resume recording After pausing
    By hari21.mca@gmail.com in forum Mobile Java General
    Replies: 1
    Last Post: 2012-04-02, 19:27
  2. Video Recording in j2me and Get videosnapFrame from video..
    By hari21.mca@gmail.com in forum Mobile Java General
    Replies: 2
    Last Post: 2012-03-23, 18:48
  3. QMediaRecorder and QCamera not recording video
    By avuokila in forum [Archived] Qt Mobility Project
    Replies: 3
    Last Post: 2011-03-28, 08:48
  4. Getting access to the frames in video stream provided by QCamera
    By aapiskukko in forum [Archived] Qt Mobility Project
    Replies: 7
    Last Post: 2011-03-14, 14:31
  5. QCamera::Status vs QCamera::State ?
    By tipul07 in forum Qt
    Replies: 3
    Last Post: 2011-03-07, 23:33

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×