Skip to content

Instantly share code, notes, and snippets.

@ahbanavi
Created December 12, 2023 22:17
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 ahbanavi/6f1ab67b3212711982eed5a3aa3f250b to your computer and use it in GitHub Desktop.
Save ahbanavi/6f1ab67b3212711982eed5a3aa3f250b to your computer and use it in GitHub Desktop.
ffmpeg stuff :) just drag and drop videos to the `.bat` file
@echo off
for %%A in (%*) do (
ffmpeg -i "%%A" -vcodec hevc_nvenc "%%~nA.x265%%~xA"
)
pause
@echo off
for %%A in (%*) do (
ffmpeg -i "%%A" -vcodec libx264 -crf 30 "%%~nA.x264%%~xA"
)
pause
@echo off
for %%A in (%*) do (
ffmpeg -i "%%A" -vcodec libx265 -crf 30 "%%~nA.x265%%~xA"
)
pause
@echo off
for %%A in (%*) do (
ffmpeg -i "%%A" -c:v h264_nvenc -b:v 5M -t 02:20 -c:a aac -filter_complex "scale=1920:-1,fps=30" "%%~nA.twitter%%~xA"
)
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment