Skip to content

Commit

Permalink
Add option to disable splitting #145
Browse files Browse the repository at this point in the history
  • Loading branch information
Alkl58 committed Sep 18, 2023
1 parent b0a0845 commit c5406b8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions NotEnoughAV1Encodes/MainWindow.xaml
Expand Up @@ -89,6 +89,7 @@
<ComboBox Grid.Column="3" x:Name="ComboBoxChunkingMethod" Height="28" MinWidth="100" MaxWidth="140" HorizontalAlignment="Left" SelectedIndex="1" SelectionChanged="ComboBoxChunkingMethod_SelectionChanged">
<ComboBoxItem Content="Equal Chunking" IsSelected="True"/>
<ComboBoxItem Content="PySceneDetect"/>
<ComboBoxItem Content="Disable"/>
</ComboBox>
<Label x:Name="LabelReencodeMethod" Grid.Column="4" Content="{lex:Loc}" MinWidth="100" MaxWidth="150" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" FontWeight="Bold" HorizontalAlignment="Left">
<Label.Style>
Expand Down
2 changes: 1 addition & 1 deletion NotEnoughAV1Encodes/MainWindow.xaml.cs
Expand Up @@ -2792,7 +2792,7 @@ private async Task MainStartAsync(CancellationToken _cancelToken)
List<string> VideoChunks = new();
// Chunking
if (QueueParallel)
if (QueueParallel || queueElement.ChunkingMethod == 2)
{
VideoChunks.Add(queueElement.VideoDB.InputPath);
Global.Logger("WARN - Queue is being processed in Parallel", queueElement.Output + ".log");
Expand Down
2 changes: 1 addition & 1 deletion NotEnoughAV1Encodes/Video/VideoEncode.cs
Expand Up @@ -109,7 +109,7 @@ public void Encode(int _workerCount, List<string> VideoChunks, Queue.QueueElemen
}
// Set Chunk Input
if (queueElement.ChunkingMethod == 0 || queueParallel || queueElement.Preset.TargetVMAF)
if (queueElement.ChunkingMethod == 0 || queueElement.ChunkingMethod == 2 || queueParallel || queueElement.Preset.TargetVMAF)
{
// Input for Chunked Encoding or Parallel Queue Processing
ChunkInput = "-i \"" + chunk + "\"";
Expand Down

0 comments on commit c5406b8

Please sign in to comment.