Created
May 1, 2022 18:46
-
-
Save kraj0t/6393bc724e73d35aaf7760c74958b37e to your computer and use it in GitHub Desktop.
Revisions
-
kraj0t created this gist
May 1, 2022 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ @echo off if not exist *.m4a ( echo This directory contains no m4a files. ) else ( for %%f in (*.m4a) do ( :: Option 1. LOOPING VIDEO ffmpeg -i "%%f" -stream_loop -1 -i "loop-360p.mp4" -shortest "%%~nf.mp4" :: Option 2. STATIC BLACK IMAGE :: ffmpeg -f image2 -loop 1 -i "black.png" -i "%%f" -framerate 1 -shortest "%%~nf.mp4" ) )