ffmpeg - 支持转换器的多种文件格式如何工作?

标签 ffmpeg architecture converter imagemagick-convert avconv

ffmpeg/avconv、imagemagick convert 等软件。

他们是否使用中间格式:

format1 -> I. F.
format2 -> I. F.
I. F. -> format2
I. F. -> format3
...

或者他们是否有一种方法可以在每种支持的格式之间进行转换:
format1 -> format2
format1 -> format3
format2 -> format1
format2 -> format3
...

最佳答案

来自 ffmpeg documentation :

The decoder produces uncompressed frames (raw video/PCM audio/...) which can be processed further by filtering. After filtering, the frames are passed to the encoder, which encodes them and outputs encoded packets. Finally those are passed to the muxer, which writes the encoded packets to the output file.

The transcoding process in ffmpeg for each output can be described by the following diagram:

 _______              ______________
|       |            |              |
| input |  demuxer   | encoded data |   decoder
| file  | ---------> | packets      | -----+
|_______|            |______________|      |
                                           v
                                       _________
                                      |         |
                                      | decoded |
                                      | frames  |
                                      |_________|
 ________             ______________       |
|        |           |              |      |
| output | <-------- | encoded data | <----+
| file   |   muxer   | packets      |   encoder
|________|           |______________|

关于ffmpeg - 支持转换器的多种文件格式如何工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48594725/

相关文章:

ffmpeg - 来自相机的 H.264 视频文件大小远大于 x264 输出

ffmpeg - 管道 HTTP 响应

web-services - WS-CDL的实际使用

class - 如何设计一个版本转换器(Json.net),在没有太多代码污点的情况下将非常旧的版本处理为新版本

jsf - 转换器="entityConverter"与转换器="#{entityConverter}"的区别

wpf - 我总是需要为日期格式编写转换器吗?

FFMPEG 4.2.4,Python 3.9 : "ffmpeg: error while loading shared libraries: libopenh264.so.5: cannot open shared object file: No such file or directory"

从输入复制编解码器时,ffmpeg hls muxer 在主播放列表中缺少编解码器信息

java - Spring data Redis 到 Elastic Cache 连接 list

PHP - 将字符串转换为 unicode