Skip to content

Instantly share code, notes, and snippets.

@hkva
Last active October 24, 2022 00:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hkva/a9acae588267d91dbafe202d6144e7ae to your computer and use it in GitHub Desktop.
Save hkva/a9acae588267d91dbafe202d6144e7ae to your computer and use it in GitHub Desktop.
for %%f in (..\\*.wav) do (
ffmpeg -y -f lavfi -i color=size=1920x1080:rate=25:color=black -i %%f -vf "drawtext=fontfile=GoetheBold.ttf:fontsize=120:fontcolor=red:x=(w-text_w)/2:y=1080/2:text='%%~nf'" -shortest tmp\\%%~nf.mp4
echo file tmp\\%%~nf.mp4 >> list.txt
)
ffmpeg -y -f concat -safe 0 -i list.txt -c copy sounds.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment