Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Text type can have multiple streams #1

merged 1 commit into from

2 participants


In addition to video and audio, there can be multiple text 'streams' embedded in a file.

@hackerdude hackerdude merged commit f2de9c7 into hackerdude:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 30, 2011
  1. @lwf

    Text can have multiple streams

    lwf authored
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/mediainfo-ruby.rb
3  lib/mediainfo-ruby.rb
@@ -5,7 +5,7 @@
require "mediainfo_ruby"
module MediaInfoRubyisms_Streams
- ThingsWithMultipleStreams = [:video, :audio]
+ ThingsWithMultipleStreams = [:video, :audio, :text]
# Set to true if you want empty values
attr_reader :empty_values
@@ -50,6 +50,7 @@ def image_streams ; self.count_get(MediaInfoLib_StreamKind::Image, -1); end
# Returns how many streams are menu streams
def menu_streams ; self.count_get(MediaInfoLib_StreamKind::Menu, -1); end
+ def text_streams ; self.count_get(MediaInfoLib_StreamKind::Text, -1); end
# Returns a map of all the possible option definitions,
# where the key is the option we can ask for and the
Something went wrong with that request. Please try again.