简体   繁体   English

向视频添加音频

[英]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. 我使用html5进行了录制(没有音频),然后将视频上传到服务器,所以现在我的视频没有音频,但是我无法确定的是如何将音频添加到该视频中。

Please notice, all the videos uploaded are 10 seconds, and the audio also 10 seconds. 请注意,所有上传的视频均为10秒,音频也为10秒。

You can download FFmpeg static builds here: http://johnvansickle.com/ffmpeg/ 您可以在此处下载FFmpeg静态版本: http : //johnvansickle.com/ffmpeg/

Just upload the one suitable for your servers' OS (most definitely Linux) to your servers' app folder. 只需将一个适合您服务器操作系统(最肯定是Linux)的文件上传到服务器的应用程序文件夹即可。 When you set permissions to 700, you can just call the command line tool from your application. 将权限设置为700时,您可以仅从应用程序中调用命令行工具。

Basic PHP Example 基本的PHP示例

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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