Reputation: 139
I have developed a website which allows users to upload videos which can be watched by other users. It all works fine apart from videos with a bigger resolution, will sometimes freeze. What is the best way to go about this? I am working on a function to resize the videos to 720p or less. I am also looking at CDN's. The website is written in asp.net/vb.net and uses a simple html5 video tag to play videos. I am experimenting with a CDN at the moment and I have changed my video path from https://www.example.com/videos to the nee cdn path.. https://example-13fc.example.com/videos but still my videos appear to freeze. Is there something more I need to do? Is there a company which can assist better with this than a simple cdn provider? Any help appreciated.
Upvotes: -1
Views: 98
Reputation: 1765
I think what you should do is look at the bitrate of the videos you are offering. If the bitrate is >> than the network connection - the video will stall. Since you cannot control your customer's network connections - it is best to make the videos as small as possible.
ffprobe is built into FFMPEG and will give you that value. I have a web based version of FFprobe:
https://www.streamclarity.com/probe?url= and it can report the bitrate of your video.
To make your videos smaller -obvioulsy smaller dimensions help - you can also look at lowering quality. Another great way to improve playback is video streaming: faster connections get high quality streams... slower connections get lower quality (but they play!). That way those with fast connections and big screens can still get HD or 4K videos.
Upvotes: 1