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.4Entrypoint
Return Type
Videostitch Example
dagger -m github.com/marcosnils/daggerverse/videostitch@97b98801474ac75ebb9e7964820043c66d66e9f2 call \
func (m *MyModule) Example() *dagger.Videostitch {
return dag.
Videostitch()
}@function
def example() -> dagger.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
| Name | Type | Default Value | Description |
|---|---|---|---|
| srcDir | Directory ! | - | No description provided |
Example
dagger -m github.com/marcosnils/daggerverse/videostitch@97b98801474ac75ebb9e7964820043c66d66e9f2 call \
stitch --src-dir DIR_PATHfunc (m *MyModule) Example(srcDir *dagger.Directory) *dagger.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)
}