QTfrontend/net/recorder.cpp
branchflibqtfrontend
changeset 8363 0b4ac686fc44
parent 8092 08960209db8c
parent 8325 ecd51650d5d8
equal deleted inserted replaced
8306:50fe80adbfcb 8363:0b4ac686fc44
   102 
   102 
   103 QStringList HWRecorder::getArguments()
   103 QStringList HWRecorder::getArguments()
   104 {
   104 {
   105     QStringList arguments;
   105     QStringList arguments;
   106     QRect resolution = config->rec_Resolution();
   106     QRect resolution = config->rec_Resolution();
       
   107     QString nick = config->netNick().toUtf8().toBase64();
       
   108 
       
   109     arguments << "--internal";
       
   110     arguments << "--port";
       
   111     //arguments << QString("%1").arg(ipc_port);
       
   112     arguments << "--prefix";
       
   113     arguments << datadir->absolutePath();
       
   114     arguments << "--user-prefix";
   107     arguments << cfgdir->absolutePath();
   115     arguments << cfgdir->absolutePath();
       
   116     arguments << "--locale";
       
   117     arguments << HWGame::tr("en.txt");
       
   118     arguments << "--frame-interval";
       
   119     arguments << QString::number(config->timerInterval());
       
   120     arguments << "--width";
   108     arguments << QString::number(resolution.width());
   121     arguments << QString::number(resolution.width());
       
   122     arguments << "--height";
   109     arguments << QString::number(resolution.height());
   123     arguments << QString::number(resolution.height());
   110     arguments << "32"; // bpp
   124     arguments << "--nosound";
   111     //arguments << QString("%1").arg(ipc_port);
   125     arguments << "--raw-quality";
   112     arguments << "0"; // fullscreen
       
   113     arguments << "0"; // sound
       
   114     arguments << "0"; // music
       
   115     arguments << "0"; // sound volume
       
   116     arguments << QString::number(config->timerInterval());
       
   117     arguments << datadir->absolutePath();
       
   118     arguments << "0"; // fps
       
   119     arguments << (config->isAltDamageEnabled() ? "1" : "0");
       
   120     arguments << config->netNick().toUtf8().toBase64();
       
   121     arguments << QString::number(config->translateQuality());
   126     arguments << QString::number(config->translateQuality());
       
   127     arguments << "--stereo";
   122     arguments << QString::number(config->stereoMode());
   128     arguments << QString::number(config->stereoMode());
   123     arguments << HWGame::tr("en.txt");
   129     arguments << "--nomusic";
   124     arguments << QString::number(config->rec_Framerate()); // framerate numerator
   130     arguments << "--volume";
   125     arguments << "1";  // framerate denominator
   131     arguments << "0";
       
   132     if (config->isAltDamageEnabled())
       
   133         arguments << "--altdmg";
       
   134     if (!nick.isEmpty()) {
       
   135         arguments << "--nick";
       
   136         arguments << nick;
       
   137     }
       
   138     arguments << "--recorder";
       
   139     arguments << QString::number(config->rec_Framerate()); //cVideoFramerateNum
       
   140     arguments << "1"; //cVideoFramerateDen
   126     arguments << prefix;
   141     arguments << prefix;
   127     arguments << config->AVFormat();
   142     arguments << config->AVFormat();
   128     arguments << config->videoCodec();
   143     arguments << config->videoCodec();
   129 // Could use a field to use quality instead. maybe quality could override bitrate - or just pass (and set) both. 
   144 // Could use a field to use quality instead. maybe quality could override bitrate - or just pass (and set) both. 
   130 // The library does support using both at once after all.
   145 // The library does support using both at once after all.