mirror of
https://github.com/sbrow/nu-ffmpeg.git
synced 2026-02-27 02:51:44 -05:00
feat(ffprobe): Added streams subtitle command.
This commit is contained in:
@@ -39,6 +39,7 @@ use <path-to-repository>/filters *
|
|||||||
| ffprobe dimensions | Get the dimensions of a video stream |
|
| ffprobe dimensions | Get the dimensions of a video stream |
|
||||||
| ffprobe streams | Retrieve all the streams from a list of ffprobe outputs |
|
| ffprobe streams | Retrieve all the streams from a list of ffprobe outputs |
|
||||||
| ffprobe streams audio | Retrieve all the audio streams from a list of ffprobe outputs |
|
| ffprobe streams audio | Retrieve all the audio streams from a list of ffprobe outputs |
|
||||||
|
| ffprobe streams subtitle | Retrieve all the subtitle streams from a list of ffprobe outputs |
|
||||||
| ffprobe streams video | Retrieve all the video streams from a list of ffprobe outputs |
|
| ffprobe streams video | Retrieve all the video streams from a list of ffprobe outputs |
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
5
ffprobe
5
ffprobe
@@ -30,6 +30,11 @@ export def "streams audio" []: table<streams: table, format: record> -> table {
|
|||||||
$in | streams | where codec_type == "audio"
|
$in | streams | where codec_type == "audio"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Retrieve all the subtitle streams from a list of ffprobe outputs
|
||||||
|
export def "streams subtitle" []: table<streams: table, format: record> -> table {
|
||||||
|
$in | streams | where codec_type == "subtitle"
|
||||||
|
}
|
||||||
|
|
||||||
# Get the dimensions of a video stream
|
# Get the dimensions of a video stream
|
||||||
export def "dimensions" []: record<width: int, height: int> -> record<width: int, height: int> {
|
export def "dimensions" []: record<width: int, height: int> -> record<width: int, height: int> {
|
||||||
$in | select width height
|
$in | select width height
|
||||||
|
|||||||
Reference in New Issue
Block a user