如何实施音视频合并程序? [英] How to implement video and audio merger program?

查看:99
本文介绍了如何实施音视频合并程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想制作一个可以接收视频和音频并将其合并的程序.视频类型或音频类型对我而言并不重要.我该怎么做?是否有为此提供的任何库?我知道有很多与此主题有关的程序,但我想学习如何实现这样的程序.

I want to make a program which takes video and audio and merges them. Video type or audio type is not important for me. How can I make this? Does any library exist for this? I know there are many programs about this topic but I want to learn how to implement such a program.

推荐答案

您要尝试做的技术术语是' 多路复用 ",通常称为"多路复用".

The technical term for what you are trying to do is 'multiplexing', and commonly referred to as 'muxing'.

FFmpeg 是一种多平台命令行工具,可以做到这一点,并在业界引起争议标准.许多项目将FFmpeg包装到库和GUI中.

FFmpeg is a multiplatform command line tool that does this, and arguable the industry standard. Many projects wrap FFmpeg into libraries and GUIs.

FFmpeg也是开源的,因此您可以下载代码并查看他们的工作方式. siad,它很大而且很复杂.

FFmpeg is also open source, so you can download the code and see how they have done it. That siad, it is very big and complex.

如果您对将单独的音频和视频文件混合到目标文件中的实际机制感兴趣,那么您将需要了解有关 编解码器 .

If you are interested in the actual mechanics of muxing separate audio and video files together into a destination file, then you will need to learn much about container formats and Codecs.

这篇关于如何实施音视频合并程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