lib/evideo/hrvideo.rb in evideo-0.1.5 vs lib/evideo/hrvideo.rb in evideo-0.1.6
- old
+ new
@@ -30,10 +30,10 @@
@bitrate = 0
@probe = `#{probe}` if File.exist?(fvideo)
return unless @probe
tr1 = @probe.scan(R1).flatten
- @duration = tr1[0]
+ @duration = tr1[0].to_s
@bitrate = tr1[1].to_i
end
# Parametrizar height e frame rate
def r2