You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
343 B
22 lines
343 B
2 days ago
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"lcthw.dev/vidcrunch/config"
|
||
|
"github.com/modfy/fluent-ffmpeg"
|
||
|
)
|
||
|
|
||
|
|
||
|
func main() {
|
||
|
config.Load()
|
||
|
fmt.Println(config.Settings)
|
||
|
|
||
|
err := fluentffmpeg.NewCommand("").
|
||
|
InputPath(config.Settings.Input).
|
||
|
OutputFormat("mp4").
|
||
|
OutputPath(config.Settings.Output).
|
||
|
Run()
|
||
|
|
||
|
if err != nil { panic("fail") }
|
||
|
}
|