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