✨ Add ffprobe
This commit is contained in:
parent
afb5953ea0
commit
4435ebf98f
4 changed files with 131 additions and 1 deletions
|
|
@ -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)
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue