Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问如何加上H.264编解码库呢? #4

Open
ansonlo opened this issue Jan 12, 2017 · 2 comments
Open

请问如何加上H.264编解码库呢? #4

ansonlo opened this issue Jan 12, 2017 · 2 comments

Comments

@ansonlo
Copy link

ansonlo commented Jan 12, 2017

由于想ffmpeg支持h.264,请问是否在build 文件里加入相关参数,具体是???

@dxjia
Copy link
Owner

dxjia commented Jan 13, 2017

如果只需要 H.264 的解码,增加 --enable-decoder=h264 应该就可以了;
而如果还需要编码的话,就得自己另外下载 x264 的源码编译,然后在 ffmpeg 的 --extra-cflags 里 include x264 的头文件,以及 --extra-ldflags 里加上 x264 编出的库,这样就可以链接进去了。

@skindhu
Copy link

skindhu commented Feb 23, 2017

请问下,ffmpeg配置选项里已经有--enable-libx264,为什么还需要再单独下载x264的源码来编译呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants