Last active
May 27, 2022 15:14
-
-
Save BenMcLean/1d285bf7315732e2ce2407d75325b8d7 to your computer and use it in GitHub Desktop.
Audio with picture and waveform display for YouTube
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
@ECHO OFF | |
cd %~dp0 | |
for /f "eol=: delims=" %%F in ('dir /b /a-d *.flac ^| findstr /vixc:"%~nx0"') do ( ffmpeg.exe -i "%%F" -loop 1 -i Folder.jpg -filter_complex "[1]scale=-1:1080,pad=1920:1080:(ow-iw)/2:(oh-ih)/2[v]" -map "[v]" -map 0:a -c:a copy -c:v libx264 -movflags +faststart -strict -2 -shortest "%%F.mkv" ) | |
@PAUSE |
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
@ECHO OFF | |
cd %~dp0 | |
ffmpeg.exe -i "%~1" -loop 1 -i Folder.jpg -filter_complex "[1]scale=-1:1080,pad=1920:1080:(ow-iw)/2:(oh-ih)/2[v]" -map "[v]" -map 0:a -c:a copy -c:v libx264 -movflags +faststart -strict -2 -shortest "%~n1.mkv" | |
@PAUSE |
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
@ECHO OFF | |
cd %~dp0 | |
for /f "eol=: delims=" %%F in ('dir /b /a-d *.flac ^| findstr /vixc:"%~nx0"') do ( ffmpeg.exe -i "%%F" -i Folder.jpg -filter_complex "[1]scale=-1:1080,pad=1920:1080:(ow-iw)/2:(oh-ih)/2[SCALED];[0:a]showwaves=s=1920x1080:mode=line:colors=red|blue[SHOWEDWAVES];[SCALED][SHOWEDWAVES]overlay=(W-w):(H-h):format=auto,format=yuv420p[v]" -map "[v]" -map 0:a -c:a copy -c:v libx264 -movflags +faststart "%%F.mkv" ) | |
@PAUSE |
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
@ECHO OFF | |
cd %~dp0 | |
ffmpeg.exe -i "%~1" -i Folder.jpg -filter_complex "[1]scale=-1:1080,pad=1920:1080:(ow-iw)/2:(oh-ih)/2[SCALED];[0:a]showwaves=s=1920x1080:mode=line:colors=red|blue[SHOWEDWAVES];[SCALED][SHOWEDWAVES]overlay=(W-w):(H-h):format=auto,format=yuv420p[v]" -map "[v]" -map 0:a -c:a copy -c:v libx264 -movflags +faststart "%~n1.mkv" | |
@PAUSE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment