Commit de583a4d authored by slelann's avatar slelann

Correction de la conversion vers FLV

parent ce1065ce
......@@ -62,11 +62,14 @@ 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
......@@ -87,7 +90,7 @@ void UploadThread::run()
{
QProcess mencoder;
QString cmd1 = QString("%3 -y -i \"%1\" -acodec mp3 -f flv -ab 56 -ar 22050 -b 200 -r 15 -s 320x240 \"%2\"").arg(current->transfert.fileName).arg(tempFlv).arg(ffmpeg);
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);
qDebug()<<cmd1;
......@@ -104,7 +107,8 @@ void UploadThread::run()
if ( current->UBPTError == ERR_UBPT_NONE )
{
QProcess mplayer;
QString cmd2 = QString("%3 -an -y -vframes 1 -i \"%1\" -f image2 -ss 1 \"%2\"").arg(current->transfert.fileName).arg(tempImg).arg(ffmpeg);
//QString cmd2 = QString("%3 -an -y -vframes 1 -i \"%1\" -f image2 -ss 1 \"%2\"").arg(current->transfert.fileName).arg(tempImg).arg(ffmpeg);
QString cmd2 = QString("%3 -i \"%1\" -ss 00:00:14.435 -f image2 -vframes 1 \"%2\"").arg(current->transfert.fileName).arg(tempImg).arg(ffmpeg);
qDebug()<<cmd2;
......
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