Convert Quicktime (MOV) to Mpeg4 (MP4) in C#
I came across CloudConvert today, and I think this is the coolest thing since sliced bread. If at one point sliced bread was cool.
With a couple of lines of code you can convert a MOV (Quicktime) video to the more ubiquitous Mpeg 4 (Mp4) format, and then drop the file back to Amazon S3 for playback.
WebClient wc = new WebClient();
string strUrl = “https://api.cloudconvert.org/convert?”;
strUrl += “apikey=[YOUR KEY HERE]”;
strUrl += “&input=download”;
strUrl += “&output[s3][accesskeyid]=[YOUR KEY HERE]”;
strUrl += “&output[s3][secretaccesskey]=[YOUR KEY HERE]”;
strUrl += “&output[s3][bucket]=video”;
strUrl += “&output[s3][region]=eu-west-1”;
strUrl += “&output[s3][acl]=private”;
strUrl += “&download=inline”;
strUrl += “&inputformat=mov”;
strUrl += “&outputformat=mp4”;
strUrl += “&file=http%3A%2F%2Fiyourserver.com%2Fvideoupload%2Fsomevideo.mov” ;
wc.DownloadString(strUrl);
Once the call returns, then the video will have been placed in your S3 Bucket ready to be played back.
No more Apple-only videos!