Your Digital Media Has Never Looked So Good

 
uxicorp
Posts: 36
Joined: Sun Apr 17, 2016 7:30 am

Re: Hosting for video files

Fri Jul 15, 2016 12:11 pm

Greetings,

I saw your post regarding your Vimeo infrastructure and it's intriguing. You said, "My solution was to build a stream server which uses header redirects to point users to the file."

How does this work? Do you know if there is sample code somewhere or a guide we could use to engineer our own solution? OR would you be willing to sell us the code?


Category5 wrote:
We too use Vimeo Pro for our Roku feed. When you're a pro user, you can visit the "Video Files" tab and grab the direct links for all the hosted files.

We had been using S3 with Cloudfront, but that became cost prohibitive. I was shocked to find Vimeo Pro was so cheap and would work, and did some testing where it actually ran very, very fast. Doing a wget on one of our Vimeo-hosted files, I am still in awe at how cheap it is.

The one thing with Vimeo is that the filenames have a ? in the name. My solution was to build a stream server which uses header redirects to point users to the file. This works GREAT for Roku but also our RSS feeds. Another nice thing is that it allows us to track a great deal of information about each and every view -- see https://status.category5.tv/. An easier solution might be to simply use YOURLS or another link shortener (to hide the ? from Roku, which tends to break things in some cases).

See http://v.cat5.tv/a/2hpFuOQ7/v/e/i/1410/q/hd/CAT5TV-383-Memories-of-Me-HD.m4v <- if you grab it with wget you'll see what's "actually" happening behind the scenes... but the inevitable endpoint is... you guessed it... Vimeo.
 
bwschulz
Posts: 4
Joined: Tue Mar 14, 2017 1:09 am

Re: Hosting for video files

Tue Mar 14, 2017 2:16 am

Hello, yes, I have found that also to be true that AWS S3 has served us reliably too - though Direct Publisher conversion shut down our Grande Projecte, pray thee only temporarily so that reliability of service hasn't been tested yet at Roku. So check this out - What I thought was interesting to note, after reading many posts about trouble with reading the JSON config files or retrieving content or getting brand assets, or rather failing to do all those tasks -- that right here, in this forum, for my posting profile, I found the "offsite Avatar option" in account settings which I tried to link to a well before posted image of your truly discouraged author, and that fetch failed in error from S3. I am sure it is an easy explanation to work around the problem but I find it an unfortunate timing that the Roku forum account profile photo replace feature failed to retrieve a simple 146x146pxl jpg from my open non locked down non intensive permissions guarded plain old image file bucket at S3 - so my avatar image remains poignantly empty.. the schulz 
 
Blackhawk
Posts: 69
Joined: Wed Jan 07, 2015 4:42 am

Re: Hosting for video files

Sun Mar 19, 2017 9:05 pm

Would putting a shortcut link to the download (like when using the videos from archive.org) work with Vimeo?
 
norcaljohnny
Posts: 10
Joined: Thu Apr 13, 2017 11:00 pm

Re: Hosting for video files

Thu Apr 13, 2017 11:58 pm

Honestly, I would consider just getting a dedicated server. A lot of places offer unlimited bandwidth and up to 4tb of data for under $130 per month.
I have been running servers and administrating them for about 15 years now. What I have noticed is  a lot of CDN's and 3 party hosting use load balancers that cap speeds and while it can be useful, initial load times are terrible. I have seen videos take up to 15 secs and at times more than that, just to get the vid playing. :/

At that point you might as well go with Google drive and upgrades at just $2 for 100gigs and $10 for 1tb.
There is a bandwidth cap, but it is high in volume and you would just need to learn their api..
Dont do dropbox as they do not stream in HD.

Google "cheap dedicated servers"
 
norcaljohnny
Posts: 10
Joined: Thu Apr 13, 2017 11:00 pm

Re: Hosting for video files

Fri Apr 14, 2017 12:13 am

Blackhawk wrote:
Would putting a shortcut link to the download (like when using the videos from archive.org) work with Vimeo?

The answer is NO.
The reason is unlike archive.org, Vimeo and places alike have extra coded added into the link, which alllows the link to stay good for a very limited amount of time, usually between 4 hours and 2 days and/or limited to the users ip address. 
So, you would have to either
A) Keep updating the stored links or
B) write a script that on user click retrieves a new code.
I use a simple php script that does the second. PHP because it is readily available on pretty much all hosting servers both commercially and on local machines.
Here is a sample php script which GETS the url link via a header("Location: URL")
<?php
$link = file_get_contents("type URL here");

preg_match_all(
    '/(http.*.m3u8)/', //this tells it to find and grab the m3u8 link

    $link,
    $otherthings, // will contain the article data
    PREG_SET_ORDER // formats data into an array of posts
);

