Permalink
Browse files

Correcting fps tag for Windows specific AviSyth calls

  • Loading branch information...
1 parent 016fd04 commit fd6c697d4b9424d98e873d9b266aa47de29a5700 pixelpartner committed Oct 4, 2011
Showing with 17 additions and 13 deletions.
  1. +4 −0 .gitignore
  2. +13 −13 mainwindow.cpp
View
@@ -0,0 +1,4 @@
+samples/*KMQ*.mp4
+samples/*KMQiPad*.mp4
+samples/*my*.mp4
+.DStore
View
@@ -298,7 +298,7 @@ void MainWindow::create3dtv( QTextStream *s, int index )
QString line;
line = "ffmpeg -i \""+avsName+"\" -b 8500K -y";
if(fps != tr("keep"))
- line += " -r " << fps;
+ line += " -r " + fps;
line += " \""+mp4+"\"\r\n";
batStream << line;
*s << line;
@@ -369,7 +369,7 @@ void MainWindow::create3df33d( QTextStream *s, int index )
QString line;
line = "ffmpeg -i \""+avsName+"\" -b 8500K -y";
if(fps != tr("keep"))
- line += " -r " << fps;
+ line += " -r " + fps;
line += " \""+mp4+"\"\r\n";
batStream << line;
*s << line;
@@ -491,7 +491,7 @@ Subtitle("http://openKMQ.blogspot.com", 384, 760, 0, 0, "Arial", 50, $FFFFFF, 0,
QString line;
line = "ffmpeg -i \""+avsName+"\" -b 8500K -y";
if(fps != tr("keep"))
- line += " -r " << fps;
+ line += " -r " + fps;
line += " \""+mp4+"\"\r\n";
batStream << line;
*s << line;
@@ -585,7 +585,7 @@ void MainWindow::createKMQiPad( QTextStream *s, int index, bool turned )
QByteArray ba = batName.toLocal8Bit();
const char *c_batName = ba.data();
#ifdef Q_WS_WIN
- _chmod(c_batName, _S_I_READ | _S_I_READ | _S_I_EXECUTE );
+ _chmod(c_batName, _S_IREAD | _S_IWRITE | _S_IEXECUTE );
#else
chmod(c_batName, 0755);
#endif
@@ -672,7 +672,7 @@ void MainWindow::createKMQ1080p( QTextStream *s, int index)
QByteArray ba = batName.toLocal8Bit();
const char *c_batName = ba.data();
#ifdef Q_WS_WIN
- _chmod(c_batName, _S_I_READ | _S_I_READ | _S_I_EXECUTE );
+ _chmod(c_batName, _S_IREAD | _S_IWRITE | _S_IEXECUTE );
#else
chmod(c_batName, 0755);
#endif
@@ -757,7 +757,7 @@ void MainWindow::createKMQ1280( QTextStream *s, int index )
QByteArray ba = batName.toLocal8Bit();
const char *c_batName = ba.data();
#ifdef Q_WS_WIN
- _chmod(c_batName, _S_I_READ | _S_I_READ | _S_I_EXECUTE );
+ _chmod(c_batName, _S_IREAD | _S_IWRITE | _S_IEXECUTE );
#else
chmod(c_batName, 0755);
#endif
@@ -868,7 +868,7 @@ void MainWindow::createMy3D960avs( QTextStream *s, int index)
QString line;
line = "ffmpeg -i \""+avsName+"\" -b 4500K -y";
if(fps != tr("keep"))
- line += " -r " << fps;
+ line += " -r " + fps;
line += " \""+mp4+"\"\r\n";
batStream << line;
*s << line;
@@ -954,7 +954,7 @@ void MainWindow::createMy3D480p( QTextStream *s, int index)
QByteArray ba = batName.toLocal8Bit();
const char *c_batName = ba.data();
#ifdef Q_WS_WIN
- _chmod(c_batName, _S_I_READ | _S_I_READ | _S_I_EXECUTE );
+ _chmod(c_batName, _S_IREAD | _S_IWRITE | _S_IEXECUTE );
#else
chmod(c_batName, 0755);
#endif
@@ -1037,7 +1037,7 @@ void MainWindow::createMy3D960( QTextStream *s, int index)
QByteArray ba = batName.toLocal8Bit();
const char *c_batName = ba.data();
#ifdef Q_WS_WIN
- _chmod(c_batName, _S_I_READ | _S_I_READ | _S_I_EXECUTE );
+ _chmod(c_batName, _S_IREAD | _S_IWRITE | _S_IEXECUTE );
#else
chmod(c_batName, 0755);
#endif
@@ -1119,7 +1119,7 @@ void MainWindow::createMy3D720p( QTextStream *s, int index)
QByteArray ba = batName.toLocal8Bit();
const char *c_batName = ba.data();
#ifdef Q_WS_WIN
- _chmod(c_batName, _S_I_READ | _S_I_READ | _S_I_EXECUTE );
+ _chmod(c_batName, _S_IREAD | _S_IWRITE | _S_IEXECUTE );
#else
chmod(c_batName, 0755);
#endif
@@ -1230,7 +1230,7 @@ void MainWindow::createMy3D1280( QTextStream *s, int index)
QString line;
line = "ffmpeg -i \""+avsName+"\" -b 4500K -y";
if(fps != tr("keep"))
- line += " -r " << fps;
+ line += " -r " + fps;
line += " \""+mp4+"\"\r\n";
batStream << line;
*s << line;
@@ -1392,7 +1392,7 @@ void MainWindow::createGRilli( QTextStream *s, int index, int w, int h )
QString line;
line = "ffmpeg -i \""+avsName+"\" -b 4500K -y";
if(fps != tr("keep"))
- line += " -r " << fps;
+ line += " -r " + fps;
line += " \""+mp4+"\"\r\n";
batStream << line;
*s << line;
@@ -1518,7 +1518,7 @@ void MainWindow::createXPol( QTextStream *s, int index, int w, int h )
QString line;
line = "ffmpeg -i \""+avsName+"\" -b 8500K -y";
if(fps != tr("keep"))
- line += " -r " << fps;
+ line += " -r " + fps;
line += " \""+mp4+"\"\r\n";
batStream << line;
*s << line;

0 comments on commit fd6c697

Please sign in to comment.