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
|
||||
ffprobe: ./get_ffprobe_commands_table
|
||||
version: ./nu_version
|
||||
ffprobe_example: ./examples/ffprobe.nu
|
||||
ffprobe_multiple_files_example: ./examples/ffprobe-multiple-files.nu
|
||||
ffprobe_streams_audio_example: ./examples/streams-audio.nu
|
||||
ffprobe_streams_video_example: ./examples/streams-video.nu
|
||||
ffprobe_dimensions_example: ./examples/dimensions.nu
|
||||
example:
|
||||
cmd: ./bin/run-example
|
||||
#args: []
|
||||
#pluginTimeout: 10s
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
# nu-ffmpeg
|
||||
|
||||
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
|
||||
- Use `streams`, `streams video`, and `streams audio` to filter `ffprobe` output
|
||||
- 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`
|
||||
- Apply and parse complex filters to a video (Work In Progress)
|
||||
|
||||
## Setup
|
||||
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
vim: filetype=markdown :
|
||||
->
|
||||
|
||||
{{ end }}
|
||||
{{ end -}}
|
||||
|
||||
# nu-ffmpeg
|
||||
|
||||
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
|
||||
- Use `streams`, `streams video`, and `streams audio` to filter `ffprobe` output
|
||||
- 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`
|
||||
- Apply and parse complex filters to a video (Work In Progress)
|
||||
|
||||
## Setup
|
||||
|
||||
@@ -47,18 +50,18 @@ use <path-to-repository>/filters *
|
||||
## Examples
|
||||
|
||||
```nu
|
||||
{{ ffprobe_example -}}
|
||||
{{ example "ffprobe" -}}
|
||||
```
|
||||
|
||||
```nu
|
||||
{{ ffprobe_multiple_files_example -}}
|
||||
{{ example "ffprobe-multiple-files" -}}
|
||||
```
|
||||
|
||||
```nu
|
||||
{{ ffprobe_streams_video_example -}}
|
||||
{{ ffprobe_streams_audio_example -}}
|
||||
{{ example "streams-video" -}}
|
||||
{{ example "streams-audio" -}}
|
||||
```
|
||||
|
||||
```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