foreach ($otherthings as $otherthing) {
    $link = $otherthing[1];


// clear out the output buffer
while (ob_get_status())
{
    ob_end_clean();
}

// no redirect opens link
header("location: $link");
}
?>
Last edited by norcaljohnny on Fri Apr 14, 2017 12:29 am, edited 1 time in total.
 
norcaljohnny
Posts: 10
Joined: Thu Apr 13, 2017 11:00 pm

Re: Hosting for video files

Fri Apr 14, 2017 12:26 am

bwschulz wrote:
Hello, yes, I have found that also to be true that AWS S3 has served us reliably too - though Direct Publisher conversion shut down our Grande Projecte, pray thee only temporarily so that reliability of service hasn't been tested yet at Roku. So check this out - What I thought was interesting to note, after reading many posts about trouble with reading the JSON config files or retrieving content or getting brand assets, or rather failing to do all those tasks -- that right here, in this forum, for my posting profile, I found the "offsite Avatar option" in account settings which I tried to link to a well before posted image of your truly discouraged author, and that fetch failed in error from S3. I am sure it is an easy explanation to work around the problem but I find it an unfortunate timing that the Roku forum account profile photo replace feature failed to retrieve a simple 146x146pxl jpg from my open non locked down non intensive permissions guarded plain old image file bucket at S3 - so my avatar image remains poignantly empty.. the schulz 

That could be because it is breaking the cross domain origin policy. You may need to add the site name/s of who can cross post from your account. Usually with a crossdomain.xml and it would look something like this.
"Access-Control-Allow-Origin: *" // this allows all sites
"Access-Control-Allow-Origin: domainA.com domainB.com" // this allows just the site/s named.
 
Blackhawk
Posts: 69
Joined: Wed Jan 07, 2015 4:42 am

Re: Hosting for video files

Sat Apr 22, 2017 11:36 pm

Will Livestream work on a Roku channel
 
User avatar
destruk
Posts: 2514
Joined: Sat Dec 18, 2010 4:58 pm

Re: Hosting for video files

Mon May 01, 2017 12:44 am

Blackhawk - since there is an official Livestream channel for Roku, I'd say yes.

https://channelstore.roku.com/details/29216/livestream
 
Blackhawk
Posts: 69
Joined: Wed Jan 07, 2015 4:42 am

Re: Hosting for video files

Wed Jun 07, 2017 10:55 pm

What URL i should use for Livestream? I tried the URL from the share panel
 
User avatar
destruk
Posts: 2514
Joined: Sat Dec 18, 2010 4:58 pm

Re: Hosting for video files

Fri Jun 09, 2017 10:19 pm

If that doesn't work, Livestream might know what they need to play streams on Roku...
 
stubbstarbuck
Posts: 33
Joined: Mon Apr 17, 2017 7:08 pm

Re: Hosting for video files

Mon Jul 17, 2017 9:36 am

brentonhouse wrote:
I understand that you can use Vimeo (and possibly YouTube) for hosting videos on Roku, but I don't know the endpoints that you would use for either of these hosts.  

Does anyone else here use Vimeo to host a video for a Roku Channel and if so, what endpoints are you using?

Vimeo Pro provides an HLS link that works very well. We've been using that for a few months without a hitch. It's very easy to integrate.
 
stubbstarbuck
Posts: 33
Joined: Mon Apr 17, 2017 7:08 pm

Re: Hosting for video files

Mon Jul 17, 2017 9:41 am

stubbstarbuck wrote:
brentonhouse wrote:
I understand that you can use Vimeo (and possibly YouTube) for hosting videos on Roku, but I don't know the endpoints that you would use for either of these hosts.  

Does anyone else here use Vimeo to host a video for a Roku Channel and if so, what endpoints are you using?

Vimeo Pro provides an HLS link that works very well. We've been using that for a few months without a hitch. It's very easy to integrate.

Here's working code for you for an episode object.

"id": "someuniqueidentifier",
              "title": "The title of the video",
              "content": {
                "dateAdded": "2017-04-15T22:21:37+00:05",
                "videos": [
                  {
                    "url": "https://player.vimeo.com/external/alongstringofcharacters",
                    "quality": "HD",
                    "videoType": "HLS"
                  }
                ],
                "duration": 3016
              },
              "thumbnail": "https://domain.com/image.jpg",
              "episodeNumber": 2,
              "shortDescription": "Basically the title. About this length to display well.",
              "releaseDate": "2017-04-15T22:21:37+00:05"
            }


Vimeo Pro is something like $150/yr. Once you open the video file in Vimeo, at the bottom of the Video navigation is a bunch of fixed external links. You can use the SD, HD, or HLS link in Roku.

Who is online

Users browsing this forum: No registered users and 3 guests