From 9cb7526750aa11c203cae69c618070500519f0c4 Mon Sep 17 00:00:00 2001 From: ddennedy Date: Thu, 7 Feb 2008 06:03:20 +0000 Subject: [PATCH] thumbs.rb: fix error on Playlist.append due to args not int git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt++@1061 d19143bc-622f-0410-bfdd-b5b2a6649095 --- mlt++/swig/ruby/thumbs.rb | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mlt++/swig/ruby/thumbs.rb b/mlt++/swig/ruby/thumbs.rb index f91c598..231b9d4 100755 --- a/mlt++/swig/ruby/thumbs.rb +++ b/mlt++/swig/ruby/thumbs.rb @@ -7,13 +7,13 @@ require 'mltpp' Mltpp::Factory::init # Establish the mlt profile -profile = Mltpp::Profile.new +profile = Mltpp::Profile.new( "quarter_pal" ) # Get and check the argument file = ARGV.shift name = ARGV.shift size = ARGV.shift -size = "192x144" if size.nil? +size = "176x144" if size.nil? raise "Usage: thumbs.rb file name [ size ]" if file.nil? || name.nil? # Create the producer @@ -27,7 +27,7 @@ playlist = Mltpp::Playlist.new( ) out = producer.get_int( "out" ); # Calculate position of frames -[ 0, 0.25, 0.5, 0.75, 1 ].each { |x| playlist.append( producer, x*out, x*out ) } +[ 0, 0.25, 0.5, 0.75, 1 ].each { |x| playlist.append( producer, Integer(x*out), Integer(x*out) ) } # Create the thumb nail generator generator = Mltpp::Consumer.new( profile, "avformat", "#{name}%d.jpg" ) -- 1.7.4.4