Answer the question
In order to leave comments, you need to log in
How to organize automatic video generation from images with an audio track?
Is it possible to write a module using PHP that automatically generates a video according to the following scheme:
1) A product feed is loaded into the module with the following parameters: product name, photo (it should be possible to upload several photos), parameters, description, link.
2) For each position in the feed, a video (.mp4) is generated as follows: to the music, the speech synthesizer reads the name, parameters and description of the product in sequence, the images of the product with different effects are replaced in the video sequence - zooming in, moving away, etc.
3) All video files are uploaded to youtube on the store channel (there should be a field in the module settings indicating the channel), the video description contains text that can also be set in the module settings, and a link to the product (a variable for each video).
4) Product video from youtube is embedded in the product card on the "Product video review" tab.
An example of such a generated video: https://www.youtube.com/watch?v=OaDAlIg711g
Answer the question
In order to leave comments, you need to log in
Videos can be generated using ffmpeg , which is a standalone program that runs on the command line. There is a php wrapper for ffmpeg, but it doesn't make things easier. It is better to generate the whole command in php with parameters, and execute it via exec() .
For the video in the example, you will also have to specify the type of effect for each frame:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question