daily pastebin goal
35%
SHARE
TWEET

Untitled

a guest Sep 14th, 2018 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # example video encoding for vidoe.js
  2.  
  3. # for the mp4 video you need aac installed, on Ubuntu:
  4. sudo apt-get install libfaac0
  5.  
  6. # you seem to need two files for video js, a webm file and an mp4 file
  7. # using ffmpeg these can be generated hence, assuming you start from a .mov file.
  8.  
  9. ffmpeg -i video.mov -codec:a aac -strict -2 -codec:v h264   -b:a 128k -b:v 1200k -flags +aic+mv4 video.mp4
  10. ffmpeg -i video.mov -codec:a libvorbis      -codec:v libvpx -b:a 128k -b:v 1200k                video.webm
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top