Home  >  Q&A  >  body text

html5 - webapp中将录下的视频,照片上传服务器之前,需要如何处理(转变格式?),降低对服务器的压力?

webapp中,由于视频,照片体积比较大,考虑到在上传服务器时会很慢,不经处理由浪费资源,需要先进行怎样的处理再上传到服务器?主要考虑减小体积,加快传输速度

PHP中文网PHP中文网2718 days ago499

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 14:57:17

    First of all, it is impossible to process videos efficiently in a browser environment. Even if you do it hard, it will cause the page to freeze and consume a lot of time. It makes no difference to the user whether the time is spent on preprocessing or uploading. .
    Many professional video websites transcode the video after it is uploaded, or directly recommend users to process the video in advance on the upload page.

    reply
    0
  • Cancelreply