Andrew M
2006-Apr-07 15:30 UTC
[Rails] reading mpeg4 dimensions and flv dimension using ruby
Hey guyz, Well basically what i am trying to do is get ruby to read my video files in so that i can get the dimensions of the video and then place the dimension sizes in my view. The two formats i need to do this with are mpeg4 (h.264) and FLV. Is there anyway i can get rails to access the metadata of these formats and pull the dimensions from the metadata? Any help would be greatly appreciated. Thank you, -- Posted via http://www.ruby-forum.com/.
Roberto Saccon
2006-Apr-07 16:19 UTC
[Rails] reading mpeg4 dimensions and flv dimension using ruby
there is a ruby tool called FLVToole2 from http://www.inlet-media.de/ it parses FLV files and reads/writes metadata. no idea about mp4, but if you don''t find any lib for that, you can always call ffmpeg from ruby On 4/7/06, Andrew M <millerboy15@hotmail.com> wrote:> > Hey guyz, > Well basically what i am trying to do is get ruby to read my video files > in so that i can get the dimensions of the video and then place the > dimension sizes in my view. The two formats i need to do this with are > mpeg4 (h.264) and FLV. Is there anyway i can get rails to access the > metadata of these formats and pull the dimensions from the metadata? Any > help would be greatly appreciated. > Thank you, > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Roberto Saccon - http://rsaccon.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060407/503bed38/attachment.html
Andrew
2006-Apr-10 15:42 UTC
[Rails] Re: reading mpeg4 dimensions and flv dimension using ruby
how do you call ffmpeg from ruby? -- Posted via http://www.ruby-forum.com/.
Roberto Saccon
2006-Apr-10 16:50 UTC
[Rails] Re: reading mpeg4 dimensions and flv dimension using ruby
with "system" or just the ffmpeg command inside ``, check out a ruby tutorial on things like that. On 4/10/06, Andrew <millerboy15@hotmail.com> wrote:> > how do you call ffmpeg from ruby? > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Roberto Saccon - http://rsaccon.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060410/5e0e6ed6/attachment.html
Alan Francis
2006-May-04 09:36 UTC
[Rails] Re: Re: reading mpeg4 dimensions and flv dimension using rub
I seem to remember answering this very question here on the list, and searching on ruby-forum.com shows it having been asked three times already by someone called Andrew (you or someone else), and answered twice. Please see: http://www.ruby-forum.com/search?query=ffmpeg&submit=Search for a few answers. Alan -- Posted via http://www.ruby-forum.com/.