2020-11-11 14:06:04 +08:00
2020-11-10 16:51:14 +08:00
2020-11-11 14:06:04 +08:00
2020-11-10 15:49:38 +08:00
2020-11-10 15:49:38 +08:00
2020-11-10 15:49:38 +08:00
2020-11-10 15:49:38 +08:00
2020-11-10 16:51:14 +08:00
2020-11-10 15:49:38 +08:00
2020-11-10 15:49:38 +08:00
2020-11-10 15:49:38 +08:00
2020-11-10 15:49:38 +08:00
2020-11-10 15:49:38 +08:00
2020-11-10 15:49:38 +08:00
2020-11-11 14:06:04 +08:00
2020-11-10 16:51:14 +08:00
2020-11-10 15:49:38 +08:00
2020-11-10 15:49:38 +08:00
2020-11-10 16:51:14 +08:00

ffmpeg-go

ffmpeg-go is golang port of https://github.com/kkroening/ffmpeg-python

check ffmpeg_test.go for examples.

example

split := Input(TestInputFile1).VFlip().Split()
	split0, split1 := split.Get("0"), split.Get("1")
	overlayFile := Input(TestOverlayFile).Crop(10, 10, 158, 112)
err := Concat([]*Stream{
    split0.Trim(KwArgs{"start_frame": 10, "end_frame": 20}),
    split1.Trim(KwArgs{"start_frame": 30, "end_frame": 40})}).
    Overlay(overlayFile.HFlip(), "").
    DrawBox(50, 50, 120, 120, "red", 5).
    Output(TestOutputFile1).
    OverWriteOutput().
    Run()

view

function view generate mermaid chart, which can be use in markdown or view online

split := Input(TestInputFile1).VFlip().Split()
	split0, split1 := split.Get("0"), split.Get("1")
	overlayFile := Input(TestOverlayFile).Crop(10, 10, 158, 112)
b, err := Concat([]*Stream{
    split0.Trim(KwArgs{"start_frame": 10, "end_frame": 20}),
    split1.Trim(KwArgs{"start_frame": 30, "end_frame": 40})}).
    Overlay(overlayFile.HFlip(), "").
    DrawBox(50, 50, 120, 120, "red", 5).
    Output(TestOutputFile1).
    OverWriteOutput().View(ViewTypeFlowChart)
fmt.Println(b)

image

Description
No description provided
Readme Apache-2.0 2.5 MiB
Languages
Go 100%