video_tesseract 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/video-tesseract +7 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e60ee1c88067e3ace37648780b159e440eb6aa7
|
4
|
+
data.tar.gz: e95483077119d56af2d9f606e751da40edf9e84d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd2c16828091988463172492262476d638cdd615e6eee5d62f6d1ea11f6d17dfea83e997463afa3757906b58599932c1f2065c9c1eb978cc24fae6f532cc817e
|
7
|
+
data.tar.gz: 734301a035d17077d1d7544c7ba16c401f90679416200738d7c14c14af3f2aa0e6ceb547a5446990e8a1e482140e809793c1c421d76c17effd199b479105b648
|
data/bin/video-tesseract
CHANGED
@@ -75,7 +75,13 @@ end
|
|
75
75
|
Dir.mktmpdir do |data_dir|
|
76
76
|
|
77
77
|
# get the frame count for the video
|
78
|
-
|
78
|
+
probe = `ffmpeg -i #{@input} -vcodec copy -acodec copy -f null /dev/null 2>&1`
|
79
|
+
if probe =~ /frame=.*?(\d+)/
|
80
|
+
frames = $1.to_i
|
81
|
+
else
|
82
|
+
puts 'Cannot determine the number of frames in the video'
|
83
|
+
abort
|
84
|
+
end
|
79
85
|
|
80
86
|
tiles = @rows * @cols
|
81
87
|
frames_per_tile = frames / tiles
|