RMovie::Movie object methods
| Method | Description |
| movie = RMovie::Movie.new(String path_to_movie) | Open a media file and Return it as an object.
|
| movie.duration | Return the duration in seconds. |
| movie.frame_count | Return the number of frames. |
| movie.frame_rate | Return the frame rate of a video in frames per second. |
| movie.file_name | Return the path and name of media file. |
| movie.comment | Return the comment field from the media file. |
| movie.title | Return the title field from the media file. |
| movie.author alias movie.artist | Return the author field from the movie or the artist ID3 field from an mp3 file. |
| movie.copyright | Return the copyright field from the media file. |
| movie.artist | Return the artist ID3 field from an mp3 file. |
| movie.genre | Return the genre ID3 field from an mp3 file. |
| movie.track | Return the track ID3 field from an mp3 file. |
| movie.year | Return the year ID3 field from an mp3 file. |
| movie.frame_height | Return the height of the movie in pixels. |
| movie.frame_width | Return the width of the movie in pixels. |
| movie.pixel_format | Return the pixel format of the movie. |
| movie.bit_rate | Return the bit rate of the media file in bits per second. |
| movie.frame_number | Return the current frame index. |
| movie.video_codec | Return the name of the video codec used to encode this movie, as a string. |
| movie.audio_codec | Return the name of the audio codec used to encode this movie, as a string. |
| movie.audio_channels | Return the number of audio channels in this movie as an integer. |
| movie.has_audio? | Return boolean value indicating whether the movie has an audio stream. |
| movie.frame([int frame_number]) | Returns a frame from the movie as an RMovie::Frame object. Returns false if the frame was not found.
|
| movie.next_key_frame | Returns the next key frame from the movie as an RMovie::Frame object. Returns false if the frame was not found. |
| movie.export(string file_name) | Exports the movie to a file. Movie format is determined by the file suffix. If export() cannot find a matching encoder then it will use MPEG. This function is incomplete right now and only supports exporting video.
|