Skip to content
This repository was archived by the owner on Feb 9, 2019. It is now read-only.

Commit b17454a

Browse files
committed
[新增] 添加EAC3TO自动抽取格式支持
1 parent c4be544 commit b17454a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

OKEGui/OKEGui/Gui/WizardWindow.xaml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,7 @@ private void OpenProjectBtn_Click(object sender, RoutedEventArgs e)
550550
return;
551551
}
552552

553+
// TBD: 移除INI支持
553554
wizardInfo.ProjectFile = ofd.FileName;
554555
if (new FileInfo(wizardInfo.ProjectFile).Extension.ToLower() == ".json") {
555556
if (!LoadJsonProfile(wizardInfo.ProjectFile)) {

OKEGui/OKEGui/JobProcessor/Demuxer/EACDemuxer.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public enum TrackType
2929
RAW_PCM,
3030
DTSMA,
3131
TRUEHD_AC3,
32+
AC3,
3233
PGS,
3334
Chapter,
3435
}
@@ -89,6 +90,9 @@ public EacOutputTrackType(TrackType type, string rawOutput, string extension, bo
8990
new EacOutputTrackType(TrackType.DTSMA, "DTS Master Audio", "flac", true),
9091

9192
new EacOutputTrackType(TrackType.TRUEHD_AC3, "TrueHD/AC3", "thd", true),
93+
new EacOutputTrackType(TrackType.TRUEHD_AC3, "TrueHD", "thd", true),
94+
95+
new EacOutputTrackType(TrackType.AC3, "AC3", "ac3", true),
9296

9397
new EacOutputTrackType(TrackType.H264_AVC, "h264/AVC", "h264", false),
9498
new EacOutputTrackType(TrackType.PGS, "Subtitle (PGS)", "sup", true),
@@ -223,7 +227,7 @@ private void DetectFileTracks(string line)
223227
///
224228
/// </summary>
225229
/// <param name="fileName"></param>
226-
/// <param name="completedCallback">抽取的轨道,不包含重复轨道;重复轨道文件名带有bak</param>
230+
/// <param name="completedCallback">抽取的轨道,不包含重复轨道;重复轨道文件名带有.bak</param>
227231
public List<TrackInfo> Extract(Action<double, EACProgressType> progressCallback)
228232
{
229233
if (!new FileInfo(sourceFile).Exists) {

0 commit comments

Comments
 (0)