I am trying following code to determine video resolution by running ffmpeg utility as subprocess and gain its output and parse it:
IO.popen 'ffmpeg -i ' + path_to_file do |ffmpegIO|
# my parse goes here
end
...but ffmpeg output is still connected to stdout and ffmepgIO.readlines is empty. Are there some special treatment needed for ffmpeg utility? Or are there other way to gain ffmpeg output? I tested this code under WinXP and Fedora Linux - results are same.