Class: EnMasse::Dragonfly::FFMPEG::Analyser

Inherits:
Object
  • Object
show all
Includes:
Dragonfly::Loggable
Defined in:
lib/dragonfly-ffmpeg/analyser.rb

Instance Method Summary collapse

Instance Method Details

#audio_bitrate(temp_object) ⇒ Object



85
86
87
# File 'lib/dragonfly-ffmpeg/analyser.rb', line 85

def audio_bitrate(temp_object)
  inspect_movie(:audio_bitrate, temp_object)
end

#audio_channels(temp_object) ⇒ Object



89
90
91
# File 'lib/dragonfly-ffmpeg/analyser.rb', line 89

def audio_channels(temp_object)
  inspect_movie(:audio_channels, temp_object)
end

#audio_codec(temp_object) ⇒ Object



77
78
79
# File 'lib/dragonfly-ffmpeg/analyser.rb', line 77

def audio_codec(temp_object)
  inspect_movie(:audio_codec, temp_object)
end

#audio_sample_rate(temp_object) ⇒ Object



81
82
83
# File 'lib/dragonfly-ffmpeg/analyser.rb', line 81

def audio_sample_rate(temp_object)
  inspect_movie(:audio_sample_rate, temp_object)
end

#audio_stream(temp_object) ⇒ Object



73
74
75
# File 'lib/dragonfly-ffmpeg/analyser.rb', line 73

def audio_stream(temp_object)
  inspect_movie(:audio_stream, temp_object)
end

#bitrate(temp_object) ⇒ Object



41
42
43
# File 'lib/dragonfly-ffmpeg/analyser.rb', line 41

def bitrate(temp_object)
  inspect_movie(:bitrate, temp_object)
end

#colorspace(temp_object) ⇒ Object



57
58
59
# File 'lib/dragonfly-ffmpeg/analyser.rb', line 57

def colorspace(temp_object)
  inspect_movie(:colorspace, temp_object)
end

#duration(temp_object) ⇒ Object



37
38
39
# File 'lib/dragonfly-ffmpeg/analyser.rb', line 37

def duration(temp_object)
  inspect_movie(:duration, temp_object)
end

#ext(temp_object) ⇒ Object



28
29
30
# File 'lib/dragonfly-ffmpeg/analyser.rb', line 28

def ext(temp_object)
  File.extname(temp_object.path)
end

#frame_rate(temp_object) ⇒ Object Also known as: fps



32
33
34
# File 'lib/dragonfly-ffmpeg/analyser.rb', line 32

def frame_rate(temp_object)
  inspect_movie(:frame_rate, temp_object)
end

#resolution(temp_object) ⇒ Object



61
62
63
# File 'lib/dragonfly-ffmpeg/analyser.rb', line 61

def resolution(temp_object)
  inspect_movie(:resolution, temp_object)
end

#size(temp_object) ⇒ Object



45
46
47
# File 'lib/dragonfly-ffmpeg/analyser.rb', line 45

def size(temp_object)
  inspect_movie(:size, temp_object)
end

#v_height(temp_object) ⇒ Object



69
70
71
# File 'lib/dragonfly-ffmpeg/analyser.rb', line 69

def v_height(temp_object)
  inspect_movie(:height, temp_object)
end

#v_width(temp_object) ⇒ Object



65
66
67
# File 'lib/dragonfly-ffmpeg/analyser.rb', line 65

def v_width(temp_object)
  inspect_movie(:width, temp_object)
end

#valid?(temp_object) ⇒ Boolean

Returns:

  • (Boolean)


93
94
95
# File 'lib/dragonfly-ffmpeg/analyser.rb', line 93

def valid?(temp_object)
  inspect_movie(:valid?, temp_object)
end

#video_codec(temp_object) ⇒ Object



53
54
55
# File 'lib/dragonfly-ffmpeg/analyser.rb', line 53

def video_codec(temp_object)
  inspect_movie(:video_codec, temp_object)
end

#video_stream(temp_object) ⇒ Object



49
50
51
# File 'lib/dragonfly-ffmpeg/analyser.rb', line 49

def video_stream(temp_object)
  inspect_movie(:video_stream, temp_object)
end