mirror of
https://github.com/sbrow/nu-ffmpeg.git
synced 2025-12-29 16:23:11 -05:00
66 lines
1.2 KiB
Markdown
66 lines
1.2 KiB
Markdown
{{ if false }}
|
|
<!--
|
|
vim: filetype=markdown :
|
|
->
|
|
|
|
{{ end }}
|
|
# nu-ffmpeg
|
|
|
|
Utility commands for working with ffmpeg in nushell.
|
|
|
|
## Capabilities
|
|
|
|
- Return tables from `ffprobe`
|
|
|
|
```nu
|
|
{{ ffprobe_example }}
|
|
```
|
|
|
|
- `ffprobe` multiple files at once
|
|
|
|
```nu
|
|
{{ ffprobe_multiple_files_example }}
|
|
```
|
|
|
|
- Use `streams`, `streams video`, and `streams audio` to filter `ffprobe` output
|
|
|
|
```nu
|
|
{{ ffprobe_streams_video_example }}
|
|
{{ ffprobe_streams_audio_example }}
|
|
```
|
|
|
|
- get the `dimensions` of a video stream as a record
|
|
|
|
```nu
|
|
{{ ffprobe_dimensions_example }}
|
|
```
|
|
- 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
|
|
|
|
The `ffmpeg` and `ffprobe` commands are required to be installed and available
|
|
in your path; they are not installed for you.
|
|
|
|
Currently only nushell version {{ version }} is supported.
|
|
|
|
After that, clone this repository and add the following code to your scripts,
|
|
or to your `config.nu` file:
|
|
|
|
```nu
|
|
use <path-to-repository>/ffprobe
|
|
use <path-to-repository>/filters *
|
|
```
|
|
|
|
## FFProbe
|
|
|
|
### Commands
|
|
|
|
{{ ffprobe }}
|
|
|
|
## FFMpeg
|
|
|
|
## Supported Filters
|
|
|
|
{{ filters }}
|