谁能告诉我FFmpeg中所有AVCodec的pix_format支持? [英] who can tell me the support pix_format of all AVCodec in FFmpeg?

查看:69
本文介绍了谁能告诉我FFmpeg中所有AVCodec的pix_format支持?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

像标题一样,我想知道FFmpeg中所有AVCodec的支持pix_format.

Like the title, I want to know the support pix_format of all AVCodec in FFmpeg.

像mpeg1video一样,我知道pix_format支持的只是PIX_FMT_YUV420P.那么其他AVCode呢?在哪里可以找到关于它们的定义?

Like mpeg1video, I know the pix_format which support is just PIX_FMT_YUV420P. So what about other AVCode? Where I can find the define about them?

谢谢.

推荐答案

针对单个编码器运行

ffmpeg -hide_banner -h encoder=encoder_short_name

例如

ffmpeg -hide_banner -h encoder=libx264

第四行将有

Supported pixel formats: yuv420p yuvj420p yuv422p yuvj422p yuv444p yuvj444p nv12 nv16 nv21


在bash上,您可以运行


On bash, you can run

for enc in $(ffmpeg -hide_banner -encoders | grep -i "V[\.|F]" | \
             cut -s -f3 -d" " | tail -n +2); \
do ffmpeg -hide_banner -h encoder=$(echo $enc) | grep "Encoder\|pixel" >> encpxfmt.txt; done;

在文本文件中获取完整列表.

to get full list in a textfile.

这篇关于谁能告诉我FFmpeg中所有AVCodec的pix_format支持?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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