在客户端网络上压缩视频 [英] Compress a video on client side web

查看:703
本文介绍了在客户端网络上压缩视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须将视频从前端网络上传到我的Django后端。

I have to upload a video from front-end web to my Django back-end.

我需要压缩视频才能上传。

I need to compress the video before to upload it.

因此,我需要在客户端(浏览器)上使用一些库(例如javascript库)来压缩视频并调用我的ajax函数来上传它。

So, I need some libraries (for example javascript libraries) to use on client-side (browser) to compress the video and call my ajax function to upload it.

这可能吗?

我们可以建议我使用类似javascript的库吗?

Can we suggest me something like javascript libraries to make this?

推荐答案

我找到了这个项目。它是javascript语言中FFMPEG解码器的转换。因此,您可以使用它来处理图像,视频和音频文件而无需将文件上传到服务器。

I found this project. It is a conversion of FFMPEG decoder in javascript language. So you can use it to work images, video and audio files without upload file to server.

主页: https://bgrins.github.io/videoconverter.js/

GitHub: https://github.com/bgrins/videoconverter.js

我还没有尝试,但是演示页面说它有效: https://bgrins.github.io/videoconverter.js/demo/

I have not tried yet, but the demo page says that it works: https://bgrins.github.io/videoconverter.js/demo/

这篇关于在客户端网络上压缩视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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