🚚 Rename ffmpeg to media

This commit is contained in:
Dan Jones 2023-08-29 20:47:53 -05:00
commit 1878224040
2 changed files with 4 additions and 4 deletions

View file

@ -7,8 +7,8 @@ import (
"fmt" "fmt"
"os" "os"
"codeberg.org/danjones000/strip-beats/ffmpeg"
"codeberg.org/danjones000/strip-beats/files" "codeberg.org/danjones000/strip-beats/files"
"codeberg.org/danjones000/strip-beats/media"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )
@ -20,9 +20,9 @@ var rootCmd = &cobra.Command{
// has an action associated with it: // has an action associated with it:
Run: func(cmd *cobra.Command, args []string) { Run: func(cmd *cobra.Command, args []string) {
file := files.PickRandomFile() file := files.PickRandomFile()
out := ffmpeg.ProbeFile(file) out := media.ProbeFile(file)
fmt.Printf("%+v\n", out) fmt.Printf("%+v\n", out)
stream := ffmpeg.SelectAudioStream(out) stream := media.SelectAudioStream(out)
fmt.Printf("Stream %d of %s: %+v\n", stream, out.Format.Path, out.Streams[stream]) fmt.Printf("Stream %d of %s: %+v\n", stream, out.Format.Path, out.Streams[stream])
}, },
} }

View file

@ -1,4 +1,4 @@
package ffmpeg package media
import ( import (
"codeberg.org/danjones000/strip-beats/config" "codeberg.org/danjones000/strip-beats/config"