Sha256: fd653789c1d2ab8ae75c3535b9cf6507a2b670ed3a3c0ec96e3c3323b10f71ed

Contents?: true

Size: 1.28 KB

Versions: 8

Compression:

Stored size: 1.28 KB

Contents

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 12000000  -minrate:v 12000k -maxrate:v 12000k -bufsize:v 24000k -muxrate 13000k -x264opts nal-hrd=cbr  -pes_payload_size 16 -streamid 0:2064 -streamid 1:2068 %{OUT} 2>&1"
  	}
  end

  def video_checks
    {
      ALLOWED_ASPECT_RATIO => ["16:9"],
      ALLOWED_HEIGHT => [1080],
      ALLOWED_WIDTH => [1920], 
      ALLOWED_FRAME_RATE => IGNORE,
      ALLOWED_VIDEO_BIT_RATE => IGNORE, #Mbps
      ALLOWED_SCAN_TYPE => IGNORE, #all downcased
    }
  end

  def audio_checks
    {
      PRESENCE_OF_AUDIO_TRACK => VALIDATE,
      ALLOWED_NUMBER_OF_AUDIO_TRACKS => [1, 4, 8],
      ALLOWED_AUDIO_CODECS => ["aac", "pcm"],
      ALLOWED_AUDIO_BIT_RATE => IGNORE,
      ALLOWED_NUMBER_OF_AUDIO_CHANNELS => [1, 2],
    }
  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#rooster-teeth: using profile #{self.profile_name}") unless self.profile_name.nil?
    return true
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
amagi_transcode-0.1.14 lib/xmorph/customers/rooster-teeth/roosterteeth/transcode.rb
xmorph-0.1.14 lib/xmorph/customers/rooster-teeth/roosterteeth/transcode.rb
xmorph-0.1.13 lib/xmorph/customers/rooster-teeth/roosterteeth/transcode.rb
xmorph-0.1.11 lib/xmorph/customers/rooster-teeth/roosterteeth/transcode.rb
xmorph-0.1.6 lib/xmorph/customers/rooster-teeth/roosterteeth/transcode.rb
xmorph-0.1.5 lib/xmorph/customers/rooster-teeth/roosterteeth/transcode.rb
xmorph-0.1.4 lib/xmorph/customers/rooster-teeth/roosterteeth/transcode.rb
xmorph-0.1.3 lib/xmorph/rooster-teeth/roosterteeth/transcode.rb