update readme
This commit is contained in:
parent
92c3b48fa7
commit
6a85dcb816
10
README.md
10
README.md
|
@ -20,16 +20,16 @@ milkbucket reads a PCM stream from standard input to generate visualizations.
|
||||||
If you have an audio file and a preset in mind, you can use `ffmpeg` to
|
If you have an audio file and a preset in mind, you can use `ffmpeg` to
|
||||||
generate the PCM stream, then pipe to milkbucket, like so:
|
generate the PCM stream, then pipe to milkbucket, like so:
|
||||||
```
|
```
|
||||||
ffmpeg -i $audio -ar 44100 -f s16le - | ./milkbucket -p $preset
|
ffmpeg -i $audio -ar 44100 -f s16le - | ./milkbucket $preset
|
||||||
```
|
```
|
||||||
Note that you can pass in multiple presets with multiple `-p` flags, then use
|
Note that you can pass in multiple presets, then use the arrow keys to cycle
|
||||||
the arrow keys to cycle through the presets while running.
|
through the presets while running.
|
||||||
|
|
||||||
Note that neither of these commands (ffmpeg or milkbucket) will output any
|
Note that neither of these commands (ffmpeg or milkbucket) will output any
|
||||||
audio! If you want to hear the audio at the same time (and assuming your
|
audio! If you want to hear the audio at the same time (and assuming your
|
||||||
machine uses pipewire), run:
|
machine uses pipewire), run:
|
||||||
```
|
```
|
||||||
ffmpeg -i $audio -ar 44100 -f s16le - | tee >(pw-play --rate=44100 --format=s16 -) | ./milkbucket -p $preset
|
ffmpeg -i $audio -ar 44100 -f s16le - | tee >(pw-play --rate=44100 --format=s16 -) | ./milkbucket $preset
|
||||||
```
|
```
|
||||||
(If you don't use pipewire try using `aplay` instead of `pw-play`, or some
|
(If you don't use pipewire try using `aplay` instead of `pw-play`, or some
|
||||||
other command for playing PCM streams.)
|
other command for playing PCM streams.)
|
||||||
|
@ -37,5 +37,5 @@ other command for playing PCM streams.)
|
||||||
You can also generate a visualization from your system sound. Assuming pipewire
|
You can also generate a visualization from your system sound. Assuming pipewire
|
||||||
again, and that you have audio coming from Firefox, run:
|
again, and that you have audio coming from Firefox, run:
|
||||||
```
|
```
|
||||||
pw-record --target Firefox - | ./milkbucket -p $preset
|
pw-record --target Firefox - | ./milkbucket $preset
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue