Files
nu-ffmpeg/examples/streams-audio.nu

11 lines
352 B
Nu
Executable File

#!/usr/bin/env nu
use ../ffprobe ["main" "streams audio"];
def main [] {
print "# Extract the audio streams from a video"
print "> ffprobe https://sample-videos.com/video321/mp4/720/big_buck_bunny_720p_1mb.mp4 | streams audio"
ffprobe $'($env.FILE_PWD)/videos/sample-videos.com/video321/mp4/720/big_buck_bunny_720p_1mb.mp4'
| streams audio
}