QTfrontend/net/recorder.cpp
changeset 7235 baa69bd025d9
parent 7198 5debd5fe526e
child 7280 fd707afbc3a2
--- a/QTfrontend/net/recorder.cpp	Mon Jun 11 17:56:10 2012 +0400
+++ b/QTfrontend/net/recorder.cpp	Mon Jun 11 18:15:30 2012 +0400
@@ -37,7 +37,7 @@
 void HWRecorder::onClientDisconnect()
 {
 }
-     
+
 void HWRecorder::onClientRead()
 {
     quint8 msglen;
@@ -69,7 +69,7 @@
 QStringList HWRecorder::getArguments()
 {
     QStringList arguments;
-    QRect resolution = config->vid_Resolution();
+    QRect resolution = config->rec_Resolution();
     arguments << cfgdir->absolutePath();
     arguments << QString::number(resolution.width());
     arguments << QString::number(resolution.height());
@@ -87,14 +87,17 @@
     arguments << QString::number(config->translateQuality());
     arguments << QString::number(config->stereoMode());
     arguments << HWGame::tr("en.txt");
-    arguments << "30"; // framerate num
+    arguments << QString::number(config->rec_Framerate()); // framerate num
     arguments << "1";  // framerate den
     arguments << prefix;
-    arguments << "mp4";
-    arguments << "mpeg4"; // arguments << "libx264";
+    arguments << config->AVFormat();
+    arguments << config->videoCodec();
     arguments << "5"; // video quality
     arguments << "medium";
-    arguments << "libmp3lame";
+    if (config->recordAudio())
+        arguments << config->audioCodec();
+    else
+        arguments << "no";
     arguments << "5"; // audio quality
 
     return arguments;