PHP Video Editing and Streaming

柔情痞子 提交于 2019-12-10 12:06:25

问题


I am developing online video streaming website on PHP.

I need two functionalities:

  1. Need to add title/text at bottom of the video dynamically.
  2. Need to add background music to video dynamically.

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

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

Thanks.


回答1:


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.

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.

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.




回答2:


php doesn't provide any video oriented stuff to perform, but there is one CMS namely Kaltura, is designed and implemented in doing these kindaa stuff. Search it , download it and play it.




回答3:


You can make your own player in Flash and add a default watermark. You don't need PHP for that.



来源:https://stackoverflow.com/questions/1308377/php-video-editing-and-streaming

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!