Skip to content

Commit 2993e61

Browse files
committed
'ffmpeg-test' checks for errors in videos
1 parent 466a67d commit 2993e61

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

ffmpeg-test

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env ruby
2+
3+
for arg in ARGV
4+
cmd = ["ffmpeg", "-v", "error", "-i", arg, "-f", "null", "-"]
5+
6+
puts "========== #{arg} ================================="
7+
system(*cmd)
8+
9+
#output = IO.popen(cmd, err: [:child, :out]) { |io| io.read }
10+
#if output[/Error/]
11+
# puts "========== #{arg} ================================="
12+
# puts "Error: #{output}"
13+
#end
14+
end

0 commit comments

Comments
 (0)