Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
# Conflicts:
#	Hudl.FFmpeg/Hudl.Ffmpeg.csproj
  • Loading branch information
simonbuehler committed Oct 7, 2019
2 parents 141d831 + 1e8e66d commit 3a65349
Show file tree
Hide file tree
Showing 28 changed files with 229 additions and 1,079 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ bin/
obj/
Bin/
Obj/
.vs/
hudl-jobs/Quartz.NET-1.0.2/build/
WebApp/WebApp.Publish.xml
ProTools/Pro Quagic/obj/*
Expand Down
172 changes: 22 additions & 150 deletions Hudl.FFmpeg.Core/Hudl.FFmpeg.Core.csproj
Original file line number Diff line number Diff line change
@@ -1,155 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{FA5D683B-0EEA-4086-B71D-88A8360AE8F0}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Hudl.FFmpeg</RootNamespace>
<AssemblyName>Hudl.FFmpeg.Core</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
<RestorePackages>true</RestorePackages>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<VersionPrefix>7.0.0</VersionPrefix>
<FileVersion>7.0.0</FileVersion>
<!-- The AssemblyVersion should only be updated on a Major version bump -->
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<TargetFramework>netstandard2.0</TargetFramework>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AssemblyName>Hudl.FFmpeg.Core</AssemblyName>
<PackageId>Hudl.FFmpeg.Core</PackageId>
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
</PropertyGroup>

<ItemGroup>
<Reference Include="log4net">
<HintPath>..\packages\log4net.2.0.0\lib\net40-full\log4net.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.5.0.6\lib\net45\Newtonsoft.Json.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Attributes\AttributeRetrieval.cs" />
<Compile Include="Attributes\AttributeValidation.cs" />
<Compile Include="Attributes\ContainsStreamAttribute.cs" />
<Compile Include="Attributes\SerializedAsAttribute.cs" />
<Compile Include="Attributes\Utility\ValidationUtility.cs" />
<Compile Include="Attributes\ValidateAttribute.cs" />
<Compile Include="Attributes\ForStreamAttribute.cs" />
<Compile Include="Collections\ForStreamCollection.cs" />
<Compile Include="Command\StreamReaders\BaseStandardStreamReader.cs" />
<Compile Include="Command\StreamReaders\StandardOutputAsyncStreamReader.cs" />
<Compile Include="Command\StreamReaders\StandardErrorAsyncStreamReader.cs" />
<Compile Include="Enums\FfmpegMergeOptionType.cs" />
<Compile Include="Enums\SettingsCollectionResourceType.cs" />
<Compile Include="Exceptions\FfmpegTimeoutException.cs" />
<Compile Include="Exceptions\FfmpegProcessingException.cs" />
<Compile Include="Exceptions\FfmpegRenderingException.cs" />
<Compile Include="Exceptions\ForStreamInvalidException.cs" />
<Compile Include="Exceptions\StreamNotFoundException.cs" />
<Compile Include="Command\BaseTypes\CommandConfigurationFlagTypes.cs" />
<Compile Include="Command\BaseTypes\ICommandBuilder.cs" />
<Compile Include="Command\CommandConfiguration.cs" />
<Compile Include="Command\CommandProcessorStatus.cs" />
<Compile Include="Command\Models\FFCommandBase.cs" />
<Compile Include="Command\BaseTypes\ICommandFactory.cs" />
<Compile Include="Command\BaseTypes\ICommand.cs" />
<Compile Include="Command\BaseTypes\ICommandProcessor.cs" />
<Compile Include="Command\Models\FFCommandBuilderBase.cs" />
<Compile Include="Command\Models\FFmpegCommandBuilder.cs" />
<Compile Include="DataTypes\DecimalScale.cs" />
<Compile Include="DataTypes\DecimalScaleRgb.cs" />
<Compile Include="DataTypes\Fraction.cs" />
<Compile Include="DataTypes\Ratio.cs" />
<Compile Include="DataTypes\TwoPartNumericalBase.cs" />
<Compile Include="Enums\LogicalOperators.cs" />
<Compile Include="Extensions\ArrayExtensions.cs" />
<Compile Include="Extensions\ObjectExtensions.cs" />
<Compile Include="Extensions\ProcessExtensions.cs" />
<Compile Include="Extensions\TimeSpanExtensions.cs" />
<Compile Include="Filters\Attributes\FilterAttribute.cs" />
<Compile Include="Filters\Attributes\FilterParameterAttribute.cs" />
<Compile Include="Filters\Contexts\FilterBindingContext.cs" />
<Compile Include="Filters\Contexts\FilterMultiOutputContext.cs" />
<Compile Include="Filters\Contexts\FilterProcessorContext.cs" />
<Compile Include="Filters\Contexts\FilterValidatorContext.cs" />
<Compile Include="Filters\Interfaces\IFilterchain.cs" />
<Compile Include="Filters\Interfaces\IFilter.cs" />
<Compile Include="Filters\Interfaces\IFilterMultiOutput.cs" />
<Compile Include="Filters\Interfaces\IFilterParameterBinding.cs" />
<Compile Include="Filters\Interfaces\IFilterProcessor.cs" />
<Compile Include="Filters\Interfaces\IFilterValidator.cs" />
<Compile Include="Filters\Serialization\FilterSerializerWriter.cs" />
<Compile Include="Filters\Serialization\FilterSerializer.cs" />
<Compile Include="Filters\Serialization\FilterSerializerAttributeParser.cs" />
<Compile Include="Filters\Serialization\FilterSerializerDataParameter.cs" />
<Compile Include="Filters\Serialization\FilterSerializerData.cs" />
<Compile Include="Formatters\BoolToInt32Formatter.cs" />
<Compile Include="Formatters\EnumParameterFormatter.cs" />
<Compile Include="Formatters\EnumParameterSlashFormatter.cs" />
<Compile Include="Formatters\Int32ToKbs.cs" />
<Compile Include="Formatters\MapSettingsFormatter.cs" />
<Compile Include="Formatters\RatioFractionalStringFormatter.cs" />
<Compile Include="Formatters\RatioStringFormatter.cs" />
<Compile Include="Formatters\SingleQuoteFormatter.cs" />
<Compile Include="Formatters\SizeFormatter.cs" />
<Compile Include="Formatters\SizeHeightFormatter.cs" />
<Compile Include="Formatters\SizeWidthFormatter.cs" />
<Compile Include="Formatters\TimeSpanFormatter.cs" />
<Compile Include="Formatters\Utility\FormattingUtility.cs" />
<Compile Include="Interfaces\IValidator.cs" />
<Compile Include="Interfaces\IFormatter.cs" />
<Compile Include="Logging\LogUtility.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="ResourceManagement.cs" />
<Compile Include="Resources\Interfaces\IContainer.cs" />
<Compile Include="Resources\Interfaces\IStream.cs" />
<Compile Include="Settings\Attributes\SettingParameterAttribute.cs" />
<Compile Include="Settings\Attributes\SettingAttribute.cs" />
<Compile Include="Formatters\LocalUriFormatterNoWrap.cs" />
<Compile Include="Formatters\LocalUriFormatter.cs" />
<Compile Include="Settings\Interfaces\ISetting.cs" />
<Compile Include="Settings\Input.cs" />
<Compile Include="Settings\Serialization\SettingSerializerDataValue.cs" />
<Compile Include="Settings\Serialization\SettingSerializer.cs" />
<Compile Include="Settings\Serialization\SettingSerializerAttributeParser.cs" />
<Compile Include="Settings\Serialization\SettingSerializerData.cs" />
<Compile Include="Settings\Serialization\SettingSerializerWriter.cs" />
<Compile Include="Settings\Extensions\SettingsExtensions.cs" />
<Compile Include="Validators\TimeSpanGreterThanZeroValidator.cs" />
<Compile Include="Validators\NullOrWhitespaceValidator.cs" />
</ItemGroup>
<ItemGroup />
<ItemGroup>
<None Include="packages.config" />
<PackageReference Include="log4net" Version="2.0.8" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

</Project>
11 changes: 3 additions & 8 deletions Hudl.FFmpeg.Core/Logging/LogUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ public class LogUtility
{
private readonly ILog _log;

private LogUtility(string loggerName)
private LogUtility(Type loggerType)
{
_log = LogManager.GetLogger(loggerName);
_log = LogManager.GetLogger(loggerType);
LogAttributes = new Dictionary<string, string>();

}
Expand Down Expand Up @@ -79,14 +79,9 @@ private Dictionary<string, string> GetLogMessage(string message)
};
}

public static LogUtility GetLogger(string loggerName)
{
return new LogUtility(loggerName);
}

public static LogUtility GetLogger(Type loggerType)
{
return new LogUtility(loggerType.Name);
return new LogUtility(loggerType);
}

private static string JoinDictionary(Dictionary<string, string> dict)
Expand Down
37 changes: 0 additions & 37 deletions Hudl.FFmpeg.Core/Properties/AssemblyInfo.cs

This file was deleted.

3 changes: 3 additions & 0 deletions Hudl.FFmpeg/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleToAttribute("Hudl.FFmpeg.Tests")]
[assembly: InternalsVisibleToAttribute("Hudl.FFmpeg.Samples")]
2 changes: 1 addition & 1 deletion Hudl.FFmpeg/Command/CommandFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Hudl.FFmpeg.Command
/// </summary>
public class CommandFactory : ICommandFactory
{
private static readonly ILog Log = LogManager.GetLogger(typeof(CommandFactory).Name);
private static readonly ILog Log = LogManager.GetLogger(typeof(CommandFactory));

private CommandFactory()
{
Expand Down
2 changes: 1 addition & 1 deletion Hudl.FFmpeg/Command/FFmpegCommandBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

namespace Hudl.FFmpeg.Command
{
internal class FFmpegCommandBuilder: FFCommandBuilderBase, ICommandBuilder
public class FFmpegCommandBuilder: FFCommandBuilderBase, ICommandBuilder
{
public void WriteCommand(ICommand command)
{
Expand Down
2 changes: 1 addition & 1 deletion Hudl.FFmpeg/Common/Validate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Hudl.FFmpeg.Common
/// <summary>
/// helper class that helps with validation of objects in a ffmpeg project
/// </summary>
internal class Validate
public class Validate
{
/// <summary>
/// returns a boolean indicating if <cref name="objectType"/> is applicable to <cref name="restrictedType"/>
Expand Down
7 changes: 2 additions & 5 deletions Hudl.FFmpeg/Filters/SetDar.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
using System;
using System.Text;
using Hudl.FFmpeg.Attributes;
using Hudl.FFmpeg.Attributes;
using Hudl.FFmpeg.DataTypes;
using Hudl.FFmpeg.Filters.Attributes;
using Hudl.FFmpeg.Filters.BaseTypes;
using Hudl.FFmpeg.Filters.Interfaces;
using Hudl.FFmpeg.Formatters;
using Hudl.FFmpeg.Resources.BaseTypes;
using Microsoft.SqlServer.Server;
using System;

namespace Hudl.FFmpeg.Filters
{
Expand Down
Loading

0 comments on commit 3a65349

Please sign in to comment.