Forum: Ruby on Rails reading mpeg4 dimensions and flv dimension using ruby

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
3fd22af91a03933f78246e72b5d1d740?d=identicon&s=25 Andrew M (Guest)
on 2006-04-07 17:30
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,
30269682335f1fb247d71969fa715b5e?d=identicon&s=25 Roberto Saccon (rsaccon)
on 2006-04-07 18:20
(Received via mailing list)
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
3fd22af91a03933f78246e72b5d1d740?d=identicon&s=25 Andrew (Guest)
on 2006-04-10 17:42
how do you call ffmpeg from ruby?
30269682335f1fb247d71969fa715b5e?d=identicon&s=25 Roberto Saccon (rsaccon)
on 2006-04-10 18:55
(Received via mailing list)
with "system" or just the ffmpeg command inside ``, check out a ruby
tutorial on things like that.
4daf0b71d5d9a3882e583c0e72eaf5dc?d=identicon&s=25 Alan Francis (Guest)
on 2006-05-04 11:36
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&subm...

for a few answers.

Alan
This topic is locked and can not be replied to.