- Nov 9, 2021
- 365
- 942
I use ffmpeg batch file to prepare/test assets:Huh, that makes it even easier, still a good idea to do it to remove the audio from the clips unless you want ear pain when a sex and a bj play in the same screen.
Code:
@for %%F IN (*.webm,*.mp4) DO ffmpeg -y -i "%%F" -c copy -an "~tmp%%~xF"&&move "~tmp%%~xF" "%%F"
@for %%F IN (*.webm,*.mp4) DO ffmpeg -y -i "%%F" -vf "select=eq(n\,0)" "%%~dpnF_preview.png"
@for %%F IN (*_preview.png) DO ffmpeg -y -i "%%F" -q:v 95 "%%~dpnF.webp"&&del "%%F"
Copy it to new folder with raw movies (be sure to keep movies backups).
Run, it will remove audio tracks from webm/mp4 movies and generate preview image using first frame of movie.
You will need ffmpeg on PATH or in same folder as prepare_movies.bat and raw movies.
Hope it can help a bit. It worked on my machine, with movies i used, with ffmpeg version i had. Your mileage may vary.