Skip to content

Commit

Permalink
Projektdateien hinzufügen.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alkl58 committed Mar 8, 2020
1 parent c38f79a commit 2eee69f
Show file tree
Hide file tree
Showing 16 changed files with 1,636 additions and 0 deletions.
25 changes: 25 additions & 0 deletions NotEnoughAV1Encodes.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29806.167
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NotEnoughAV1Encodes", "NotEnoughAV1Encodes\NotEnoughAV1Encodes.csproj", "{085F1D3A-00C7-41A3-B985-2195B078A364}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{085F1D3A-00C7-41A3-B985-2195B078A364}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{085F1D3A-00C7-41A3-B985-2195B078A364}.Debug|Any CPU.Build.0 = Debug|Any CPU
{085F1D3A-00C7-41A3-B985-2195B078A364}.Release|Any CPU.ActiveCfg = Release|Any CPU
{085F1D3A-00C7-41A3-B985-2195B078A364}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {5F34AA94-003F-4244-9116-077051CD707C}
EndGlobalSection
EndGlobal
6 changes: 6 additions & 0 deletions NotEnoughAV1Encodes/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>
9 changes: 9 additions & 0 deletions NotEnoughAV1Encodes/App.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Application x:Class="NotEnoughAV1Encodes.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:NotEnoughAV1Encodes"
StartupUri="MainWindow.xaml">
<Application.Resources>

</Application.Resources>
</Application>
17 changes: 17 additions & 0 deletions NotEnoughAV1Encodes/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;

namespace NotEnoughAV1Encodes
{
/// <summary>
/// Interaktionslogik für "App.xaml"
/// </summary>
public partial class App : Application
{
}
}
42 changes: 42 additions & 0 deletions NotEnoughAV1Encodes/ConcatVideo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NotEnoughAV1Encodes
{
class ConcatVideo
{
public static void Concat()
{
if (SmallScripts.Cancel.CancelAll == false)
{
//Lists all ivf files in chunks.txt
Process process = new Process();
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.WindowStyle = ProcessWindowStyle.Hidden;
startInfo.FileName = "cmd.exe";
startInfo.WorkingDirectory = MainWindow.exeffmpegPath;
//FFmpeg Arguments
startInfo.Arguments = "/C (for %i in (" + '\u0022' + MainWindow.chunksDir + "\\*.ivf" + '\u0022' + ") do @echo file '%i') > " + '\u0022' + MainWindow.chunksDir + "\\chunks.txt" + '\u0022';
process.StartInfo = startInfo;
process.Start();
process.WaitForExit();

//Concat the Videos
startInfo.WindowStyle = ProcessWindowStyle.Hidden;
startInfo.FileName = "cmd.exe";
startInfo.WorkingDirectory = MainWindow.exeffmpegPath;
//FFmpeg Arguments
startInfo.Arguments = "/C ffmpeg.exe -f concat -safe 0 -i " + '\u0022' + MainWindow.chunksDir + "\\chunks.txt" + '\u0022' + " -c copy " + '\u0022' + MainWindow.videoOutput + '\u0022';
Console.WriteLine(startInfo.Arguments);
process.StartInfo = startInfo;
process.Start();
process.WaitForExit();

}
}
}
}
16 changes: 16 additions & 0 deletions NotEnoughAV1Encodes/EncodeAudio.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NotEnoughAV1Encodes
{
class EncodeAudio
{
public static void AudioEncode()
{
//Place Holder for future Implementation
}
}
}
423 changes: 423 additions & 0 deletions NotEnoughAV1Encodes/MainWindow.xaml

Large diffs are not rendered by default.

Loading

0 comments on commit 2eee69f

Please sign in to comment.