mirror of
https://github.com/sbrow/nu-ffmpeg.git
synced 2025-12-29 16:23:11 -05:00
fix: Updated nushell version.
This commit is contained in:
@@ -3,8 +3,12 @@
|
||||
use ../ffprobe ["main" "dimensions" "streams video"];
|
||||
|
||||
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
|
||||
print "# Extract the dimensions of a video stream"
|
||||
print "> 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
|
||||
)
|
||||
}
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
use ../ffprobe;
|
||||
|
||||
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"
|
||||
print "# Use ffprobe on mutliple files at once"
|
||||
print "> 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
|
||||
$'($env.FILE_PWD)/videos/sample-videos.com/video321/mp4/720/big_buck_bunny_720p_1mb.mp4'
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
use ../ffprobe;
|
||||
|
||||
def main [] {
|
||||
echo "# Return a table from ffprobe"
|
||||
echo "> ffprobe https://sample-videos.com/video321/mp4/720/big_buck_bunny_720p_1mb.mp4"
|
||||
print "# Return a table from ffprobe"
|
||||
print "> 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'
|
||||
}
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
use ../ffprobe ["main" "streams audio"];
|
||||
|
||||
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"
|
||||
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
|
||||
}
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
use ../ffprobe ["main" "streams 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"
|
||||
print "# Extract the video streams from a video"
|
||||
print "> 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