docs: Added *more* examples to README.md.

This commit is contained in:
Spencer Brower
2024-03-03 00:48:03 -05:00
parent fe06cbea26
commit 674406054b
9 changed files with 121 additions and 5 deletions

10
examples/streams-audio.nu Executable file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env nu
use ../ffprobe ["main" "streams audio"];
# Extract the audio streams from a video
def main [] {
echo "> 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
}