[Geesas-Devs] SF.net SVN: geesas:[19] pencilanimation/src/external/win32/win32.cpp
Status: Abandoned
Brought to you by:
creek23
From: <cr...@us...> - 2009-02-11 14:26:35
|
Revision: 19 http://geesas.svn.sourceforge.net/geesas/?rev=19&view=rev Author: creek23 Date: 2009-02-11 14:26:27 +0000 (Wed, 11 Feb 2009) Log Message: ----------- adjusted waiting time to 5 mins so FFmpeg could finish exporting large animations. Modified Paths: -------------- pencilanimation/src/external/win32/win32.cpp Modified: pencilanimation/src/external/win32/win32.cpp =================================================================== --- pencilanimation/src/external/win32/win32.cpp 2009-02-09 22:28:22 UTC (rev 18) +++ pencilanimation/src/external/win32/win32.cpp 2009-02-11 14:26:27 UTC (rev 19) @@ -43,14 +43,13 @@ exportFrames(startFrame, endFrame, view, currentLayer, exportSize, tempPath+"tmp", "png", 100, true, true, 2); // --------- Quicktime assemble call ---------- - QDir sampledir; - qDebug() << "testmic:" << sampledir.filePath(filePath); QProcess ffmpeg; qDebug() << "Trying to export AVI"; ffmpeg.start("./plugins/ffmpeg.exe -i " + tempPath + "tmp%03d.png -v 0 -r " + QString::number(fps) + " -y \"" + filePath + "\""); if (ffmpeg.waitForStarted() == true) { - if (ffmpeg.waitForFinished() == true) { + //wait for the program to finish for 5 mins. if it didnt, force quit. + if (ffmpeg.waitForFinished(300000) == true) { /* qDebug() << ffmpeg.readAllStandardOutput(); qDebug() << ffmpeg.readAllStandardError(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |