Hi, I am looking for code for ffmpeg for to merge two videos. I have advertising video (3 seconds) and some other tons of videos, so I need to merge advert video to the beginning of other videos. I will use exec or shell_exec for this, but not sure about this code, please, give me sample code if you know it. If there it is hard to do it with ffmpeg then recommend me other php, linux tool which can help me on merging videos.
This is probably more a ffmpeg question than php. See here for some guidance: http://www.linuxquestions.org/questions/linux-general-1/how-to-merge-2-avi-together-424988/ Once you know the ffmpeg command it's just a case of using exec() to call it.
ohh perfect, thank you very much But there is left one problem as all my videos are FLV files so is there are something similar "FLVMERGE" function? I don`t want to convert flv to avi then merge then again convert back to flv, it will take lots of time and resources.