Module: TivoHMO::API::Transcoder
- Extended by:
- ActiveSupport::Concern
- Includes:
- GemLogger::LoggerSupport
- Defined in:
- lib/tivohmo/api/transcoder.rb
Overview
Transcoder abstraction for reading in the data from an Item and transcoding it into a format suitable for display on a tivo
Constant Summary collapse
- VIDEO_FRAME_RATES =
%w[60.00 59.94 50.00 30.00 29.97 25.00 24.00 23.98]
- VIDEO_CODECS =
h264 only for push?
%w[mpeg2video]
- VIDEO_WIDTHS =
%w[1920 1440 1280 720 704 544 480 352]
- VIDEO_HEIGHTS =
%w[1080 720 480 240]
- AUDIO_CODECS =
%w[ac3 liba52 mp2]
- AUDIO_SAMPLE_RATES =
%w[44100 48000]
Instance Attribute Summary collapse
-
#item ⇒ Object
Returns the value of attribute item.
Instance Method Summary collapse
- #initialize(item) ⇒ Object
- #transcode(writeable_io, format) ⇒ Object
- #transcoder_options(format = "video/x-tivo-mpeg") ⇒ Object
Instance Attribute Details
#item ⇒ Object
Returns the value of attribute item.
20 21 22 |
# File 'lib/tivohmo/api/transcoder.rb', line 20 def item @item end |
Instance Method Details
#initialize(item) ⇒ Object
22 23 24 |
# File 'lib/tivohmo/api/transcoder.rb', line 22 def initialize(item) self.item = item end |
#transcode(writeable_io, format) ⇒ Object
26 27 28 |
# File 'lib/tivohmo/api/transcoder.rb', line 26 def transcode(writeable_io, format) raise NotImplementedError end |
#transcoder_options(format = "video/x-tivo-mpeg") ⇒ Object
30 31 32 |
# File 'lib/tivohmo/api/transcoder.rb', line 30 def (format="video/x-tivo-mpeg") raise NotImplementedError end |