I am trying to create a Roku channel that could stream video content from a Youtube Channel.
I am aware of a Linux command-line program (youtube-dl) that can let me programmatically download videos that I can potentially reference via Youtube video ids obtained by the Youtube API results. My issue with youtube-dl is that I am not sure if using it in conjunction with the Youtube API is in compliance with YouTube's terms of service. (https://developers.google.com/youtube/terms). If the above can legally be done, then my problem is solved.
I am not aware of any other way that I can use the Youtube API to get raw mp4 files or any other supported format (in the Roku player) that I can easily stream in the Roku channel that I am building.
Also, Roku does not support either Flash or HTML5 so I cannot really embed a Youtube video URL like in a web page, but Youtube has their own Roku channel, so I am sure there is a way to do this (maybe not to available to developers).
I am also aware of an app called Plex that can let a user import Youtube videos into their Roku. (This requires the user to install a plugin into their browser) https://www.youtube.com/watch?v=k9OaezB3zas. (I am not sure if the content of the Youtube video is being copied by Plex or if they are streaming directly from Youtube).
The media types supported by Roku are:
Video — MKV (H.264), MP4 (H.264), MOV (H.264), WMV (VC-1, firmware 3.1 only) Music — AAC, MP3, WMA, FLAC (firmware 5.3 and later), WAV (firmware 5.3 and later) Photo — JPG, PNG, GIF (non-animated)
Thanks.