mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01:00
parent
72339049db
commit
77a6a9cd6c
1 changed files with 4 additions and 12 deletions
|
@ -219,13 +219,6 @@ public void Convert(VideoType type, ArgumentContainer container)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ConvertFromPipe(VideoType type, ArgumentContainer container)
|
|
||||||
{
|
|
||||||
ConvertFromPipe(type, container, PixelFormat.Format24bppRgb);
|
|
||||||
ConvertFromPipe(type, container, PixelFormat.Format32bppArgb);
|
|
||||||
ConvertFromPipe(type, container, PixelFormat.Format48bppRgb);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void ConvertFromPipe(VideoType type, ArgumentContainer container, PixelFormat fmt)
|
public void ConvertFromPipe(VideoType type, ArgumentContainer container, PixelFormat fmt)
|
||||||
{
|
{
|
||||||
var output = Input.OutputLocation(type);
|
var output = Input.OutputLocation(type);
|
||||||
|
@ -294,7 +287,7 @@ public void Video_ToMP4_Args()
|
||||||
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);
|
ConvertFromPipe(VideoType.Mp4, container, PixelFormat.Format24bppRgb);
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
|
@ -395,7 +388,7 @@ public void Video_ToTS_Args_Pipe()
|
||||||
{
|
{
|
||||||
new ForceFormatArgument(VideoCodec.MpegTs)
|
new ForceFormatArgument(VideoCodec.MpegTs)
|
||||||
};
|
};
|
||||||
ConvertFromPipe(VideoType.Ts, container);
|
ConvertFromPipe(VideoType.Ts, container, PixelFormat.Format32bppArgb);
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
|
@ -423,7 +416,7 @@ public void Video_ToOGV_Resize_Args_Pipe()
|
||||||
new ScaleArgument(VideoSize.Ed),
|
new ScaleArgument(VideoSize.Ed),
|
||||||
new VideoCodecArgument(VideoCodec.LibTheora)
|
new VideoCodecArgument(VideoCodec.LibTheora)
|
||||||
};
|
};
|
||||||
ConvertFromPipe(VideoType.Ogv, container);
|
ConvertFromPipe(VideoType.Ogv, container, PixelFormat.Format48bppRgb);
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
|
@ -448,10 +441,9 @@ public void Video_ToMP4_Resize_Args_Pipe()
|
||||||
{
|
{
|
||||||
var container = new ArgumentContainer
|
var container = new ArgumentContainer
|
||||||
{
|
{
|
||||||
new ScaleArgument(VideoSize.Ld),
|
|
||||||
new VideoCodecArgument(VideoCodec.LibX264)
|
new VideoCodecArgument(VideoCodec.LibX264)
|
||||||
};
|
};
|
||||||
ConvertFromPipe(VideoType.Mp4, container);
|
ConvertFromPipe(VideoType.Mp4, container, PixelFormat.Format24bppRgb);
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
|
|
Loading…
Reference in a new issue