lib/xmorph/customers/tastemade/tastemade/transcode.rb in xmorph-0.1.6 vs lib/xmorph/customers/tastemade/tastemade/transcode.rb in xmorph-0.1.9
- old
+ new
@@ -1,18 +1,18 @@
class Transcode < XMorph::Base
DEFAULT = "default"
def set_profiles
self.profiles = {
- DEFAULT => "ffmpeg -y -i %{IN} -map 0:v:0 -map 0:a:0 -acodec libfdk_aac -profile:a aac_low -ac 2 -ar 48000 -ab 192k -vcodec libx264 -vf \'fps=fps=29.97,scale=1920:1080\' -pix_fmt yuv420p -g 13 -bf 2 -profile:v high -vb 18000k -minrate:v 18000k -maxrate:v 18000k -bufsize:v 36000k -muxrate 19000k -x264opts nal-hrd=cbr:force-cfr=1 -pes_payload_size 16 -streamid 0:2064 -streamid 1:2068 %{OUT} 2>&1",
+ DEFAULT => "ffmpeg -y -i %{IN} -map 0:v:0 -map 0:a:0 -acodec libfdk_aac -profile:a aac_low -ac 2 -ar 48000 -ab 192k -vcodec libx264 -vf \'fps=fps=29.97,scale=1920:1080\' -pix_fmt yuv420p -g 13 -bf 2 -profile:v high -vb 18000k -minrate:v 18000k -maxrate:v 18000k -bufsize:v 36000k -muxrate 19000k -x264opts nal-hrd=cbr:force-cfr=1 -pes_payload_size 16 -streamid 0:2064 -streamid 1:2068 %{OUT} ",
}
end
def video_checks
{
ALLOWED_ASPECT_RATIO => ["16:9"],
ALLOWED_HEIGHT => [1080, 2160],
- ALLOWED_WIDTH => [1920, 3840],
+ ALLOWED_WIDTH => [1920, 3840],
ALLOWED_FRAME_RATE => IGNORE,
ALLOWED_VIDEO_BIT_RATE => IGNORE, #Mbps
ALLOWED_SCAN_TYPE => IGNORE, #all downcased
}
end
@@ -28,9 +28,9 @@
end
# Same transcode rule is applied for all assets.
def set_profile_name
self.profile_name = DEFAULT
- XMorph::Base.logger.debug("XMorph#set_profile_name#tastemade: using profile #{self.profile_name}") unless self.profile_name.nil?return true
+ XMorph::Base.logger.debug("XsMorph#set_profile_name#tastemade: using profile #{self.profile_name}") unless self.profile_name.nil?
return true
end
end
\ No newline at end of file