WWBN / AVideo

Create Your Own Broadcast Network With AVideo Platform Open-Source. OAVP OVP
https://avideo.tube/AVideo_OpenSource
Other
1.91k stars 972 forks source link

ROKU #4128

Closed techiesces closed 3 years ago

techiesces commented 3 years ago

I am not sure if this exists or not as I know of the feeds url but it does not seem to work for roku.

It seem that in order to setup a roku channel I need an rss feed that is called an MRSS feed that matches their requirements. Does this already exist or is there a way to make such a thing? https://developer.roku.com/docs/specs/direct-publisher-feed-specs/mrss-dp-spec.md

I included the spec doc for roku for guidance.

I have bought a few plugins and plan on buying more fyi. I have built my own server located at https://viewys.com as an alternative to YouTube. Thanks for all your help!

bbyrdhouse commented 3 years ago

I'd also like more info on this ... I've been exploring developing a Roku app to accompany the website. If anyone has any experience or advice ...

techiesces commented 3 years ago

In order to have an MRSS feed the following components must be there:

    Item
        guid*
        pubDate*
        media:title*
        media:description*
        media:category*
        media:keywords*
        media:thumbnail*
        media:content*

Currently I feel some of the elements are missing from the feed url, like Category and Content. Atleast that is the error reports I get from my roku test channel. Also I am not sure if any ports need to be open or not in order to supply the feed to roku.

The feed I am using is https://viewys.com/feed/

Here are my roku errors

2 items have error: No valid items were found in the feed: No content found in given stream 12/09/2020 03:07PM » 614332.pending.en » 614332.pending.en

12 items have warning: No content.

I would be happy to pay for assistance or a plugin to make this work. Thanks.

DanielnetoDotCom commented 3 years ago

MRSS updated, but you should use https://viewys.com/mrss/

DanielnetoDotCom commented 3 years ago

For example, this is the site MRSS https://demo.avideo.com/mrss

this is a channel MRSS https://demo.avideo.com/channel/TheAdminChannel/mrss

techiesces commented 3 years ago

Ah yes, nice. Thank you sooooo much! Is there a update or refresh I need to do on my end to create this file. The mrss feed file does not yet exist on my website. using https://viewys.com/mrss/ brings me to a 404 error page not found.

DanielnetoDotCom commented 3 years ago

Here https://github.com/WWBN/AVideo/wiki/How-to-Update-your-AVideo-Platform

techiesces commented 3 years ago

Oh ok, I thought the internal update version would work. My folder name is AVideo instead of Youphptube... or atleast I do not have a directory by that name. Do I pull into the AVideo folder instead? cd /var/www/AVideo/

Correction, nothing in the html folder but an index file only.

UPDATE I did a git pull in /var/www/AVideo directory and it worked. Just FYI my directory tree does not match your instruction for some reason.

techiesces commented 3 years ago

UPDATE

Two errors from ROKU Dashboard regarding mrss feed.

Required content duration missing or invalid. Duration must be greater than 0.

and

Thumbnail must be 16x9 aspect ratio, at least 800w x 450h, and either in JPG or PNG format. UPDATE I fixed the few problem thumbnails. Since the video was in 4:3 format the thumbnail generated automaicly a 4:3 thumbnail rather than a 16:9 one (Is there a way to force the thumbnails to be 16:9 format when uploading videos through encoder?)

techiesces commented 3 years ago

UPDATE BTW, works perfect with the Amazon Creator for FireTV. Added mrss feed into creator and it pulled everything perfectly and works well. Here is the shareable preview which will expire in 100 days https://creator.amazon.com/G3YMGV8PrD/share

Have not checked appleTV yet. Not sure why ROKU being so stubborn with the duration issue.

techiesces commented 3 years ago

UPDATE

So apparently for ROKU the duration is not optional part of the media content.

url | Required | The URL of the video file duration | Required | The duration of the video (in seconds) bitrate | Optional | The bitrate of the file. Must be provided if multiple single bitrate (e.g., MP4) files are provided. lang | Optional | The original language of the video

