提交 b567a021 编写于 作者: J jp9000

UI: Allow remuxing to/from different formats

Instead of just remuxing from FLV to MP4, allow remuxing to/from the
various container formats that are available.
上级 50e1ec58
......@@ -138,7 +138,7 @@ LicenseAgreement.Exit="Exit"
Remux.SourceFile="OBS Recording"
Remux.TargetFile="Target File"
Remux.Remux="Remux"
Remux.RecordingPattern="OBS Recording (*.flv)"
Remux.OBSRecording="OBS Recording"
Remux.FinishedTitle="Remuxing finished"
Remux.Finished="Recording remuxed"
Remux.FinishedError="Recording remuxed, but the file may be incomplete"
......
......@@ -97,6 +97,8 @@ OBSRemux::~OBSRemux()
remuxer.wait();
}
#define RECORDING_PATTERN "(*.flv *.mp4 *.mov *.mkv *.ts *.m3u8)"
void OBSRemux::BrowseInput()
{
QString path = ui->sourceFile->text();
......@@ -105,7 +107,8 @@ void OBSRemux::BrowseInput()
path = QFileDialog::getOpenFileName(this,
QTStr("Remux.SelectRecording"), path,
QTStr("Remux.RecordingPattern"));
QTStr("Remux.OBSRecording") + QString(" ") +
RECORDING_PATTERN);
inputChanged(path);
}
......@@ -132,7 +135,7 @@ void OBSRemux::BrowseOutput()
{
QString path(ui->targetFile->text());
path = QFileDialog::getSaveFileName(this, QTStr("Remux.SelectTarget"),
path, "(*.mp4)");
path, RECORDING_PATTERN);
if (path.isEmpty())
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册