Commit baf4f76c authored by slelann's avatar slelann

Correction compression

parent c01c426c
......@@ -62,14 +62,11 @@ void UploadThread::run()
QString tempImg = appPath.filePath("tmp.jpg");
QString tempFlv = appPath.filePath("tmp.flv");
#ifdef Q_WS_MAC
QString avconv = appPath.filePath("avconv");
QString ffmpeg = appPath.filePath("ffmpeg");
#else
#ifdef Q_WS_WIN
QString avconv = appPath.filePath("avconv.exe");
QString ffmpeg = appPath.filePath("ffmpeg.exe");
#else
QString avconv = "avconv";
QString ffmpeg = "ffmpeg";
#endif
#endif
......@@ -90,7 +87,7 @@ void UploadThread::run()
{
QProcess mencoder;
QString cmd1 = QString("%3 -y -i \"%1\" -acodec libmp3lame -f flv -ab 56 -ar 22050 -b 200 -r 15 -s 320x240 \"%2\"").arg(current->transfert.fileName).arg(tempFlv).arg(avconv);
QString cmd1 = QString("%3 -y -i \"%1\" -acodec libmp3lame -f flv -ab 56 -ar 22050 -b 200 -r 15 -s 320x240 \"%2\"").arg(current->transfert.fileName).arg(tempFlv).arg(ffmpeg);
qDebug()<<cmd1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment