开发者

Main difference between encoding and decoding of a video file

开发者 https://www.devze.com 2023-02-08 04:02 出处:网络
What is the main difference? Suppose i have a vide开发者_开发问答o in the format .flv and i want to convert it to format .h264 using avcodec.dll. Will I be encoding or decoding it?

What is the main difference? Suppose i have a vide开发者_开发问答o in the format .flv and i want to convert it to format .h264 using avcodec.dll. Will I be encoding or decoding it? I am really confused. Any clear answer will be appreciated.


there're two types of video formats - uncompressed (raw video formats like RGB or YUV or whatever else) and compressed (like H.264 or WebM etc.). typically there's no direct transcoding from one compressed format to another, so you need to use common denominator - raw video (not compressed). You have to decode (decompress) it and then encode (compress) to another format.

for analogy - think you have zip archive and you need to make it rar archive - first you'll unzip your file(s) and then compress by rar


You will probably be transcoding it.

If not, then you will first decode it, and than encode it again.

0

精彩评论

暂无评论...
验证码 换一张
取 消