Skip to content

Commit

Permalink
Allow picking audio index when burn subs is off
Browse files Browse the repository at this point in the history
  • Loading branch information
Mantas-2155X committed Sep 4, 2024
1 parent 67233d7 commit aa175a6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions HardSubberGUI/HardSubberGUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<TrimMode>copyused</TrimMode>
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
<PackageVersion>1.0.1</PackageVersion>
<AssemblyVersion>1.6.1.0</AssemblyVersion>
<FileVersion>1.6.1.0</FileVersion>
<AssemblyVersion>1.6.2.0</AssemblyVersion>
<FileVersion>1.6.2.0</FileVersion>
</PropertyGroup>
<ItemGroup>
<AvaloniaResource Include="Assets\**" />
Expand Down
3 changes: 1 addition & 2 deletions HardSubberGUI/Tools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,7 @@ public static void ActFile(string file, SConversionOptions conversionOptions, in
process.StartInfo.Arguments += "-c:v libx264 ";
}

if (conversionOptions.BurnSubsAndAudio)
process.StartInfo.Arguments += $"-map 0:a:{conversionOptions.AudioIndex} ";
process.StartInfo.Arguments += $"-map 0:a:{conversionOptions.AudioIndex} ";

process.StartInfo.Arguments += $"-qp {conversionOptions.Quality} ";

Expand Down
2 changes: 1 addition & 1 deletion HardSubberGUI/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public class MainWindowViewModel : ViewModelBase
public static string MetadataTitle => "Set Metadata Title";
public static string FastStart => "Optimize for Web";
public static string PGSSubs => "PGS Subtitles";
public static string Subs => "Burn Subtitles and Audio";
public static string Subs => "Burn Subtitles";
public static string Resize => "Resize Video";
public static string Colorspace => "Reset Colorspace";
public static string ExitAfterwards => "Close after conversion";
Expand Down
1 change: 0 additions & 1 deletion HardSubberGUI/Views/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ private void ApplySubsControl_OnPropertyChanged(object? sender, AvaloniaProperty
return;

SubtitleIndexControl.IsEnabled = (bool)ApplySubsControl.IsChecked! && !(bool)ExternalSubsControl.IsChecked!;
AudioIndexControl.IsEnabled = (bool)ApplySubsControl.IsChecked!;

ExternalSubsControl.IsEnabled = (bool)ApplySubsControl.IsChecked! && !(bool)PGSSubsControl.IsChecked!;

Expand Down

0 comments on commit aa175a6

Please sign in to comment.