| qcapturablewindow.cpp |
!
\class QCapturableWindow
\inmodule QtMultimedia
\ingroup multimedia
\ingroup multimedia_video
\since 6.6
\brief Used for getting the basic information of a capturable window.
The class contains a set of window information, except the method
QCapturableWindow::isValid which pulls the current state
whenever it's called.
\sa QWindowCapture
|
5694 |
- |
| qcapturablewindow.h |
|
2089 |
- |
| qcapturablewindow_p.h |
|
1232 |
- |
| qmediacapturesession.cpp |
!
\class QMediaCaptureSession
\brief The QMediaCaptureSession class allows capturing of audio and video content.
\inmodule QtMultimedia
\ingroup multimedia
\ingroup multimedia_video
\ingroup multimedia_audio
The QMediaCaptureSession is the central class that manages capturing of media on the local
device.
You can connect a video input to QMediaCaptureSession using setCamera(),
setScreenCapture(), setWindowCapture() or setVideoFrameInput().
A preview of the captured media can be seen by setting a QVideoWidget or QGraphicsVideoItem
using setVideoOutput().
You can connect a microphone to QMediaCaptureSession using setAudioInput(), or set your
custom audio input using setAudioBufferInput().
The captured sound can be heard by routing the audio to an output device using setAudioOutput().
You can capture still images from a camera by setting a QImageCapture object on the capture
session, and record audio/video using a QMediaRecorder.
\sa QCamera, QAudioDevice, QMediaRecorder, QImageCapture, QScreenCapture, QWindowCapture,
QVideoFrameInput, QGStreamerVideoSource, QMediaRecorder, QGraphicsVideoItem
|
23192 |
- |
| qmediacapturesession.h |
|
4116 |
- |
| qmediacapturesession_p.h |
|
1542 |
- |
| qmediarecorder.cpp |
!
\class QMediaRecorder
\inmodule QtMultimedia
\ingroup multimedia
\ingroup multimedia_recording
\ingroup multimedia_video
\ingroup multimedia_audio
\brief The QMediaRecorder class is used for encoding and recording a capture session.
Use the QMediaRecorder class to encode and record media generated in
\l QMediaCaptureSession. You can generate:
\list
\li Audio. Use \l QAudioInput or \l QAudioBufferInput.
\li Video. Use \l QCamera, \l QScreenCapture, \l QWindowCapture, \l QVideoFrameInput,
or \l QGStreamerVideoSource (on embedded Linux with the \c gstreamer media backend).
\endlist
To record media, connect a generator to a corresponding media capture session.
Performance of video encoding and recording is limited by the hardware,
the operating system, the installed graphic drivers, and the input video format.
If \c QCamera, \c QScreenCapture, or \c QWindowCapture produces video frames
faster than \c QMediaRecorder can encode and record them, the recorder
may drop some frames. This is likely to occur if the input frame resolution
is high, 4K for example, and hardware-accelerated encoding is unavailable.
If you generate input video via \c QVideoFrameInput, the method
\c QVideoFrameInput::sendVideoFrame will do nothing and return \c false
whenever this limitation is reached and the internal frame queue is full.
Rely on the signal \c QVideoFrameInput::readyToSendVideoFrame to know
when the recorder is ready to receive new frames again.
If you cannot change the rate of video frame generation and dropping frames
is undesirable, we recommend implementing your own frame queue on top of
\c QVideoFrameInput, considering the memory limitations of the hardware.
\snippet multimedia-snippets/media.cpp Media recorder
|
38341 |
- |
| qmediarecorder.h |
|
5543 |
- |
| qmediarecorder_p.h |
|
1172 |
- |
| qscreencapture-limitations.qdocinc |
|
2917 |
- |
| qscreencapture.cpp |
!
\class QScreenCapture
\inmodule QtMultimedia
\ingroup multimedia
\ingroup multimedia_video
\since 6.5
\brief This class is used for capturing a screen.
The class captures a screen. It is managed by
the \l QMediaCaptureSession class where the captured screen can be displayed
in a video preview object or recorded to a file.
The following snippet shows how to capture the primary screen and display
the result in a QVideoWidget:
\snippet multimedia-snippets/screencapturesnippets.cpp Basic setup
\include qscreencapture-limitations.qdocinc {content} {Q}
\sa QWindowCapture, QMediaCaptureSession
|
10077 |
- |
| qscreencapture.h |
|
2304 |
- |
| qscreencapture_p.h |
|
1080 |
- |
| qvideoframeinput.cpp |
!
\class QVideoFrameInput
\inmodule QtMultimedia
\ingroup multimedia
\ingroup multimedia_video
\since 6.8
\brief The QVideoFrameInput class is used for providing custom video frames
to \l QMediaRecorder or a video output through \l QMediaCaptureSession.
QVideoFrameInput is only supported with the FFmpeg backend.
\include qmediainput-pull-mode.qdocinc {pull-mode} {QVideoFrameInput} {video frame} {sendVideoFrame} {readyToSendVideoFrame}
\snippet custommediainputsnippets/custommediainputsnippets.cpp QVideoFrameInput setup
Here's a minimal implementation of the slot function that provides video frames:
\snippet custommediainputsnippets/custommediainputsnippets.cpp nextVideoFrame()
For more details see readyToSendVideoFrame() and sendVideoFrame().
\sa QMediaRecorder, QMediaCaptureSession and QVideoSink.
|
6407 |
- |
| qvideoframeinput.h |
|
1195 |
- |
| qwindowcapture-limitations.qdocinc |
|
1463 |
- |
| qwindowcapture.cpp |
!
\class QWindowCapture
\inmodule QtMultimedia
\ingroup multimedia
\ingroup multimedia_video
\since 6.6
\brief This class is used for capturing a window.
The class captures a window. It is managed by
the \l QMediaCaptureSession class where the captured window can be displayed
in a video preview object or recorded to a file.
The following snippet shows how to select one of the capturable windows and
display the result in a \l QVideoWidget:
\snippet multimedia-snippets/windowcapturesnippets.cpp Basic setup
\include qwindowcapture-limitations.qdocinc {content} {Q}
\sa QMediaCaptureSession, QCapturableWindow
|
11045 |
- |
| qwindowcapture.h |
|
2316 |
- |
| qwindowcapture_p.h |
|
1080 |
- |