Dagger
Search

videostitch

This is a simple example of a Dagger function that stitches multiple videos together using ffmpeg. It takes a directory as input and looks for all .mp4 files in it. It then uses ffmpeg to concatenate them into a single .mp4 file.

Installation

dagger install github.com/marcosnils/daggerverse/videostitch@v0.2.7

Entrypoint

Return Type
Videostitch
Example
func (m *myModule) example() *Videostitch  {
	return dag.
			Videostitch()
}
@function
def example() -> dag.Videostitch:
	return (
		dag.videostitch()
	)
@func()
example(): Videostitch {
	return dag
		.videostitch()
}

Types

Videostitch

stitch()

example usage: “dagger call container-echo –string-arg yo”

Return Type
File !
Arguments
NameTypeDefault ValueDescription
srcDirDirectory !-No description provided
Example
dagger -m github.com/marcosnils/daggerverse/videostitch@bfa9939333c74e5b74a7a3281d9a3fad729fba49 call \
 stitch --src-dir DIR_PATH
func (m *myModule) example(srcDir *Directory) *File  {
	return dag.
			Videostitch().
			Stitch(srcDir)
}
@function
def example(src_dir: dagger.Directory) -> dagger.File:
	return (
		dag.videostitch()
		.stitch(src_dir)
	)
@func()
example(srcDir: Directory): File {
	return dag
		.videostitch()
		.stitch(srcDir)
}