mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01:00
Use only audio files for test to speedup tests run
This commit is contained in:
parent
f3db0f5d78
commit
6045d1534e
1 changed files with 4 additions and 4 deletions
|
@ -229,7 +229,7 @@ public void Audio_Pan_ToMono()
|
||||||
{
|
{
|
||||||
using var outputFile = new TemporaryFile($"out{VideoType.Mp4.Extension}");
|
using var outputFile = new TemporaryFile($"out{VideoType.Mp4.Extension}");
|
||||||
|
|
||||||
var success = FFMpegArguments.FromFileInput(TestResources.Mp4Video)
|
var success = FFMpegArguments.FromFileInput(TestResources.Mp3Audio)
|
||||||
.OutputToFile(outputFile, true,
|
.OutputToFile(outputFile, true,
|
||||||
argumentOptions => argumentOptions
|
argumentOptions => argumentOptions
|
||||||
.WithAudioFilters(filter => filter.Pan(1, "c0 < 0.9 * c0 + 0.1 * c1")))
|
.WithAudioFilters(filter => filter.Pan(1, "c0 < 0.9 * c0 + 0.1 * c1")))
|
||||||
|
@ -246,7 +246,7 @@ public void Audio_Pan_ToMonoNoDefinitions()
|
||||||
{
|
{
|
||||||
using var outputFile = new TemporaryFile($"out{VideoType.Mp4.Extension}");
|
using var outputFile = new TemporaryFile($"out{VideoType.Mp4.Extension}");
|
||||||
|
|
||||||
var success = FFMpegArguments.FromFileInput(TestResources.Mp4Video)
|
var success = FFMpegArguments.FromFileInput(TestResources.Mp3Audio)
|
||||||
.OutputToFile(outputFile, true,
|
.OutputToFile(outputFile, true,
|
||||||
argumentOptions => argumentOptions
|
argumentOptions => argumentOptions
|
||||||
.WithAudioFilters(filter => filter.Pan(1)))
|
.WithAudioFilters(filter => filter.Pan(1)))
|
||||||
|
@ -263,7 +263,7 @@ public void Audio_Pan_ToMonoChannelsToOutputDefinitionsMismatch()
|
||||||
{
|
{
|
||||||
using var outputFile = new TemporaryFile($"out{VideoType.Mp4.Extension}");
|
using var outputFile = new TemporaryFile($"out{VideoType.Mp4.Extension}");
|
||||||
|
|
||||||
var ex = Assert.ThrowsException<ArgumentException>(() => FFMpegArguments.FromFileInput(TestResources.Mp4Video)
|
var ex = Assert.ThrowsException<ArgumentException>(() => FFMpegArguments.FromFileInput(TestResources.Mp3Audio)
|
||||||
.OutputToFile(outputFile, true,
|
.OutputToFile(outputFile, true,
|
||||||
argumentOptions => argumentOptions
|
argumentOptions => argumentOptions
|
||||||
.WithAudioFilters(filter => filter.Pan(1, "c0=c0", "c1=c1")))
|
.WithAudioFilters(filter => filter.Pan(1, "c0=c0", "c1=c1")))
|
||||||
|
@ -275,7 +275,7 @@ public void Audio_Pan_ToMonoChannelsLayoutToOutputDefinitionsMismatch()
|
||||||
{
|
{
|
||||||
using var outputFile = new TemporaryFile($"out{VideoType.Mp4.Extension}");
|
using var outputFile = new TemporaryFile($"out{VideoType.Mp4.Extension}");
|
||||||
|
|
||||||
var ex = Assert.ThrowsException<FFMpegException>(() => FFMpegArguments.FromFileInput(TestResources.Mp4Video)
|
var ex = Assert.ThrowsException<FFMpegException>(() => FFMpegArguments.FromFileInput(TestResources.Mp3Audio)
|
||||||
.OutputToFile(outputFile, true,
|
.OutputToFile(outputFile, true,
|
||||||
argumentOptions => argumentOptions
|
argumentOptions => argumentOptions
|
||||||
.WithAudioFilters(filter => filter.Pan("mono", "c0=c0", "c1=c1")))
|
.WithAudioFilters(filter => filter.Pan("mono", "c0=c0", "c1=c1")))
|
||||||
|
|
Loading…
Reference in a new issue