mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-14 02:04:14 +01:00
parent
23de941df3
commit
7167b4f728
1 changed files with 28 additions and 28 deletions
|
@ -270,34 +270,34 @@ public void ConvertFromPipe(VideoType type, ArgumentContainer container, PixelFo
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod, Timeout(15000)]
|
[TestMethod]
|
||||||
public void Video_ToMP4()
|
public void Video_ToMP4()
|
||||||
{
|
{
|
||||||
Convert(VideoType.Mp4);
|
Convert(VideoType.Mp4);
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod, Timeout(15000)]
|
[TestMethod]
|
||||||
public void Video_ToMP4_Args()
|
public void Video_ToMP4_Args()
|
||||||
{
|
{
|
||||||
var container = new ArgumentContainer { new VideoCodecArgument(VideoCodec.LibX264) };
|
var container = new ArgumentContainer { new VideoCodecArgument(VideoCodec.LibX264) };
|
||||||
Convert(VideoType.Mp4, container);
|
Convert(VideoType.Mp4, container);
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod, Timeout(15000)]
|
[TestMethod]
|
||||||
public void Video_ToMP4_Args_Pipe()
|
public void Video_ToMP4_Args_Pipe()
|
||||||
{
|
{
|
||||||
var container = new ArgumentContainer { new VideoCodecArgument(VideoCodec.LibX264) };
|
var container = new ArgumentContainer { new VideoCodecArgument(VideoCodec.LibX264) };
|
||||||
ConvertFromPipe(VideoType.Mp4, container, PixelFormat.Format24bppRgb);
|
ConvertFromPipe(VideoType.Mp4, container, PixelFormat.Format24bppRgb);
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod, Timeout(15000)]
|
[TestMethod]
|
||||||
public void Video_ToMP4_Args_StreamPipe()
|
public void Video_ToMP4_Args_StreamPipe()
|
||||||
{
|
{
|
||||||
var container = new ArgumentContainer { new VideoCodecArgument(VideoCodec.LibX264) };
|
var container = new ArgumentContainer { new VideoCodecArgument(VideoCodec.LibX264) };
|
||||||
ConvertFromStreamPipe(VideoType.Mp4, container);
|
ConvertFromStreamPipe(VideoType.Mp4, container);
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod, Timeout(15000)]
|
[TestMethod]
|
||||||
public void Video_ToMP4_Args_StreamOutputPipe_Async_Failure()
|
public void Video_ToMP4_Args_StreamOutputPipe_Async_Failure()
|
||||||
{
|
{
|
||||||
Assert.ThrowsException<FFMpegException>(() =>
|
Assert.ThrowsException<FFMpegException>(() =>
|
||||||
|
@ -319,7 +319,7 @@ public void Video_ToMP4_Args_StreamOutputPipe_Async_Failure()
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod, Timeout(15000)]
|
[TestMethod]
|
||||||
public void Video_ToMP4_Args_StreamOutputPipe_Failure()
|
public void Video_ToMP4_Args_StreamOutputPipe_Failure()
|
||||||
{
|
{
|
||||||
Assert.ThrowsException<FFMpegException>(() =>
|
Assert.ThrowsException<FFMpegException>(() =>
|
||||||
|
@ -333,7 +333,7 @@ public void Video_ToMP4_Args_StreamOutputPipe_Failure()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
[TestMethod, Timeout(15000)]
|
[TestMethod]
|
||||||
public void Video_ToMP4_Args_StreamOutputPipe_Async()
|
public void Video_ToMP4_Args_StreamOutputPipe_Async()
|
||||||
{
|
{
|
||||||
using (var ms = new MemoryStream())
|
using (var ms = new MemoryStream())
|
||||||
|
@ -352,7 +352,7 @@ public void Video_ToMP4_Args_StreamOutputPipe_Async()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod, Timeout(15000)]
|
[TestMethod]
|
||||||
public void Video_ToMP4_Args_StreamOutputPipe()
|
public void Video_ToMP4_Args_StreamOutputPipe()
|
||||||
{
|
{
|
||||||
var container = new ArgumentContainer
|
var container = new ArgumentContainer
|
||||||
|
@ -363,13 +363,13 @@ public void Video_ToMP4_Args_StreamOutputPipe()
|
||||||
ConvertToStreamPipe(VideoType.Mp4, container);
|
ConvertToStreamPipe(VideoType.Mp4, container);
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod, Timeout(15000)]
|
[TestMethod]
|
||||||
public void Video_ToTS()
|
public void Video_ToTS()
|
||||||
{
|
{
|
||||||
Convert(VideoType.Ts);
|
Convert(VideoType.Ts);
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod, Timeout(15000)]
|
[TestMethod]
|
||||||
public void Video_ToTS_Args()
|
public void Video_ToTS_Args()
|
||||||
{
|
{
|
||||||
var container = new ArgumentContainer
|
var container = new ArgumentContainer
|
||||||
|
@ -381,7 +381,7 @@ public void Video_ToTS_Args()
|
||||||
Convert(VideoType.Ts, container);
|
Convert(VideoType.Ts, container);
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod, Timeout(15000)]
|
[TestMethod]
|
||||||
public void Video_ToTS_Args_Pipe()
|
public void Video_ToTS_Args_Pipe()
|
||||||
{
|
{
|
||||||
var container = new ArgumentContainer
|
var container = new ArgumentContainer
|
||||||
|
@ -391,13 +391,13 @@ public void Video_ToTS_Args_Pipe()
|
||||||
ConvertFromPipe(VideoType.Ts, container, PixelFormat.Format32bppArgb);
|
ConvertFromPipe(VideoType.Ts, container, PixelFormat.Format32bppArgb);
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod, Timeout(15000)]
|
[TestMethod]
|
||||||
public void Video_ToOGV_Resize()
|
public void Video_ToOGV_Resize()
|
||||||
{
|
{
|
||||||
Convert(VideoType.Ogv, true, VideoSize.Ed);
|
Convert(VideoType.Ogv, true, VideoSize.Ed);
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod, Timeout(15000)]
|
[TestMethod]
|
||||||
public void Video_ToOGV_Resize_Args()
|
public void Video_ToOGV_Resize_Args()
|
||||||
{
|
{
|
||||||
var container = new ArgumentContainer
|
var container = new ArgumentContainer
|
||||||
|
@ -408,7 +408,7 @@ public void Video_ToOGV_Resize_Args()
|
||||||
Convert(VideoType.Ogv, container);
|
Convert(VideoType.Ogv, container);
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod, Timeout(15000)]
|
[TestMethod]
|
||||||
public void Video_ToOGV_Resize_Args_Pipe()
|
public void Video_ToOGV_Resize_Args_Pipe()
|
||||||
{
|
{
|
||||||
var container = new ArgumentContainer
|
var container = new ArgumentContainer
|
||||||
|
@ -419,13 +419,13 @@ public void Video_ToOGV_Resize_Args_Pipe()
|
||||||
ConvertFromPipe(VideoType.Ogv, container, PixelFormat.Format48bppRgb);
|
ConvertFromPipe(VideoType.Ogv, container, PixelFormat.Format48bppRgb);
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod, Timeout(15000)]
|
[TestMethod]
|
||||||
public void Video_ToMP4_Resize()
|
public void Video_ToMP4_Resize()
|
||||||
{
|
{
|
||||||
Convert(VideoType.Mp4, true, VideoSize.Ed);
|
Convert(VideoType.Mp4, true, VideoSize.Ed);
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod, Timeout(15000)]
|
[TestMethod]
|
||||||
public void Video_ToMP4_Resize_Args()
|
public void Video_ToMP4_Resize_Args()
|
||||||
{
|
{
|
||||||
var container = new ArgumentContainer
|
var container = new ArgumentContainer
|
||||||
|
@ -436,7 +436,7 @@ public void Video_ToMP4_Resize_Args()
|
||||||
Convert(VideoType.Mp4, container);
|
Convert(VideoType.Mp4, container);
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod, Timeout(15000)]
|
[TestMethod]
|
||||||
public void Video_ToMP4_Resize_Args_Pipe()
|
public void Video_ToMP4_Resize_Args_Pipe()
|
||||||
{
|
{
|
||||||
var container = new ArgumentContainer
|
var container = new ArgumentContainer
|
||||||
|
@ -452,25 +452,25 @@ public void Video_ToOGV()
|
||||||
Convert(VideoType.Ogv);
|
Convert(VideoType.Ogv);
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod, Timeout(15000)]
|
[TestMethod]
|
||||||
public void Video_ToMP4_MultiThread()
|
public void Video_ToMP4_MultiThread()
|
||||||
{
|
{
|
||||||
Convert(VideoType.Mp4, true);
|
Convert(VideoType.Mp4, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod, Timeout(15000)]
|
[TestMethod]
|
||||||
public void Video_ToTS_MultiThread()
|
public void Video_ToTS_MultiThread()
|
||||||
{
|
{
|
||||||
Convert(VideoType.Ts, true);
|
Convert(VideoType.Ts, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod, Timeout(15000)]
|
[TestMethod]
|
||||||
public void Video_ToOGV_MultiThread()
|
public void Video_ToOGV_MultiThread()
|
||||||
{
|
{
|
||||||
Convert(VideoType.Ogv, true);
|
Convert(VideoType.Ogv, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod, Timeout(15000)]
|
[TestMethod]
|
||||||
public void Video_Snapshot()
|
public void Video_Snapshot()
|
||||||
{
|
{
|
||||||
var output = Input.OutputLocation(ImageType.Png);
|
var output = Input.OutputLocation(ImageType.Png);
|
||||||
|
@ -491,7 +491,7 @@ public void Video_Snapshot()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod, Timeout(15000)]
|
[TestMethod]
|
||||||
public void Video_Snapshot_PersistSnapshot()
|
public void Video_Snapshot_PersistSnapshot()
|
||||||
{
|
{
|
||||||
var output = Input.OutputLocation(ImageType.Png);
|
var output = Input.OutputLocation(ImageType.Png);
|
||||||
|
@ -512,7 +512,7 @@ public void Video_Snapshot_PersistSnapshot()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod, Timeout(15000)]
|
[TestMethod]
|
||||||
public void Video_Join()
|
public void Video_Join()
|
||||||
{
|
{
|
||||||
var output = Input.OutputLocation(VideoType.Mp4);
|
var output = Input.OutputLocation(VideoType.Mp4);
|
||||||
|
@ -544,7 +544,7 @@ public void Video_Join()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod, Timeout(15000)]
|
[TestMethod]
|
||||||
public void Video_Join_Image_Sequence()
|
public void Video_Join_Image_Sequence()
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
@ -580,7 +580,7 @@ public void Video_Join_Image_Sequence()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod, Timeout(15000)]
|
[TestMethod]
|
||||||
public void Video_With_Only_Audio_Should_Extract_Metadata()
|
public void Video_With_Only_Audio_Should_Extract_Metadata()
|
||||||
{
|
{
|
||||||
var video = VideoInfo.FromFileInfo(VideoLibrary.LocalVideoAudioOnly);
|
var video = VideoInfo.FromFileInfo(VideoLibrary.LocalVideoAudioOnly);
|
||||||
|
@ -590,7 +590,7 @@ public void Video_With_Only_Audio_Should_Extract_Metadata()
|
||||||
Assert.AreEqual(1.25, video.Size);
|
Assert.AreEqual(1.25, video.Size);
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod, Timeout(15000)]
|
[TestMethod]
|
||||||
public void Video_Duration()
|
public void Video_Duration()
|
||||||
{
|
{
|
||||||
var video = VideoInfo.FromFileInfo(VideoLibrary.LocalVideo);
|
var video = VideoInfo.FromFileInfo(VideoLibrary.LocalVideo);
|
||||||
|
@ -622,7 +622,7 @@ public void Video_Duration()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod, Timeout(15000)]
|
[TestMethod]
|
||||||
public void Video_UpdatesProgress()
|
public void Video_UpdatesProgress()
|
||||||
{
|
{
|
||||||
var output = Input.OutputLocation(VideoType.Mp4);
|
var output = Input.OutputLocation(VideoType.Mp4);
|
||||||
|
@ -653,7 +653,7 @@ public void Video_UpdatesProgress()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod, Timeout(15000)]
|
[TestMethod]
|
||||||
public void Video_TranscodeInMemory()
|
public void Video_TranscodeInMemory()
|
||||||
{
|
{
|
||||||
using (var resStream = new MemoryStream())
|
using (var resStream = new MemoryStream())
|
||||||
|
|
Loading…
Reference in a new issue