Skip to content

Instantly share code, notes, and snippets.

@neta1
Created May 4, 2018 12:03
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 neta1/e21e35f7425174dbf02395fa90bb6e22 to your computer and use it in GitHub Desktop.
Save neta1/e21e35f7425174dbf02395fa90bb6e22 to your computer and use it in GitHub Desktop.
ffmpegで実再生時間を焼き込みつつ32倍速にするやつ(プログレ前提・60fps出力)
@echo off
:check
if "%~1"=="" goto break
echo on
ffmpeg -i "%~1" -vsync cfr -r 60 -vf drawtext=fontfile="C\\:/Windows/Fonts/YuGothB.ttc":box=1:boxcolor=black@0.4:fontcolor=00FF00:fontsize=50:x=50:y=20:text="%%{pts\\:hms}",setpts=PTS/32 -af atempo=2,atempo=2,atempo=2,atempo=2,atempo=2 -c:v libx264 -preset veryfast -c:a aac -ab 192k "%~dpn1_digest32x.mkv"
@echo off
shift
goto check
:break
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment