Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
1kevin
Newbie

MP4 best practices: Cloud CDN and file details

Hi,

We're new to video, but are tasked with building a Roku Channel which will allow the user to view existing MP4/MOV files. They are being stored on Azure cloud storage with an CDN.

The MP4's are made with an AVC1 codec, and video content type of video/H264. 

A few questions:

* Is there anything we need to do on the cloud storage provider to ensure streaming is working?
* It seems like Roku might be downloading the entire video prior to playing, is that expected behavior for this file type? 
* Should we convert these to some other file format? The Roku developer documents simply list out the supported types, and MP4 is one, but are some preferencial to others?

I realize this is somewhat open ended, but if anyone else has any tips it would be very helpful. 

Thanks for your time!

 

 

0 Kudos
5 REPLIES 5
Baradanikto
Roku Guru

Re: MP4 best practices: Cloud CDN and file details

If you're new to developing a Roku channel, you should start with the Direct Publisher framework.  It has advantages and disadvantages, but, it depends on your goals.  DP does not require any coding.  However, if your channel is designed for subscriptions, DP is not a good choice.  You'll need to learn the BrightScript language if you plan on selling subscriptions to your channel.

FREE Windows desktop software for converting Direct Publisher channels to SceneGraph (SDK), for creating BIF (Trick Play) files, Roku (MRSS, JSON) feed files, and FireTV feed files @ GitHub/rrirower.
0 Kudos
1kevin
Newbie

Re: MP4 best practices: Cloud CDN and file details

Thanks, we've got a custom developed channel almost done, my questions were specifically around the media streaming.

0 Kudos
Baradanikto
Roku Guru

Re: MP4 best practices: Cloud CDN and file details

Any supported video type is ok.  Make sure that the video files are marked "public" access.

FREE Windows desktop software for converting Direct Publisher channels to SceneGraph (SDK), for creating BIF (Trick Play) files, Roku (MRSS, JSON) feed files, and FireTV feed files @ GitHub/rrirower.
0 Kudos
renojim
Community Streaming Expert

Re: MP4 best practices: Cloud CDN and file details

I don't have any experience with cloud storage (just my own local server), but for MP4s make sure the MOOV atom is placed at the beginning of the file.  Some encoders refer to this as "web optimization".  ffmpeg accomplishes this with "-moveflags faststart".

Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos

Re: MP4 best practices: Cloud CDN and file details

Many people store videos and music on cloud storage services. By storing your files in this way, you can access them from any of your devices with an Internet connection so that you can listen to your favorite songs or watch your favorite movies in any location. However, MP4 files are not supported by the most popular cloud storage services. The best way to store MP4 files on cloud storage is to use a service like https://fastupload.io/en specifically designed for this purpose. I keep many audio files there, and I can easily access them from any device.

0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.