Advertisement
lincruste

[FFMPEG] H265 conversion + redim

May 2nd, 2015
652
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.58 KB | None | 0 0
  1. @echo off
  2. echo Redimensionnement et conversion en H265
  3. echo Bas‚ sur FFMPEG www.ffmpeg.org
  4. mkdir convert
  5. rem sets the horizontal resolution:
  6. SET /P taille=R‚solution horizontale ?
  7. rem sets the CRF value:
  8. SET /P qualite=Quelle qualit‚ (de pr‚f‚rence autour de 20)
  9. rem Please add the full path to ffmpeg.exe if it is not in your system's PATH variable.
  10. rem To begin the conversion, drop the file(s) on the batch.
  11. @FOR %%A IN (%*) DO ffmpeg -i %%A -vf scale=%taille%:-1  -c:v libx265 -preset slow -crf %qualite% -c:a aac -strict experimental -b:a 128k ".\convert\%%~nA.mp4"
  12. @pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement