Class: BPL::Derivatives::CapabilityService
- Inherits:
-
Object
- Object
- BPL::Derivatives::CapabilityService
- Defined in:
- lib/bpl/derivatives/services/capability_service.rb
Instance Attribute Summary collapse
-
#ffmpeg_output ⇒ Object
Returns the value of attribute ffmpeg_output.
Instance Method Summary collapse
Instance Attribute Details
#ffmpeg_output ⇒ Object
Returns the value of attribute ffmpeg_output.
5 6 7 |
# File 'lib/bpl/derivatives/services/capability_service.rb', line 5 def ffmpeg_output @ffmpeg_output end |
Instance Method Details
#capture_output ⇒ Object
6 7 8 9 10 11 |
# File 'lib/bpl/derivatives/services/capability_service.rb', line 6 def capture_output @ffmpeg_output = Open3.capture3('ffmpeg -codecs').to_s rescue StandardError BPL::Dervivatives.base_logger.warn('Unable to find ffmpeg') @ffmpeg_output = "" end |
#fdk_aac? ⇒ Boolean
13 14 15 |
# File 'lib/bpl/derivatives/services/capability_service.rb', line 13 def fdk_aac? @ffmpeg_output.include?('--enable-libfdk-aac') || @ffmpeg_output.include?('--with-fdk-aac') end |