6#include <private/qmediastoragelocation_p.h>
7#include <private/qplatformcamera_p.h>
8#include <private/qplatformsurfacecapture_p.h>
43 error(code, description);
53 const auto hasVideo = !videoSources.empty();
54 const auto hasAudio = m_session->
audioInput() !=
nullptr;
56 if (!hasVideo && !hasAudio) {
64 auto container =
settings.mimeType().preferredSuffix();
68 qCDebug(qLcMediaEncoder) <<
"recording new video to" << actualSink;
81 if (audioInput->device.isNull())
82 qWarning() <<
"Audio input device is null; cannot encode audio";
87 for (
auto source : videoSources)
126 qCDebug(qLcMediaEncoder) <<
"stop";
135void QFFmpegMediaRecorder::finalizationDone()
155 if (m_session == captureSession)
161 m_session = captureSession;
168#include "moc_qffmpegmediarecorder_p.cpp"
static QString currentPath()
Returns the absolute path of the application's current directory.
void durationChanged(qint64 duration)
void addAudioInput(QFFmpegAudioInput *input)
void error(QMediaRecorder::Error code, const QString &description)
void setMetaData(const QMediaMetaData &metaData)
void addVideoSource(QPlatformVideoSource *source)
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
\macro QT_RESTRICTED_CAST_FROM_ASCII
static QUrl fromLocalFile(const QString &localfile)
Returns a QUrl representation of localFile, interpreted as a local file.
QUrl resolved(const QUrl &relative) const
Returns the result of the merge of this URL with relative.
bool isEmpty() const
Returns true if the URL has no data; otherwise returns false.
Combined button and popup list for selecting options.
#define Q_LOGGING_CATEGORY(name,...)
#define qCDebug(category,...)
GLsizei GLsizei GLchar * source
GLenum GLenum GLenum input
static QString toLocalFile(const QString &url)
QSettings settings("MySoft", "Star Runner")
[0]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent