equal
deleted
inserted
replaced
35 } |
35 } |
36 |
36 |
37 void HWRecorder::onClientDisconnect() |
37 void HWRecorder::onClientDisconnect() |
38 { |
38 { |
39 } |
39 } |
40 |
40 |
41 void HWRecorder::onClientRead() |
41 void HWRecorder::onClientRead() |
42 { |
42 { |
43 quint8 msglen; |
43 quint8 msglen; |
44 quint32 bufsize; |
44 quint32 bufsize; |
45 while (!readbuffer.isEmpty() && ((bufsize = readbuffer.size()) > 0) && |
45 while (!readbuffer.isEmpty() && ((bufsize = readbuffer.size()) > 0) && |
67 } |
67 } |
68 |
68 |
69 QStringList HWRecorder::getArguments() |
69 QStringList HWRecorder::getArguments() |
70 { |
70 { |
71 QStringList arguments; |
71 QStringList arguments; |
72 QRect resolution = config->vid_Resolution(); |
72 QRect resolution = config->rec_Resolution(); |
73 arguments << cfgdir->absolutePath(); |
73 arguments << cfgdir->absolutePath(); |
74 arguments << QString::number(resolution.width()); |
74 arguments << QString::number(resolution.width()); |
75 arguments << QString::number(resolution.height()); |
75 arguments << QString::number(resolution.height()); |
76 arguments << QString::number(config->bitDepth()); // bpp |
76 arguments << QString::number(config->bitDepth()); // bpp |
77 arguments << QString("%1").arg(ipc_port); |
77 arguments << QString("%1").arg(ipc_port); |
85 arguments << (config->isAltDamageEnabled() ? "1" : "0"); |
85 arguments << (config->isAltDamageEnabled() ? "1" : "0"); |
86 arguments << config->netNick().toUtf8().toBase64(); |
86 arguments << config->netNick().toUtf8().toBase64(); |
87 arguments << QString::number(config->translateQuality()); |
87 arguments << QString::number(config->translateQuality()); |
88 arguments << QString::number(config->stereoMode()); |
88 arguments << QString::number(config->stereoMode()); |
89 arguments << HWGame::tr("en.txt"); |
89 arguments << HWGame::tr("en.txt"); |
90 arguments << "30"; // framerate num |
90 arguments << QString::number(config->rec_Framerate()); // framerate num |
91 arguments << "1"; // framerate den |
91 arguments << "1"; // framerate den |
92 arguments << prefix; |
92 arguments << prefix; |
93 arguments << "mp4"; |
93 arguments << config->AVFormat(); |
94 arguments << "mpeg4"; // arguments << "libx264"; |
94 arguments << config->videoCodec(); |
95 arguments << "5"; // video quality |
95 arguments << "5"; // video quality |
96 arguments << "medium"; |
96 arguments << "medium"; |
97 arguments << "libmp3lame"; |
97 if (config->recordAudio()) |
|
98 arguments << config->audioCodec(); |
|
99 else |
|
100 arguments << "no"; |
98 arguments << "5"; // audio quality |
101 arguments << "5"; // audio quality |
99 |
102 |
100 return arguments; |
103 return arguments; |
101 } |
104 } |