mirror of
https://github.com/sbrow/nu-ffmpeg.git
synced 2025-12-29 16:23:11 -05:00
docs: Moved examples to bottom of README.md.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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'
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user