mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01:00
parent
e24b652695
commit
0cf3b6f859
1 changed files with 0 additions and 16 deletions
|
@ -178,22 +178,6 @@ public void Builder_BuildString_Speed()
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
public void Builder_BuildString_DrawtextFilter()
|
public void Builder_BuildString_DrawtextFilter()
|
||||||
{
|
{
|
||||||
|
|
||||||
var container = new ArgumentContainer
|
|
||||||
{
|
|
||||||
new InputArgument("input.mp4"),
|
|
||||||
new DrawTextArgument("Stack Overflow", "/path/to/font.ttf",
|
|
||||||
("fontcolor", "white"),
|
|
||||||
("fontsize", "24"),
|
|
||||||
("box", "1"),
|
|
||||||
("boxcolor", "black@0.5"),
|
|
||||||
("boxborderw", "5"),
|
|
||||||
("x", "(w-text_w)/2"),
|
|
||||||
("y", "(h-text_h)/2")),
|
|
||||||
new OutputArgument("output.mp4")
|
|
||||||
};
|
|
||||||
var result = new FFMpeg().Convert(container);
|
|
||||||
|
|
||||||
var str = GetArgumentsString(new DrawTextArgument("Stack Overflow", "/path/to/font.ttf",
|
var str = GetArgumentsString(new DrawTextArgument("Stack Overflow", "/path/to/font.ttf",
|
||||||
("fontcolor", "white"),
|
("fontcolor", "white"),
|
||||||
("fontsize", "24"),
|
("fontsize", "24"),
|
||||||
|
|
Loading…
Reference in a new issue