Created
February 26, 2016 16:37
-
-
Save AJDurant/5be7029b12c17dfd1ec4 to your computer and use it in GitHub Desktop.
turn an audio file into a video with analysis
This file contains hidden or 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
| ffmpeg -i audio -filter_complex \ | |
| "[0:a]avectorscope=zoom=2:s=960x777:r=60,pad=1920:1080[vs]; \ | |
| [0:a]showspectrum=mode=separate:color=intensity:scale=cbrt:s=960x777[ss]; \ | |
| [0:a]showwaves=s=1920x303:r=60:mode=line[sw]; \ | |
| [vs][ss]overlay=w[bg]; \ | |
| [bg][sw]overlay=0:H-h[out]" \ | |
| -map "[out]" -map 0:a -c:v libx264 -preset fast -crf 18 -c:a aac video.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment