视频上传服务/磁盘 [英] Video uploading service / disk

查看:87
本文介绍了视频上传服务/磁盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个PHP网站,用户可以在其中发布图像和视频.

I have website in PHP whereimages and videos would be posted by users.

该网站将被托管用于小型目的,并具有带宽托管功能.

This site would be hosted on small purposes and bandwith hosting.

我想要的是将视频和图像上传到另一个主机/磁盘.我想这样做,是因为我想使用自己的视频播放器并在媒体上制作水印.

What I want is to uploading videos and images to another hosting / disk. I want to do that way because I want to use my own video player and make watermarks on media.

因此,在第二个主机/磁盘中-一段时间后将需要相当大的带宽和存储空间来处理网站上的流量.我知道这会花钱的.

So in the second hosting / disk - there would be needed after some time quite large bandwidth and storage to handle traffic on website. I know it gonna cost.

出现我的问题.

  • 第二次托管使用什么托管或技术 托管(将在其中存储图像和视频)?请提供我 一些链接和替代方法.
  • 从外部主机显示视频是否会出现问题(请 向我提供我必须在Google中写的内容以阅读有关技术的信息,或 东西)?
  • 我也在询问有关此主题的一般提示
  • What hosting or technology use for for this hosting second hosting(where gonna be stored images and videos) ? Please provide me some links and alternatives.
  • Will there be a problem to display video from external hosting(please provide me what I have to write in google to read about technology or something) ?
  • I am also asking for general tips in this topic

推荐答案

从您的答案中,我只能猜测您要为页面准备的最大同时访问量,这是有关如何处理此问题的最重要信息.

From your answer I can only guess which maximal simultaneous traffic you want to be prepared for your page, which is the most important information on how to handle this.

通常对于小型网站,甚至基本的托管服务都具有足够的带宽来传递图像,通常还可以传递视频.您可以通过为视频选择适当的编解码器和容器来降低带宽使用量.一个很好的资源是 HTML音频和视频的媒体格式| Mozilla .如今,即使在没有特殊视频播放器的情况下,也无需在观看之前下载整个视频,例如使用如Mozilla文章中所示的HTML5标签,当您选择正确的视频压缩和视频流的容器时.这样可以进一步降低带宽需求.

Typically for small websites even basic hosting offers come with enough bandwidth to deliver images and generally also videos. You can lower the bandwidth usage by choosing an appropriate codec and container for your videos. A good resource for that would be Media formats for HTML audio and video | Mozilla. These days it is no necessary to download a whole video before watching it - even without a special video player, using e.g. the HTML5 tags as shown in the Mozilla article, when you choose the right video compression and container the video is streamed. This lowers the requirements for your bandwidth even more.

但是如果您需要更稳定,可扩展的解决方案,例如经常访问的网站:

But if you have need for a more stable, scalable solution for e.g. a highly frequented web site:

出于交付带宽密集型内容的目的,通常使用商业性的内容交付网络(CDN). 内容交付网络|维基百科.

For the purpose of delivering bandwidth intense content, often commercial Content Delivery Networks (CDNs) are used. Commercial providers and technology for this are listed and described at Content delivery network | Wikipedia .

变体是反向代理,例如在此页面上反向代理|提供商Cloudflare 描述了其技术.因为我不想晋升任何提供者,所以我想向您指出Cloudflare并非无可争议,这可以从 Cloudflare:批评和争议| Wikipedia 反向代理通常比其他负载平衡器更容易设置,但是必须了解该技术不会遇到安全问题.该视频看到其他人的Steam帐户|汤姆·斯科特.反向代理顺便说一句.还有助于避免DDOS攻击.

A variant is a Reverse Proxy, where for example on this page Reverse Proxy | Cloudflare a provider describes its technology. Because I do not want to promote any provider, I'd like to point to you that Cloudflare is not indisputable, which can be seen from Cloudflare: Criticism and controversies | Wikipedia A reverse proxy is often easier to set up than other load balancers, nevertheless one has to understand the technology to not run into security issues. The technology and for what one has to care are described in this video Seeing Other People's Steam Accounts | Tom Scott. A reverse proxy btw. also helps with avoiding DDOS attacks.

此名称的整体名称是 Load Balancing . Wikipedia上有一篇不错的文章:负载平衡(计算机)|维基百科.

The overall name for this is Load Balancing. Wikipedia has a good article on it: Load balancing (computer) | Wikipedia.

顺便说一句.如果您的主要兴趣是在视频上加上水印,那么我强烈不建议您使用自定义视频播放器,因为大多数录制来自网站的视频的浏览器附加程序不会捕获屏幕,而是保存甚至缝合发送的视频文件.更好的概念是将水印直接包含在视频文件中.

Btw. if your main interest is overlaying the video with watermarks, I would highly discourage using a custom video player for that, as most browser addons that record video from websites do not capture the screen but save and sometimes even stitch the transmitted video files. A better concept would be to directly include the watermark in the video file.

这篇关于视频上传服务/磁盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