Advertisement
Guest User

Untitled

a guest
May 22nd, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.65 KB | None | 0 0
  1. void FenPrincipale::startEncode()
  2. {
  3.     QString commandFirstPass = m_pathEncoder + " --profile high --level 4.1 --preset faster --pass 1 --stats m_pathStats --bitrate " + ui->editBitrate->text() + " --threads auto --bframes 3 --b-pyramid normal --me dia  --weightp 0 --ref 1 --subme 1 --direct auto --no-dct-decimate --no-mbtree --partitions none --output NUL " + m_pathAvs;
  4.     QProcess *firstPassProcess = new QProcess(this);
  5.     firstPassProcess->start(commandFirstPass);
  6.     connect(firstPassProcess, SIGNAL(readyReadStandardError()), this, SLOT(readOutput()));
  7. }
  8.  
  9. void FenPrincipale::readOutput()
  10. {
  11.     qDebug(firstPassProcess->readAllStandardError());
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement