php - How to extract image from google video? -


Images for each YouTube video are hosted on their servers. You can image an image of any frame and display it on your site. can do. I want to do this with other video sites without the use of FFMPPG because my shared hosting service will not let me do that.

Please give me a suggestion on how I want to do it in PHP

Will not work, at least two conditions will be given:

  1. Video sites do not provide an API for you to remove arbitrary frames from the video. If they do, then your solution will be video provider specific.
  2. You do not want to write your own video decoder for codec (for example H.264) in PHP. Note that this will be a very difficult task and the decoder will actually slow down if PHP is fully implemented. Point 1 is rather impossible, at least I do not know of any video site. It does this. Point 2 is really a lot of work, I can say that the deep knowledge of the video codec Without it it is impossible.

    So I think your best starting point is to leave this feature or the hoster who gives you FFPAP.


Comments