🚚 Rename ffmpeg to media
This commit is contained in:
parent
07b2c00c14
commit
1878224040
2 changed files with 4 additions and 4 deletions
|
|
@ -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])
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package ffmpeg
|
package media
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"codeberg.org/danjones000/strip-beats/config"
|
"codeberg.org/danjones000/strip-beats/config"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue