Saving live video feed
-
I am working with live video feed using v4l library. I have started working on the following example:
http://qt-apps.org/content/show.php/qt+webcam+viewer+-+V4lCapture?content=126541how can you save the live video feed coming from the web cam?
-
Hi,
If you are using QtMultimedia for that then have a look at "QMediaRecorder":http://qt-project.org/doc/qt-5/qmediarecorder.html
Hope it helps
-
Is there any method to do it other than using QtMultimedia?
-
You can use the v4l library directly and transform the image data to a QImage/QPixmap
-
The program already uses the paint event to draw what is seen by the camera. So, QImage is already in use.
What I want to know is, how to save the images into a continuous video. A single file and not a collection of many images. -
If you really want to avoid QtMultimedia then you must use something like libav/ffmpeg to do the video encoding
-
I actually want to use qt multimedia for camera feed, its recording and snapshots of frames and video playback functions.
-
You wrote earlier that you wanted a method not using QtMultimedia. So what's the current state ?
-
Am working on incorporating Opencv with qt as I could not find satisfactory result to do everything. And These actions are easily achievable in opencv libraries.
Any more suggestions are welcome..would love to learn about something new.. :)