#include <AVTranscoder.h>
|
| void | start () |
| |
| void | stop () |
| | stop Call stop() to encode delayed frames remains in encoder and then stop encoding. More...
|
| |
| void | pause (bool value) |
| | pause pause the encoders More...
|
| |
| QtAV::AVTranscoder::AVTranscoder |
( |
QObject * |
parent = 0 | ) |
|
| QtAV::AVTranscoder::~AVTranscoder |
( |
| ) |
|
| void QtAV::AVTranscoder::asyncChanged |
( |
| ) |
|
|
signal |
encoder Use this to set encoder properties and options.
Do not call open()/close() manually
- Returns
- Encoder instance or null if createAudioEncoder failed
| void QtAV::AVTranscoder::audioFrameEncoded |
( |
qreal |
timestamp | ) |
|
|
signal |
| bool QtAV::AVTranscoder::createAudioEncoder |
( |
const QString & |
name = QLatin1String("FFmpeg") | ) |
|
createEncoder Destroy old encoder and create a new one in filter chain.
Filter has the ownership. You shall not manually open it. Transcoder will set the missing parameters open it.
- Parameters
-
| name | registered encoder name, for example "FFmpeg" |
- Returns
- false if failed
| bool QtAV::AVTranscoder::createVideoEncoder |
( |
const QString & |
name = QLatin1String("FFmpeg") | ) |
|
createEncoder Destroy old encoder and create a new one in filter chain.
Filter has the ownership. You shall not manually open it. Transcoder will set the missing parameters open it.
- Parameters
-
| name | registered encoder name, for example "FFmpeg" |
- Returns
- false if failed
| qreal QtAV::AVTranscoder::encodedDuration |
( |
| ) |
const |
| qint64 QtAV::AVTranscoder::encodedSize |
( |
| ) |
const |
| bool QtAV::AVTranscoder::isAsync |
( |
| ) |
const |
| bool QtAV::AVTranscoder::isPaused |
( |
| ) |
const |
| bool QtAV::AVTranscoder::isRunning |
( |
| ) |
const |
isRunning
- Returns
- true if encoding started
| QIODevice* QtAV::AVTranscoder::outputDevice |
( |
| ) |
const |
| QString QtAV::AVTranscoder::outputFile |
( |
| ) |
const |
| QString QtAV::AVTranscoder::outputFormatForced |
( |
| ) |
const |
| MediaIO* QtAV::AVTranscoder::outputMediaIO |
( |
| ) |
const |
| QVariantHash QtAV::AVTranscoder::outputOptions |
( |
| ) |
const |
| void QtAV::AVTranscoder::pause |
( |
bool |
value | ) |
|
|
slot |
pause pause the encoders
- Parameters
-
| void QtAV::AVTranscoder::paused |
( |
bool |
value | ) |
|
|
signal |
| void QtAV::AVTranscoder::setAsync |
( |
bool |
value = true | ) |
|
setAsync Enable async encoding.
Default is disabled.
| void QtAV::AVTranscoder::setMediaSource |
( |
AVPlayer * |
player | ) |
|
| void QtAV::AVTranscoder::setOutputFormat |
( |
const QString & |
fmt | ) |
|
setOutputFormat Force the output format.
Useful for custom io
| void QtAV::AVTranscoder::setOutputMedia |
( |
const QString & |
fileName | ) |
|
| void QtAV::AVTranscoder::setOutputMedia |
( |
QIODevice * |
dev | ) |
|
| void QtAV::AVTranscoder::setOutputMedia |
( |
MediaIO * |
io | ) |
|
| void QtAV::AVTranscoder::setOutputOptions |
( |
const QVariantHash & |
dict | ) |
|
| void QtAV::AVTranscoder::setStartTime |
( |
qint64 |
ms | ) |
|
| AVPlayer* QtAV::AVTranscoder::sourcePlayer |
( |
| ) |
const |
| void QtAV::AVTranscoder::start |
( |
| ) |
|
|
slot |
| void QtAV::AVTranscoder::started |
( |
| ) |
|
|
signal |
| qint64 QtAV::AVTranscoder::startTime |
( |
| ) |
const |
| void QtAV::AVTranscoder::startTimeChanged |
( |
qint64 |
ms | ) |
|
|
signal |
| qreal QtAV::AVTranscoder::startTimestamp |
( |
| ) |
const |
| void QtAV::AVTranscoder::stop |
( |
| ) |
|
|
slot |
stop Call stop() to encode delayed frames remains in encoder and then stop encoding.
It's called internally when sourcePlayer() is stopped
| void QtAV::AVTranscoder::stopped |
( |
| ) |
|
|
signal |
encoder Use this to set encoder properties and options.
If frameRate is not set, source frame rate will be set if it's valid, otherwise VideoEncoder::defaultFrameRate() will be used internally Do not call open()/close() manually
- Returns
- Encoder instance or null if createVideoEncoder failed
| void QtAV::AVTranscoder::videoFrameEncoded |
( |
qreal |
timestamp | ) |
|
|
signal |
The documentation for this class was generated from the following file: