Advertisement
fagervan

mpg2mp4.cmd

Feb 21st, 2019
378
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.34 KB | None | 0 0
  1. SET FFMPEG="C:\dvdz\ffmpeg\ffmpeg.exe"
  2. @ECHO OFF
  3. FOR %%a IN ("*.mpg") DO (
  4. title mpg2mp4 "%%a"
  5. %FFMPEG% -i "%%a" -c:v libx264 -preset medium -crf 24 -maxrate 200k -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))'"  -movflags faststart -c:a copy -y "%%~na".mp4
  6.  
  7. )
  8.  
  9. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement