List

“WebM is an open, royalty-free, media file format designed for the web.” Or at-least, that’s what Google intended it to be.

You’ve probably never heard of WebM files, but it is an open alternative to MP4, a digital container for video and audio streams. MP4 files generally use the H.264 video codec, while WebM uses VP8 and VP9, also developed by Google. WebM never caught on like how MP4 did, despite it’s open format.

Apple devices are notorious for their lack of WebM support, and there is a bit of a back-story on this. Google Chrome used to utilize the Apple-developed WebKit engine, which Google abandoned in favor of their own rendering engine, Blink. Some have speculated that this is a major factor in why Apple never adopted WebM, but it makes watching WebM files on iPhones very difficult.

I wrote a simple app in nodejs that uses the Telegram Bot API to automatically convert these WebM files into the mp4 format. It polls telegram for new messages, checks if the message contains a WebM, and then launches a ffmpeg process to convert the file before uploading it back to the chat.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  Posts

1 2 3 4
February 28th, 2018

Concluding the February Challenge

Writing every day for the month of February has been an experience, and has changed my perspective on writing tremendously. […]

February 27th, 2018

Cloudflare2DB

Cloudflare stats are very useful, but they expire and can’t be tracked over a long period of time. That’s why […]

February 26th, 2018

Nightly Database Backups to Google Drive

If you have a Google Apps account (a business account with more than 5 users or one provided by your […]

February 25th, 2018

Sublime Text

Sublime Text is a really powerful text editor and includes tons of functionality relevant to programming. I will dive into […]

February 24th, 2018

Great Resources for Student Developers

Being enrolled in a university comes with its pros and cons (a topic itself worthy of many other blog posts), […]

February 23rd, 2018

What is MVC?

MVC is a term thrown around lots of software development projects. Laravel, Zend, CodeIgniter, Ruby on Rails, Django, iOS, and […]

February 22nd, 2018

Getting Started With Phalcon PHP

To get started with Phalcon, I already have my server stack setup with Ubuntu 16.04, Percona MySQL, Nginx, and PHP […]

February 21st, 2018

What is Phalcon?

Phalcon is a modern PHP framework with the typical feature set you’d expect. Database ORM, error handling, MVC architecture, and […]

February 20th, 2018

Setting Up a PHP Development Environment

If you do PHP development, moving to a PHP IDE is extremely beneficial especially when debugging. PHPStorm is a great […]