Here is an example below

media:content url="https://example.org/videos/your-video-id.mp4" duration="74.74" />

So one of my feed entries are

Merry Christmas

Video From tommyvideo https://pixabay.com/users/tommyvideo-3092371/?tab=videos

Christmas Rap by Kevin MacLeod
Link: https://incompetech.filmmusic.io/song/3505-christmas-rap
License: http://creativecommons.org/licenses/by/4.0/

Would have to add duration I am guessing sourced from length variable you already have but not sure as this video is only 15 seconds long.... Merry Christmas

Video From tommyvideo https://pixabay.com/users/tommyvideo-3092371/?tab=videos

Christmas Rap by Kevin MacLeod
Link: https://incompetech.filmmusic.io/song/3505-christmas-rap
License: http://creativecommons.org/licenses/by/4.0/

DanielnetoDotCom commented 3 years ago

Please check this update and share the results

bbyrdhouse commented 3 years ago

@techiesces - could I ask, are you using a ROKU template or are you simply using the their API?

techiesces commented 3 years ago

@DanielnetoDotCom Duration issue solved. Still having a weird issue with thumbnails. I need to look into it a little more to see what it is asking for... it's claiming it can't download the thumbnails of most of the videos. Not sure why it says that. I will get back to you on that, but at-least the duration issue is solved.

@bbyrdhouse It is direct publishing using their template allowing you to simply feed a mrss url to them. Amazon's FireTV has the same thing. They are easy to setup and once set there is nothing else you need to do as everything is injected via your mrss feed. Here is the link to Roku channel management https://developer.roku.com/developer-channels/channels and here is the FireTV app creator, just select rss feed. https://creator.amazon.com/projects/new

I have not checked out appleTV yet to see if they have something similar.

techiesces commented 3 years ago

@DanielnetoDotCom Yeah something changed overall with thumbnails because they are not pulling into FireTV either anymore either. I checked and for some reason the thumbnails are all missing except the first video on the list, which would have been the last one uploaded. Maybe the url changed in directory? When I go into the mrss feed and directly goto each thumbnail they are blank. Like this https://viewys.com/videos/_YPTuniqid_5fd2e67ccb7b56.53419641_roku.jpg

Is there a way to refresh all these?

DanielnetoDotCom commented 3 years ago

The images are rollback for mrss.

I guess roku needs a specific feed, try this https://tutorials.avideo.com/roku.json as a roku feed

techiesces commented 3 years ago

@DanielnetoDotCom Sorry, what I mean is that the images are missing completely. Even on your website. The references to the thumbnails don't exist. https://tutorials.avideo.com/videos/_YPTuniqid_5fd22e74199722.29706653_roku.jpg Check it and see for yourself. It is not a mrss versus json issue... Although it is nice to also have a json file as well.

DanielnetoDotCom commented 3 years ago

Please check now

techiesces commented 3 years ago

ALL WORKING I checked both roku and amazon firetv and everything is syncing perfectly. Roku may error in future if any new video thumbnails come through not in 16:9 format. That is all, but otherwise we are good to go! Thanks!

DanielnetoDotCom commented 3 years ago

Please delete all of your roku.jpg files;

the files generated in the previous version were wrong. now it should be fine

techiesces commented 3 years ago

👍🏻 Thanks!

techiesces commented 3 years ago

Reopening for a small issue that requires a manual fix.

I had three videos uploaded from a phone that did not match the 16:9 format and therefore the thumbnails that generated were not in 16:9. While it does not interfere with the FireTV channel, it does throw an error to the Roku channel. Here is the error for your reference.

3 items have error: Thumbnail must be 16x9 aspect ratio, at least 800w x 450h, and either in JPG or PNG format.

I can manually go in and make 16:9 jpeg thumbnails myself and clear the errors, but was hoping or wondering if there is a way to push a 16:9 formatted thumbnail automatically when a video is uploaded.

Thanks.

DanielnetoDotCom commented 3 years ago

It should be automatically converted.

can you please check your roku image size?

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.