lib/xmorph/shoutfactory/shoutfactory/transcode.rb in xmorph-0.1.2 vs lib/xmorph/shoutfactory/shoutfactory/transcode.rb in xmorph-0.1.3
- old
+ new
@@ -41,11 +41,11 @@
video_info = mediainfo["Video"]
aspect_ratio = video_info["Display_aspect_ratio"]
height = (video_info["Original_height"] || video_info["Height"]).split("pixels")[0].gsub(/ /,"")
width = (video_info["Original_width"] || video_info["Width"]).split("pixels")[0].gsub(/ /,"")
- XMorph::Base.logger.debug("XMorph#get_profile#shoutfactory: Got Aspect Ratio: #{aspect_ratio}, Height: #{height}, Width: #{width}")
+ XMorph::Base.logger.debug("XMorph#set_profile_name#shoutfactory: Got Aspect Ratio: #{aspect_ratio}, Height: #{height}, Width: #{width}")
if height.present? and width.present?
# HD assets
if (width.to_i == 1920) and (height.to_i == 1080)
self.profile_name = HIGH_DEFINITION
# 720P assets are upscaled to HD asset
@@ -54,13 +54,13 @@
# Non HD & 720P assets are forced to SD
elsif (width.to_i > 0) and (height.to_i > 0) and (width.to_i < 1920) and (height.to_i < 1080)
self.profile_name = STANDARD_DEFINITION
else
self.error = "Got Unexpected Resolution #{width}x#{height}. No transcoding profile available for this."
- XMorph::Base.logger.debug("XMorph#get_profile#shoutfactory: Got something unexpected! No Transcoding profile is available for this.")
+ XMorph::Base.logger.debug("XMorph#set_profile_name#shoutfactory: Got something unexpected! No Transcoding profile is available for this.")
return false
end
- XMorph::Base.logger.debug("XMorph#get_profile#shoutfactory: Converting the file to #{self.profile_name}")
+ XMorph::Base.logger.debug("XMorph#set_profile_name#shoutfactory: Converting the file to #{self.profile_name}")
else
self.error = "Couldn't find Resolution of the Video correctly"
end
return true
end
\ No newline at end of file