FIX RVIDEO 0.9.4 ‘NIL’ BUG
March 18, 2009
I use RVideo gem a lot for a video processing application I have been building in Rails which will be open sourced soon on github. Using the gem you can create a RVideo::Inspector object to gather information about the uploaded file including its fps and content type.
If you use the latest version of ffmpeg (mine is SVN-r16905), I find that I keep getting nil values whenever I run the inspector objects. I googled around and found that this is due to a regular expression mismatch in the source. Change line 53 in inspector.rb in the source to:
metadata = /(Input \#.*)\n(Must|At\sleast)/m.match(@raw_response)