Heroku - does it support HTTP Live Streaming? - ruby-on-rails

I have a Rails 4 application that is deployed by Heroku servers. To serve videos (stored on Amazon S3 servers), I've decided to implement HTTP Live Streaming. While any web server can be configured for HTTP Live Streaming, does anybody know if Heroku servers have been set up to support Apple's adaptive bitrate streaming solution?
For more info, see "Configuring a web server" at the following -https://developer.apple.com/library/ios/documentation/networkinginternet/conceptual/streamingmediaguide/DeployingHTTPLiveStreaming/DeployingHTTPLiveStreaming.html#//apple_ref/doc/uid/TP40008332-CH2-SW3
Thanks!

Here's a good SO answer that describes how HLS works. You'll notice that there's nothing special about the files involved; just a playlist of video segments at different bitrates and the client decides which segment at which bitrate to load. These video files and associated playlist file can be stored and accessed directly from S3, or any other basic web server for that matter.
You do have to encode the different streams, but this can be done locally, on your server, or through some other service like Amazon Elastic transcoder, and it only has to be done once per video file.

As it turns out, Heroku servers do allow for HTTP Live Streaming.

Related

Rackspace cloud files client side uploads

I am using Rackspace cloud files as my CDN. My app is image heavy and right now, all image are being uploaded to my server and from there being uploaded to cloud files.
This I think is redundant and it's waste of my server resources. I think a better solution would be for me to give the client a URL to upload and then client can upload to the URL (bypassing my server completely) and telling the server everythings done.
I am wondering if this is possible using cloud files and how it can be done. I am using Rails on server side btw.
Thanks
You may use the FormPost feature of Rackspace Cloud Files.
FormPost lets you offer your website audience a way to upload objects to your Cloud Files account through a web form.
A CDN Container has four URIs associated with it: iOS Streaming, Streaming, HTTPS and HTTP.
Can't you use the, say, HTTPS URI to allow your clients to upload directly to the Container?

Amazon s3/Cloudfront Ruby on rails video streaming

I am building a ruby on rails website that will store and stream videos. I am using carrierwave and amazon s3 to upload and store the videos. If I am not mistaken, I can stream the files directly from s3 to my website.
So can anyone explain why does it seem that everyone uses cloudfront along with s3. What are the benifits?
What will be the average cost of such a storage/serving solution.
I will be streaming the videos via html5 so i will not be looking at encoding solutions
The main advantage to CloudFront is that it's a CDN. So the content is positioned closer to your customers, rather than just in Amazon's main data stores. You can use CloudFront with or without S3. It has a concept of an origin, which is basically the master server for your content. That master server can be S3 or a non-Amazon server.
For pricing, you should look at the CloudFront pricing details, and optionally the pricing for S3 (if you use that as origin).
You can use the calculator to estimate the actual cost. Let us know if you want help with that.

How can you test the Youtube API without pushing to your live production server?

Since the Youtube API requires that you run your files on a webserver rather than locally (http://code.google.com/apis/youtube/js_api_reference.html#GettingStarted) how can you test the API without pushing it to your live production server?
I'm using Ruby on Rails hosted on Heroku.
Note: To test any of these calls, you must have your file running on a webserver, as the Flash player restricts calls between local files and the internet.
That does not sound like it needs to go to a production server. I am not familiar with Flash, but http://localhost/test.html (as opposed to file://test.html) probably works. And even if not, any old test server will do.

Amazon Cloud Media Server Streaming Help

Can someone PLEASE help me with setting up Adobe Media Server Streaming on Amazon Cloud?
I am reading whole day about it, about how to set it up on "regular" machines, but I can't find anywhere how to configure it on Amazon Cloud... After whole day reading I can say that I am still at start, don't know anything, and totally lost...
Can someone just point me in right direction? I don't know anything about Cloud servers, and working with this platforms...
So can anyone just point me where to start?
I need Adobe Media Server Live Streaming for HTML5 streams... I know HTML5, know how to make video element and everything, but I don't know how to start server...
Thankful for any help!
If you're using HTML5, you will not be able to use the RTMP streaming type in cloudfront. Don't worry about using the Adobe Media, or anything like that. Just look at hosting the files in S3 first, get the files loaded to that and pull them down in your HTML5 tag. Then, if you want cloudfront, you can easily add that and use that moving forward.
If you end up using a flash client to play the video, like the JW player, you could then setup a streaming cloudfront instance and utilize the RTMP streaming.
If you need to only stream existing content, AWS CloudFront runs Adobe Media Servers for files stored in S3 at no additional cost. The CloudFront term for using their Adobe Media Servers is "Streaming Distributions".
The Getting Started with CloudFront guide outlines setting up up streaming distributions. The Where Do I Go From Here page has links to several how-to articles.

How to connect wowza with symfony or php

I am diong a video playing application in symfony.i want to convert the video in to different format while uploading the video in to server. How to connect this video with wowza server to convert the video in to different formats in symfony framework or php. I am new in symfony. I think you will give a good idea about how is it possible with symfony or php. Also i have some doubts, Is it possible with codeigniter framework?. Why wowza server prefer symfony framework more than other frame works , to connect with wowza server ?.
First off you try searching for Symfony or Code Igniter plugins to connect to Wowza. (which probably don't exist).
If they don't exist, you will have to write it yourself. Which is analyzing what you want to happen when you upload a video, and them implementing it.
So, let's say the video is uploaded to <your symfony dir>\uploads, which commands would you have to execute (on the server) to get them in Wowza.
(I have no experience with video hosting on wowza, only retrieving data from a wowza server using the built-in wowza webserver.)

Resources