Media Tutorials
Web Audio API
The Web Audio API allows developers to load and decode audio on demand using JavaScript. The more I evaluate awesome games for Firefox OS TVs, the more I get to learn about these APIs that I normally wouldn't touch. The following is a very basic introduction to the WebAudio API...
How to Test Firefox OS Apps on TV
One of my responsibilities in my new role in Partner Engineering at Mozilla is testing HTML5-powered apps and games on Panasonic televisions. The television in my office, a beautiful 60" 4K Ultra HD beast, is the perfect device for the job. But how do I get the app...
Convert Image to ASCII Art with Node.js
There are many people out there that don't appreciate ASCII art; we call those people "idiots". ASCII art has been used forever and remains, in my opinion, a feat of programming and creativity. There's a project called image-to-ascii which doesn't just create ascii art but does so from...
Convert PSD to PNG with Node.js
Automating and manipulating media is a fascination of mine, partly because I don't understand the magic behind it and partly because the idea of turning one thing into another is fun and useful. That latest media tool that has piqued my interest is a JavaScript tool called psd.js. psd.js...
Apple TV 4 vs Roku 4
Almost three years ago I wrote a post about how I "cut the cord" and went to exclusively online TV content providers. I bought a Roku and Apple TV, both "generation 2", and reviewed my likes and dislikes about both. Much has happened in this...
FileReader API
As broadband speed continues to get faster, the web continues to be more media-centric. Sometimes that can be good (Netflix, other streaming services), sometimes that can be bad (wanting to read a news article but it has an accompanying useless video with it). And every social service does...
Focused Image Cropping with smartcrop.js
Images tend to make any page more engaging, especially when done right. The problem is that automating image creation and sizing can be a very difficult task, especially when the image is uploaded by a user -- who knows what format, size, and resolution the image will...
Remove Audio From Video
Sometimes I want to display live motion without the audio, since the audio is either bad quality or it's just extra load, which is especially important on mobile. You could probably argue converting the video to GIF is more appropriate, but GIFs can be larger and more taxing on...
Convert Video to mp3
Let's all be honest for a moment: we've all ... not paid for ... music. Whether it was via a file sharing app like Kazaa or Napster, or it was downloading and seeding on bittorrent, or maybe even downloading a music video and ripping its audio...
Combine Audio and Video with ffmpeg
We have audio. We have video. We appreciate each of those media on their own but you can create an awesome work of art if you combine the two. After all, how could you watch a sports highlight video without setting the visuals to some obscure techno track?