dongtanhe4607 2012-05-07 11:01
浏览 529
已采纳

ffmpeg两个音频,一个视频输出

Hi all I just installed ffmpeg and I'm quite new to it. managed to combine/merge audio and video file, but now I want to combine 2 audio files and one video into one output file. audio files are: .wav video file is: .flv output is: .flv

currently i have this code, what should I add to it:

system("$ffmpegpath -i audio1.wav -i audio2.wav -i video1.flv -y output.flv");

thank you!

  • 写回答

3条回答 默认 最新

  • doujiku1028 2014-07-10 17:41
    关注

    found the project and this is my solution to it:

    <?php
        $ffmpegpath = "ffmpeg.exe"; /////ffmpeg.exe path, I have it in the same folder
        $videoFile = "videoplayback.flv";
        $audioFile = "comment.wav";
        $targetVideo = "output.flv";
    
        //
        system("$ffmpegpath -i $audioFile -i $videoFile -y $targetVideo");
    ?>
    

    let me know if it helps!

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 有没有整苹果智能分拣线上图像数据
  • ¥20 有没有人会这个东西的
  • ¥15 cfx考虑调整“enforce system memory limit”参数的设置
  • ¥30 航迹分离,航迹增强,误差分析
  • ¥15 Chrome Manifest扩展引用Ajax-hook库拦截请求失败
  • ¥15 用Ros中的Topic通讯方式控制小乌龟的速度,走矩形;编写订阅器代码
  • ¥15 LLM accuracy检测
  • ¥15 pycharm添加远程解释器报错
  • ¥15 如何让子窗口鼠标滚动独立,不要传递消息给主窗口
  • ¥15 如何能达到用ping0.cc检测成这样?如图