PHP视频编辑和流式传输 [英] PHP Video Editing and Streaming

查看:273
本文介绍了PHP视频编辑和流式传输的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用PHP开发在线视频流网站.

I am developing online video streaming website on PHP.

我需要两个功能:

  1. 需要在视频底部动态添加标题/文本.
  2. 需要将背景音乐动态添加到视频中.

PHP或任何可用的开源库是否有可能?

Is it possible with PHP or any available open source library?

任何人都可以指导我或提供此类库的链接吗?

Can anyone guide me or provide links to this type of library ?

谢谢.

推荐答案

使用PHP编辑视频是一个非常糟糕的主意.这个想法非常接近不可能.充其量您需要解码在php中会非常慢的视频.

Editing video with PHP is an extremely bad idea. This idea very closely approximates impossible. At best you would need to decode the video which would be brutally slow in php.

如果必须解决此问题,我将尝试在播放器中添加标题和背景音乐,而不是在视频文件本身中添加.如果要流式传输视频,则可能是您在使用Flash或其他客户端播放器.您需要编写播放器(或修改现有的播放器,有几个可用的播放器),以便在电影上方添加另一层作为标题和音轨.

If I had to tackle this problem, I would try to add the title and background music in the player, not to the video file itself. If you're streaming the video it is likely that you're using Flash or some other client-side player. You would need to write the player (or perhaps modify an existing one, there are several available) to add another layer over top of the movie for the title, and an audio track.

稍微麻烦一点,但是比用php重写视频要容易得多,那就是使用css和javascript在播放器顶部覆盖php生成的透明图像,并将音频嵌入页面中.本段包含一个可怕的想法.

Slightly more hare-brained, but still easier than rewriting video in php, would be to layer a transparent image generated in php over top of the player using css and javascript, and embedding the audio in the page. This paragraph contains a terrible idea.

这篇关于PHP视频编辑和流式传输的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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