Advertisement
fagervan

mp4fix.cmd

Mar 14th, 2019
901
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.54 KB | None | 0 0
  1. SET FFMPEG="C:\dvdz\ffmpeg\ffmpeg.exe"
  2. @ECHO OFF
  3. FOR %%a IN ("*.mp4") DO (
  4. rem %FFMPEG% -i "%%a" -c:v libx264 -profile:v high -level 41 -crf 18 -maxrate 400k -bufsize 16M -pix_fmt yuv420p -vf "scale=iw*sar:ih, scale='if(gt(iw,ih),min(1920,iw),-1)':'if(gt(iw,ih),-1,min(1080,ih))'" -x264opts bframes=3:cabac=1 -movflags faststart -c:a aac -y -b:a 32k  "%%~na".fix.mp4
  5. %FFMPEG% -i "%%a" -c:v libx264 -profile:v high -level 41 -crf 22 -maxrate 360k -bufsize 16M -pix_fmt yuv420p  -movflags faststart -c:a aac -y -b:a 32k  "%%~na".fix.mp4
  6.  
  7. )
  8. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement