Advertisement
Guest User

FFmpeg Batch calc

a guest
Mar 12th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. set bitaudio=90
  2. set timesecond=35  
  3. set /a bitvideo = 32768 / %timesecond% - %bitaudio%
  4. set filepath=
  5. set metadata=
  6. set outputname=
  7. set ss=
  8. set t=
  9. set size=
  10. set an=
  11.  
  12. ffmpeg -y %ss% -i "%filepath%" %t% -c:v libvpx -b:v %bitvideo%k %size% -c:a libvorbis -b:a %bitaudio%k %an% -pass 1 -metadata title="%metadata%" -f webm NUL
  13. ffmpeg -y %ss% -i "%filepath%" %t% -c:v libvpx -b:v %bitvideo%k %size% -c:a libvorbis -b:a %bitaudio%k %an% -pass 2 -metadata title="%metadata%" "%outputname%.webm"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement