Watch video

This commit is contained in:
Dan Jones 2023-08-29 21:52:13 -05:00
commit 2a19f3c8e9
4 changed files with 55 additions and 2 deletions

View file

@ -22,6 +22,7 @@ var rootCmd = &cobra.Command{
file := files.PickRandomFile()
out := media.ProbeFile(file)
fmt.Printf("%+v\n", out)
media.Watch(out.Format.Path)
stream := media.SelectAudioStream(out)
fmt.Printf("Stream %d of %s: %+v\n", stream, out.Format.Path, out.Streams[stream])
},