PHP Classes

script to combine jpeg images and mp3 to a mp4 video

Recommend this page to a friend!

      Top level forums  >  PHP Specialists  >  General  >  script to combine jpeg images and...  
Subject:script to combine jpeg images and...
Summary:is it possible?
Messages:2
Author:Joseph Walters
Date:2010-04-20 16:08:02
Update:2010-04-21 04:20:08
 

  1. script to combine jpeg images and...   Reply   Report abuse  
Picture of Joseph Walters Joseph Walters - 2010-04-20 22:31:16
If I had a couple of source images - say image1.jpg and image2.jpg, also an mp3 file, and a datafile of some type the refernced the timing of how the 2 images should be converted into a video, is it possible server side?

Example

image0.jpg
image1.jpg
sound.mp3 (20 seconds long)
data.txt (contains a text like "11110000111110011100000011111000000111100001111110000011 etc etc")

If frame rate was set to 25fps and the 1's and 0's denote which image should be used on that frame (therefore 25 characters of the txt file are 1 second)

Then php is to use something like imagemagik/ffmpeg to compile the mp4 from the 2 images in a certain way denoted by the 1's and 0's in the text file, then attach the mp3 to it too (should be same length as data file)

Possible? or just sheer fantasy?


There is 1 reply in this thread, which is not being displayed.
Browsing this forum thread replies is available only to premium subscribers.


Go to the premium subscriptions page to learn how to become a premium subscriber and have full access to this forum.