Skip to content

Instantly share code, notes, and snippets.

@grishy
Created February 9, 2018 05:40
Show Gist options
  • Save grishy/daffbf82bfd6b6a7db17ea4fdd266643 to your computer and use it in GitHub Desktop.
Save grishy/daffbf82bfd6b6a7db17ea4fdd266643 to your computer and use it in GitHub Desktop.
```bash
$ .\ffmpeg.exe -r 60 -f image2 -s 1280x720 -i bg.jpg -i audio.mp3 -vcodec libx264 -b 4M -acodec copy OUTPUT.mp4
```
```
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 09.02.2018 8:36 5191680 audio.mp3
-a---- 09.02.2018 8:34 3757177 bg.jpg
-a---- 09.02.2018 8:33 42919936 ffmpeg.exe
-a---- 09.02.2018 8:39 109 readme.txt
```
@grishy
Copy link
Author

grishy commented Feb 15, 2018

for /R %%f in (*.mp3) do .\ffmpeg.exe -y -r 60 -f image2 -s 1280x720 -i bg.jpg -i "%%f" -vcodec libx264 -b 4M -acodec copy ".\out%%~nxf.mp4"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment