lib/abrizer/progressive_mp4.rb in abrizer-0.3.0 vs lib/abrizer/progressive_mp4.rb in abrizer-0.4.0

- old
+ new

@@ -24,14 +24,12 @@ def input_video_filepath @adaptation.filepath_fragmented(@filename, output_directory) end def ffmpeg_cmd - "ffmpeg -y -i #{input_video_filepath} -i #{audio_filepath_fragmented} -c:v copy -c:a copy #{static_filepath}" - end - - def static_filepath - File.join output_directory, "progressive.mp4" + "ffmpeg -y -i #{input_video_filepath} -i #{audio_filepath_fragmented} -c:v copy -c:a copy #{mp4_filepath} -movflags faststart" + # Previously used command: + # "ffmpeg -y -i #{@filename} -profile:v high -pix_fmt yuv420p -movflags faststart -b:v #{@adaptation.bitrate}k #{mp4_filepath}" end end end