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

Only include x264 and libvpx when they are needed #4

Open
fcecagno opened this issue Mar 12, 2013 · 5 comments
Open

Only include x264 and libvpx when they are needed #4

fcecagno opened this issue Mar 12, 2013 · 5 comments
Assignees

Comments

@fcecagno
Copy link

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

@djoos
Copy link
Member

djoos commented Jan 4, 2014

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,
David

@fcecagno
Copy link
Author

fcecagno commented Jan 4, 2014

Thanks @djoos!

@fcecagno
Copy link
Author

fcecagno commented Jan 4, 2014

Please let me know if you are interested in merge such improvement and I can send a pull request.

@ghost ghost assigned djoos Jan 4, 2014
@djoos
Copy link
Member

djoos commented Jan 4, 2014

Hi Felipe,

I'm actually not too sure whether x264 and libvpx should be included (include_recipe) in this cookbook.
For instance: I've used the FFMPEG cookbook with the Fraunhofer AAC in the past (recipe: libfdk_aac::source & compile flag: --enable-libfdk_aac) - but IMO the inclusion of x264/libvpx/libfdk_aac and many other potential compile flag combos are outside of the actual ffmpeg cookbook's scope. It would just get too cluttered...

IMO the default compile flags should also be as lean as possible... What do you think?

Thanks in advance for your feedback!

Kind regards,
David

@fcecagno
Copy link
Author

fcecagno commented Jan 5, 2014

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. :)

@djoos djoos mentioned this issue Aug 28, 2015
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

2 participants