🚧 Trim with ffmpeg

This commit is contained in:
Dan Jones 2023-09-08 09:35:49 -05:00
commit 5b2896c032
3 changed files with 75 additions and 0 deletions

View file

@ -23,7 +23,23 @@ func quit() {
os.Exit(0)
}
func testTrim() {
path := "/home/drj/MyFiles/Videos/WebShows/YouTube/Savannah_Outen/Love_Me_Like_You_Do_-_Ellie_Goulding_Cover_by_Savannah_Outen-tPYfBpRxXfI.mp4"
file := SetFile(path)
tmp, _ := os.CreateTemp("", "audio.*.mka")
tmp.Close()
// err := media.TrimWithFade(file, tmp.Name(), 0, 215.84, 0, 3)
// err := media.Trim(file, tmp.Name(), 0, 215.84)
err := media.TrimWithFade(file, tmp.Name(), 15.2, 70.84, 3.6, 8.4)
if err != nil {
panic(err)
}
fmt.Println(tmp.Name())
quit()
}
func Run(step AppStep) {
testTrim()
for step < Quit {
switch step {
case Pick: