Add ffprobe

This commit is contained in:
Dan Jones 2023-08-29 16:06:52 -05:00
commit 4435ebf98f
4 changed files with 131 additions and 1 deletions

View file

@ -7,6 +7,7 @@ import (
"fmt"
"os"
"codeberg.org/danjones000/strip-beats/ffmpeg"
"codeberg.org/danjones000/strip-beats/files"
"github.com/spf13/cobra"
)
@ -18,7 +19,9 @@ var rootCmd = &cobra.Command{
// Uncomment the following line if your bare application
// has an action associated with it:
Run: func(cmd *cobra.Command, args []string) {
fmt.Println(files.PickRandomFile())
file := files.PickRandomFile()
out := ffmpeg.ProbeFile(file)
fmt.Printf("%+v\n", out)
},
}