ffmpeg

如果一个视频只有一个声道有声音,如何通过串流让左右声道都能听见声音呢?

  1. 安装ffmpeg

  2. 从视频中提取声音

    ffmpeg -i video.mp4 -vn a.mp3

  3. 单声道混合成双声道

    ffmpeg -i a.mp3 -filter_complex channelsplit=channel_layout=stereo out.mka

  4. 视频加载外挂声音文件

截取视频片段

ffmpeg -ss 00:00:00 -t 02:55:00 -i /Volumes/sed/Class177.mp4 -vcodec copy -acodec copy /Volumes/sed/Class17.mp4

捧个钱场?