code cleanup
This commit is contained in:
parent
917be1687f
commit
5336968e05
34 changed files with 193 additions and 115 deletions
|
@ -1,23 +0,0 @@
|
|||
package av
|
||||
|
||||
import (
|
||||
ffmpeg "github.com/u2takey/ffmpeg-go"
|
||||
)
|
||||
|
||||
func AudioFromVideo(videoPath string, audioPath string) error {
|
||||
err := ffmpeg.
|
||||
Input(videoPath).
|
||||
Output(audioPath, ffmpeg.KwArgs{
|
||||
"map": "a",
|
||||
"vn": nil,
|
||||
"f": "mp3",
|
||||
"ab": "128k",
|
||||
}).
|
||||
Silent(true).
|
||||
OverWriteOutput().
|
||||
Run()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue