lib/xmorph/base.rb in xmorph-0.1.4 vs lib/xmorph/base.rb in xmorph-0.1.5

- old
+ new

@@ -81,10 +81,11 @@ def get_profile(return_profile_name=false) self.set_profile_name if (self.profile_name.blank? or self.profiles[self.profile_name].blank?) raise TranscoderError.new(self.error || "Media doesnt match any transcoding profiles.") end + XMorph::Base.logger.debug("XMorph#get_profile: Using ffmpeg command: #{self.profiles[self.profile_name]} to transcode #{asset_path}") return self.profile_name, self.profiles[self.profile_name] if return_profile_name return self.profiles[self.profile_name] end def transcode(cmd) @@ -124,10 +125,10 @@ def perform_default_video_validations mediainfo = self.mediainfo_output video_info = mediainfo["Video"] default_checks = self.default_video_checks - + aspect_ratio = video_info["Display_aspect_ratio"] height = (video_info["Original_height"] || video_info["Height"]) width = (video_info["Original_width"] || video_info["Width"]) frame_rate = video_info["Frame_rate"] bit_rate = video_info["Bit_rate"] || video_info["Nominal_bit_rate"] \ No newline at end of file