Class: Abrizer::ProgressiveMp3
- Inherits:
-
Object
- Object
- Abrizer::ProgressiveMp3
- Includes:
- DebugSettings, FilepathHelpers
- Defined in:
- lib/abrizer/progressive_mp3.rb
Overview
TODO: Allow MP3 to be created from the adaptation audio
Instance Method Summary collapse
- #create ⇒ Object
- #ffmpeg_cmd ⇒ Object
-
#initialize(filepath, output_directory) ⇒ ProgressiveMp3
constructor
A new instance of ProgressiveMp3.
Methods included from DebugSettings
Methods included from FilepathHelpers
#adaptations_filepath, #all_media_paths, #audio_filepath, #audio_filepath_fragmented, #basename, #canvas_filepath, #canvas_partial_filepath, #captions_filepath, #data_filepath, #data_partial_filepath, #ffprobe_filepath, #filename_directory, #first_image_filepath, #hlsts_aac_filepath, #hlsts_aac_partial_filepath, #hlsts_filepath, #hlsts_partial_filepath, #mp3_filepath, #mp3_partial_filepath, #mp4_filepath, #mp4_partial_filepath, #mpd_filepath, #mpd_partial_filepath, #output_directory, #output_directory_basename, #poster_filepath, #poster_image_filepath, #poster_partial_filepath, #sprites_filepath, #sprites_partial_filepath, #vp9_filepath, #vp9_partial_filepath, #webvtt_input_filepath
Constructor Details
#initialize(filepath, output_directory) ⇒ ProgressiveMp3
Returns a new instance of ProgressiveMp3.
8 9 10 11 |
# File 'lib/abrizer/progressive_mp3.rb', line 8 def initialize(filepath, output_directory) @filepath = filepath @output_directory = output_directory end |
Instance Method Details
#create ⇒ Object
13 14 15 |
# File 'lib/abrizer/progressive_mp3.rb', line 13 def create `#{ffmpeg_cmd}` end |
#ffmpeg_cmd ⇒ Object
17 18 19 |
# File 'lib/abrizer/progressive_mp3.rb', line 17 def ffmpeg_cmd "ffmpeg -y #{debug_settings} -i #{@filepath} -vn -c:a libmp3lame -b:a 128k #{mp3_filepath}" end |