| 210 | } |
| 211 | |
| 212 | void EncodeWindow::slotOk() |
| 213 | { |
| 214 | /* Fill encode filename */ |
| 215 | context->config.dumpfile = encodePath->text().toStdString(); |
| 216 | context->config.dumpfile_modified = true; |
| 217 | |
| 218 | /* Set video codec and bitrate */ |
| 219 | context->config.sc.video_codec = videoChoice->currentIndex(); |
| 220 | context->config.sc.video_bitrate = videoBitrate->value(); |
| 221 | |
| 222 | /* Set audio codec and bitrate */ |
| 223 | context->config.sc.audio_codec = audioChoice->currentIndex(); |
| 224 | context->config.sc.audio_bitrate = audioBitrate->value(); |
| 225 | context->config.ffmpegoptions = ffmpegOptions->text().toStdString(); |
| 226 | |
| 227 | if (framerateGroupBox->isChecked()) |
| 228 | context->config.sc.video_framerate = videoFramerate->value(); |
| 229 | else |
| 230 | context->config.sc.video_framerate = 0; |
| 231 | |
| 232 | context->config.sc_modified = true; |
| 233 | |
| 234 | /* Close window */ |
| 235 | accept(); |
| 236 | } |
| 237 | |
| 238 | void EncodeWindow::slotDefault() |
| 239 | { |