将音频和视频与ffmpeg结合

We have audio.  We have video.  We appreciate each of those media on their own but you can create an awesome work of art if you combine the two.  After all, how could you watch a sports highlight video without setting the visuals to some obscure techno track?  Blasphemy.

我们有音频。 我们有视频。 我们对每种媒体都表示赞赏,但如果您将两者结合起来,就可以创作出精美的艺术品。 毕竟,如何在不将视觉效果设置为某些晦涩的技术音轨的情况下观看体育赛事的精彩视频? 亵渎

My favorite A/V utility, ffmpeg, allows you to merge an audio file and a video file into one brilliant piece of art:

我最喜欢的A / V实用程序ffmpeg允许您将音频文件和视频文件合并为一件精美的艺术品:


ffmpeg -i video.mp4 -i audio.m4a -c:v copy -c:a copy output.mp4


You can even use an animated GIF for the video piece:

您甚至可以为视频片段使用GIF动画:


ffmpeg -i video.gif -i audio.m4a -c:v copy -c:a copy output.mp4


Banter aside, there are many good cases for combining an audio track with a video track, many examples being seen on YouTube.  Happy media creation!

除了玩笑,将音频轨道和视频轨道结合起来的情况很多,在YouTube上可以看到很多例子。 媒体创作愉快!

翻译自: https://davidwalsh.name/combine-audio-video

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值