-
Notifications
You must be signed in to change notification settings - Fork 30
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
Only include x264 and libvpx when they are needed #4
Comments
Hi @fcecagno, I'm the new maintainer of the ffmpeg cookbook and I hope to get back to you on this issue within the next few weeks... Kind regards, |
Thanks @djoos! |
Please let me know if you are interested in merge such improvement and I can send a pull request. |
Hi Felipe, I'm actually not too sure whether x264 and libvpx should be included (include_recipe) in this cookbook. IMO the default compile flags should also be as lean as possible... What do you think? Thanks in advance for your feedback! Kind regards, |
Yes, I agree that it's outside of the cookbook's scope and shouldn't be included at all. Also, in my case it will work. :) |
Hi there,
Thank you for this cookbook, it works really great. I have a suggestion that would make it a little better. Instead of just include the recipes x264 and libvpx, you could check if --enable-libx264 and --enable-libvpx are present in the compile flags - if they are not, there's no reason to include the recipes, right? Something as simple as the code below. Thank you.
if node[:ffmpeg][:compile_flags].include? '--enable-libx264'
include_recipe "x264::source"
end
if node[:ffmpeg][:compile_flags].include? '--enable-libvpx'
include_recipe "libvpx::source"
end
The text was updated successfully, but these errors were encountered: