mirror of
https://github.com/sbrow/nu-ffmpeg.git
synced 2025-12-29 16:23:11 -05:00
refactor: Gomplate now renders all examples using the same plugin.
This commit is contained in:
@@ -6,10 +6,8 @@ plugins:
|
|||||||
filters: ./get_filter_support_table
|
filters: ./get_filter_support_table
|
||||||
ffprobe: ./get_ffprobe_commands_table
|
ffprobe: ./get_ffprobe_commands_table
|
||||||
version: ./nu_version
|
version: ./nu_version
|
||||||
ffprobe_example: ./examples/ffprobe.nu
|
example:
|
||||||
ffprobe_multiple_files_example: ./examples/ffprobe-multiple-files.nu
|
cmd: ./bin/run-example
|
||||||
ffprobe_streams_audio_example: ./examples/streams-audio.nu
|
#args: []
|
||||||
ffprobe_streams_video_example: ./examples/streams-video.nu
|
|
||||||
ffprobe_dimensions_example: ./examples/dimensions.nu
|
|
||||||
#pluginTimeout: 10s
|
#pluginTimeout: 10s
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
# nu-ffmpeg
|
# nu-ffmpeg
|
||||||
|
|
||||||
Utility commands for working with ffmpeg in nushell.
|
Utility commands for working with ffmpeg in nushell.
|
||||||
@@ -9,8 +8,10 @@ Utility commands for working with ffmpeg in nushell.
|
|||||||
- `ffprobe` multiple files at once
|
- `ffprobe` multiple files at once
|
||||||
- Use `streams`, `streams video`, and `streams audio` to filter `ffprobe` output
|
- Use `streams`, `streams video`, and `streams audio` to filter `ffprobe` output
|
||||||
- get the `dimensions` of a video stream as a record
|
- get the `dimensions` of a video stream as a record
|
||||||
|
|
||||||
|
- Apply complex filters to a video using standard shell pipes `|` rather than filtergraph syntax.
|
||||||
|
- Conditionally apply filters to a video based on the inputs
|
||||||
- Tab-completion for filter options. i.e. `fps --round<tab>` will yield `zero inf down up near`
|
- Tab-completion for filter options. i.e. `fps --round<tab>` will yield `zero inf down up near`
|
||||||
- Apply and parse complex filters to a video (Work In Progress)
|
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,8 @@
|
|||||||
vim: filetype=markdown :
|
vim: filetype=markdown :
|
||||||
->
|
->
|
||||||
|
|
||||||
{{ end }}
|
{{ end -}}
|
||||||
|
|
||||||
# nu-ffmpeg
|
# nu-ffmpeg
|
||||||
|
|
||||||
Utility commands for working with ffmpeg in nushell.
|
Utility commands for working with ffmpeg in nushell.
|
||||||
@@ -14,8 +15,10 @@ Utility commands for working with ffmpeg in nushell.
|
|||||||
- `ffprobe` multiple files at once
|
- `ffprobe` multiple files at once
|
||||||
- Use `streams`, `streams video`, and `streams audio` to filter `ffprobe` output
|
- Use `streams`, `streams video`, and `streams audio` to filter `ffprobe` output
|
||||||
- get the `dimensions` of a video stream as a record
|
- get the `dimensions` of a video stream as a record
|
||||||
|
|
||||||
|
- Apply complex filters to a video using standard shell pipes `|` rather than filtergraph syntax.
|
||||||
|
- Conditionally apply filters to a video based on the inputs
|
||||||
- Tab-completion for filter options. i.e. `fps --round<tab>` will yield `zero inf down up near`
|
- Tab-completion for filter options. i.e. `fps --round<tab>` will yield `zero inf down up near`
|
||||||
- Apply and parse complex filters to a video (Work In Progress)
|
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
@@ -47,18 +50,18 @@ use <path-to-repository>/filters *
|
|||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
```nu
|
```nu
|
||||||
{{ ffprobe_example -}}
|
{{ example "ffprobe" -}}
|
||||||
```
|
```
|
||||||
|
|
||||||
```nu
|
```nu
|
||||||
{{ ffprobe_multiple_files_example -}}
|
{{ example "ffprobe-multiple-files" -}}
|
||||||
```
|
```
|
||||||
|
|
||||||
```nu
|
```nu
|
||||||
{{ ffprobe_streams_video_example -}}
|
{{ example "streams-video" -}}
|
||||||
{{ ffprobe_streams_audio_example -}}
|
{{ example "streams-audio" -}}
|
||||||
```
|
```
|
||||||
|
|
||||||
```nu
|
```nu
|
||||||
{{ ffprobe_dimensions_example -}}
|
{{ example "dimensions" -}}
|
||||||
```
|
```
|
||||||
|
|||||||
6
bin/run-example
Executable file
6
bin/run-example
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/usr/bin/env nu
|
||||||
|
# vim: filetype=nu :
|
||||||
|
|
||||||
|
def main [name: string] {
|
||||||
|
nu $'./examples/($name).nu'
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user