How Google have made converting videos for iOS a whole lot easier

Posted: August 23, 2013 in Apple Apps, Audio, General, Google, iOS, iPad, iPhone, Software
Tags: , , , , , , , , ,

Up until now, if you wanted to play a downloaded video on your iPhone or iPad, you would either have to download an Apple-friendly MP4 version or convert it to one.

Apple’s iPhone 5 specification webpage states that it will natively play H.264 video up to 1080p, 30 frames per second, High Profile level 4.1 with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4 and .mov file formats’.

The problem with this is that for the vast majority of downloadable HD videos, MKV is the container of choice. It has become so popular because of it’s flexibility – it can contain almost any codec for both video and audio tracks – indeed it can have multiple of either track – and has excellent subtitle support too.

Most MKV files will contain an H264 video track which iOS can play, but the MKV container is not recognised and the audio track is invariably not in the preferred stereo AAC format. An MKV video file is simply not recognised by iOS.

The options until a couple of years ago were to either convert the entire video into a recognised file format or ‘remux’ it. There are a myriad of encoding applications available for both the OSX and Windows, but are usually easy to use paid-for applications or perplexing free ones.

Converting the entire file loses quality on both the audio and video tracks and to make matters worse could take a very long time to accomplish on all but the fastest machines.

Remuxing on the other hand is a clever process whereby the application separates the H264 video track from the audio track, and then converts only the audio stream to AAC before stitching them back together again in a friendly MP4 format. Result? No loss of quality for the video, and a playable file.

A few years ago, Apple relaxed the policies on the App Store to allow third party developers to publish their own video players. These have until recently only been able to play unofficial formatted files in software. What this means is that instead of using the dedicated video chip, it uses the CPU to decode it. This can result in a lot of dropped frames, making the video appear jerky and also massively decreases battery life.

Around a year ago, Dolby, angered by lack of money generated through licensing Dolby Digital decoders, requested Apple to stop any developers providing apps on the App Store that could decode Dolby Digital soundtracks without paying Dolby a licencing fee. Apple responded, and all apps that could play Dolby Digital soundtracks were pulled and were only allowed to be republished once either the functionality was removed or the developer paid Dolby a licensing fee.

Google however, seems to have come to the rescue.

It was discovered this week that if you upload an MKV file to Google Drive in what seems like ANY format, including soundtracks in DTS, you can then download (or stream) it using the Google Drive app on iOS immediately. These files are played in the stock video application, meaning that GPU accelerated decoding is being used, keeping battery drain to a minimum. It would seem that Google is quite happy to do the remuxing/converting for you in real time without any cost to you using their servers. Quite why Google is willing to do this is up for debate, but for now, let the good times roll and stop converting!

 

Written by our guest writer Phil Carroll.

 

340225-google-drive

Advertisements
Comments
  1. mitchell fox says:

    Hello. I just started using google Drive. I uploaded several differetn videos to it, including one in avi and one in mkv. When I open the Google drive app, and then mydrive on my nook hd (running latest nook os but not rooted0, the drive folder only shows the avi video. I tried converting the mkv to mp4 and uploading it again but Google drive app/mydrive on my nook hd still only shows the AVI in the folder.

    • The Tech Spy says:

      It only works by uploading in Drive and then playing again in the Drive app

      • mitchell fox says:

        Thanks. That is what I did. Uploaded it in Drive on my pc (copied it to the drive folder drive had installed on my pc). Then opened up the drive app on my nook hd, and only one video (the AVI one) showed up in the folder. I neglected to mentioned that I later tested by opening up the drive app on my iphone 5 (running ios 7.1) and all the video files I had put in dirve on my pc showed up in the folder, including the mkv one. I guess I answered my own question. It’s a problem with the nook hd

      • The Tech Spy says:

        I think you are right there, looks like it is just for anything in iOS-sphere.

  2. Opening the video files in Google drive in the Safari och Chrome browser directly (do not use the Google drive app) on Ipad starts a stream with perfect quality compared to the app version of the same video. However, when attempting to Airplay the video I get an error message from Apple tv that says something like “the video cannot be played, try again later”. Has anyone any suggestion what is wrong?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s