Skip to content

Instantly share code, notes, and snippets.

@shuklaneerajdev
Forked from samuelcolvin/videojs_encoding.sh
Last active August 15, 2024 14:42
Show Gist options
  • Save shuklaneerajdev/b4a9f43b500172e62f5a1c6f593ba34c to your computer and use it in GitHub Desktop.
Save shuklaneerajdev/b4a9f43b500172e62f5a1c6f593ba34c to your computer and use it in GitHub Desktop.
<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>
# 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
@azarienko
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment