✨ Select audio stream
This commit is contained in:
parent
4435ebf98f
commit
07b2c00c14
3 changed files with 95 additions and 5 deletions
|
|
@ -22,6 +22,8 @@ var rootCmd = &cobra.Command{
|
|||
file := files.PickRandomFile()
|
||||
out := ffmpeg.ProbeFile(file)
|
||||
fmt.Printf("%+v\n", out)
|
||||
stream := ffmpeg.SelectAudioStream(out)
|
||||
fmt.Printf("Stream %d of %s: %+v\n", stream, out.Format.Path, out.Streams[stream])
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue