docs: Moved examples to bottom of README.md.

This commit is contained in:
Spencer Brower
2024-03-03 01:02:31 -05:00
parent 674406054b
commit de46159a10
7 changed files with 104 additions and 101 deletions

View File

@@ -2,8 +2,8 @@
use ../ffprobe ["main" "dimensions" "streams video"];
# Extract the dimensions of a video stream
def main [] {
echo "# Extract the dimensions of a video stream"
echo "> ffprobe https://sample-videos.com/video321/mp4/720/big_buck_bunny_720p_1mb.mp4 | streams video | first | dimensions"
ffprobe $'($env.FILE_PWD)/videos/sample-videos.com/video321/mp4/720/big_buck_bunny_720p_1mb.mp4'
| streams video | first | dimensions

View File

@@ -2,8 +2,8 @@
use ../ffprobe;
# Use ffprobe on mutliple files at once
def main [] {
echo "# Use ffprobe on mutliple files at once"
echo "> ffprobe https://sample-videos.com/video321/mp4/720/big_buck_bunny_720p_1mb.mp4 https://sample-videos.com/video321/mkv/720/big_buck_bunny_720p_1mb.mkv"
(
ffprobe

View File

@@ -2,8 +2,8 @@
use ../ffprobe;
# Return a table from ffprobe
def main [] {
echo "# Return a table from ffprobe"
echo "> ffprobe https://sample-videos.com/video321/mp4/720/big_buck_bunny_720p_1mb.mp4"
ffprobe $'($env.FILE_PWD)/videos/sample-videos.com/video321/mp4/720/big_buck_bunny_720p_1mb.mp4'
}

View File

@@ -2,8 +2,8 @@
use ../ffprobe ["main" "streams audio"];
# Extract the audio streams from a video
def main [] {
echo "# Extract the audio streams from a video"
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

View File

@@ -2,8 +2,8 @@
use ../ffprobe ["main" "streams video"];
# Extract the video streams from a video
def main [] {
echo "# Extract the video streams from a video"
echo "> ffprobe https://sample-videos.com/video321/mp4/720/big_buck_bunny_720p_1mb.mp4 | streams video"
ffprobe $'($env.FILE_PWD)/videos/sample-videos.com/video321/mp4/720/big_buck_bunny_720p_1mb.mp4'
| streams video