🚧 Trim with ffmpeg
This commit is contained in:
parent
a706d16c5a
commit
5b2896c032
3 changed files with 75 additions and 0 deletions
16
app/run.go
16
app/run.go
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue