-
-
Save shuklaneerajdev/b4a9f43b500172e62f5a1c6f593ba34c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<video id="into-video" class="video-js vjs-default-skin" autoplay controls preload="auto" width="640" | |
poster="https://mycdn.cloudfront.net/myposter.png"> | |
<source src="https://mycdn.cloudfront.net/video.webm" type='video/webm' /> | |
<source src="https://mycdn.cloudfront.net/video.mp4" type='video/mp4' /> | |
<p class="vjs-no-js">To view this video please enable JavaScript, or consider upgrading your browser.</p> | |
</video> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# example video encoding for vidoe.js | |
# for the mp4 video you need aac installed, on Ubuntu: | |
sudo apt-get install libfaac0 | |
# you seem to need two files for video js, a webm file and an mp4 file | |
# using ffmpeg these can be generated hence, assuming you start from a .mov file. | |
ffmpeg -i video.mov -codec:a aac -strict -2 -codec:v h264 -b:a 128k -b:v 1200k -flags +aic+mv4 video.mp4 | |
ffmpeg -i video.mov -codec:a libvorbis -codec:v libvpx -b:a 128k -b:v 1200k video.webm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I’m always on the lookout for tools that can help me manage my video collection better. Recently, I needed to download a few videos for a presentation, and I was having trouble finding a good site for that. Then I came across https://easytube.pro/. It was exactly what I was looking for—no frills, just a simple and effective tool. The site allows you to download videos quickly without compromising on quality. The fact that I didn’t have to sign up or deal with ads was a huge bonus. This site really made things easier for me.