Guest User

Untitled

a guest
Sep 14th, 2018
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  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
Add Comment
Please, Sign In to add comment