Advertisement
Guest User

webm Guide

a guest
Apr 24th, 2014
699
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. Grab ffmpeg from https://www.ffmpeg.org/download.html
  2.  
  3. It's a command line tool which means you will have to type things with your keyboard instead of clicking on buttons.
  4.  
  5. The most trivial operation would be converting gifs:
  6. ffmpeg -i your_gif.gif -c:v libvpx -crf 12 -b:v 500K output.webm
  7. -crf values can go from 4 to 63. Lower values mean better quality.
  8. -b:v is the maximum allowed bitrate. Higher means better quality.
  9.  
  10. To convert a part of a video file:
  11. ffmpeg -i your_video.mkv -ss 00:00:10.000 -to 00:00:20.000 -c:v libvpx -crf 4 -b:v 1500K -vf scale=640:-1 -an output.webm
  12.  
  13. -ss is the start position in number of seconds, or in hh:mm:ss[.xxx] format. You can get it using your video player (Ctrl-G in MPC-HC).
  14. -to is the end position.
  15. -vf scale=640:-1 sets the width to 640px. The height will be calculated automatically according to the aspect ratio of the input.
  16. -an disables audio. 4chan will reject your files if they contain audio streams.
  17.  
  18. Another encoding guide: https://trac.ffmpeg.org/wiki/vpxEncodingGuide
  19. ffmpeg documentation: https://www.ffmpeg.org/ffmpeg.html
  20.  
  21. Current limits for WebM files on 4chan are:
  22. Maximum file size is 3072KB.
  23. Maximum duration is 120 seconds.
  24. Maximum resolution is 2048x2048 pixels.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement