如何使用 Django 创建视频文件上传表单?
我希望用户能够从计算机上传视频或直接从网络摄像头录制视频,然后使用表单填写其他信息。我正在用 Django 编写这个应用程序。
I want a user to be able to upload a video from their computer or record it right from their webcam, then fill out other information with a form. I'm writing this app with Django.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
直接从网络摄像头录制并不像上传现有视频文件那么简单。您可能需要研究众多视频流协议之一,并通过服务器(例如 red5< /a>.这种方法需要使用 Flash 或类似的东西。
Recording directly from the web cam is not as simple as uploading an existing video file. You may need to look into one of the many video streaming protocols and handle that via a server such as red5. This approach would require the use of Flash or something similar.
Django 文档应该能够帮助您处理文件上传:
http: //docs.djangoproject.com/en/dev/topics/http/file-uploads/
The Django documentation should be able to help you handle file uploads:
http://docs.djangoproject.com/en/dev/topics/http/file-uploads/
另外看看jquery uploadify。它对于大文件上传非常有用,因为它显示下载进度。
Additionaly have a look at jquery uploadify. It's pretty useful for large file uploads because it display the progress of the download.