mirror of
https://github.com/u2takey/ffmpeg-go.git
synced 2025-10-05 16:06:52 +08:00
add simple example for overlay
This commit is contained in:
@@ -69,6 +69,14 @@ func TestSimpleExample(t *testing.T) {
|
||||
assert.Nil(t, err)
|
||||
}
|
||||
|
||||
func TestSimpleOverLayExample(t *testing.T) {
|
||||
err := Input(TestInputFile1, nil).
|
||||
Overlay(Input(TestOverlayFile), "").
|
||||
Output(TestOutputFile1).OverWriteOutput().
|
||||
Run()
|
||||
assert.Nil(t, err)
|
||||
}
|
||||
|
||||
func ComplexFilterExample() *Stream {
|
||||
split := Input(TestInputFile1).VFlip().Split()
|
||||
split0, split1 := split.Get("0"), split.Get("1")
|
||||
|
Reference in New Issue
Block a user