I have built out a system in Laravel that allows users to take an intro video and then post along with tests they have taken on the system. I am trying to see if there is any way to add background music to their video intro. Goal is to provide 3 separate background tracks, each 45 seconds long. This would then rest in the users intro page on the front end. I have not worked with this before but I am sure it is doable. Any suggestions?
Well, PHP itself can't do this, but there is software available that can do the heavy lifting for you like FFMPEG. These tools run on the server and you can call them as a command on your server to process the video. Do note that this might be slow and resource-intensive.