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

Support optional x264 dependency #7

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Conversation

haileys
Copy link

@haileys haileys commented May 1, 2020

This PR adds optional support for x264. It's disabled by default for licensing reasons, so users of this crate must opt in to x264 support by enabling the gpl and x264 features.

This pull request depends on the pkgconfig manifest PR over at imager-io/x264-dev#1

[dependencies]
libc = "^0.2"
num_cpus = "1.11.1"
x264-dev = { path = "../x264-dev", optional = true }
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This relies on unmerged/unreleased changes upstream in imager-io/x264-dev#1 and needs to be pointed at a released version before we can merge this PR

@colbyn
Copy link
Member

colbyn commented May 3, 2020

Interesting, initially when I wrote this library it was for the purpose of container muxing/demuxing and general decoding, and so in conjunction with keeping it self contained I never thought about supporting x264 for AVC encoding. Also seemed like I would be implementing the build stuff twice rather than use the x264 crate as you proposed.

Nice work :)

@colbyn colbyn mentioned this pull request May 26, 2020
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

Successfully merging this pull request may close these issues.

None yet

2 participants