Created
January 17, 2024 15:21
-
-
Save kidsil/9a306efdde9e261b3794eb77ce226bf3 to your computer and use it in GitHub Desktop.
White and Brown noise on Linux - No sox needed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Brown noise | |
ffmpeg.ffplay -f lavfi -showmode 0 -i 'anoisesrc=color=brown' | |
# White Noise | |
ffmpeg.ffplay -f lavfi -showmode 0 -i 'anoisesrc=color=white' |
Thank you! Much better.
What OS are you using?
Installing ffmpeg with brew on MacOS doesn't give me a bin for ffmpeg.ffplay
On MacOS, use simply e.g.
ffplay -f lavfi -showmode 0 -i 'anoisesrc=color=brown'
I'm on Linux. Thanks for the much needed MacOS addition!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Background - I wanted to get a quick 1-liner for brown and white noise without installing sox.
Finally found out that ffmpeg has a built-in way of generating this.