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]
[/CODE]
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;
}
[/CODE]
(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!
Re: recording video with watermark (QCamera)
I think that these will help:
[url]http://doc.qt.nokia.com/qtmobility/multimedia.html#video-clips[/url]
...and...
[url]http://doc.qt.nokia.com/qtmobility/qmediarecorder.html[/url]
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...