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