简体   繁体   中英

Adding audio to a video

I am trying to do a website which will record your video, remove the audio and add an audio to the uploaded video.

I did the recording (without audio) using html5, and I uploaded the video to the server, so now I have video without audio, but what I cant figure, is how to add the audio to this video.

Please notice, all the videos uploaded are 10 seconds, and the audio also 10 seconds.

You can download FFmpeg static builds here: http://johnvansickle.com/ffmpeg/

Just upload the one suitable for your servers' OS (most definitely Linux) to your servers' app folder. When you set permissions to 700, you can just call the command line tool from your application.

Basic PHP Example

<?php
$output = shell_exec('./ffmpeg');
echo "<pre>$output</pre>";
?>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM