Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reading video file metadata with ruby

I am working on a app and I let users to upload videos. The problem is I need to get the width and height of the videos after users submitted the form, but couldn't find a way to do it.

Users can upload any video type, avi, mpeg, mov, flv..

I just need to get width and height metadata of the video, but so far I couldn't find a ruby function or a gem.

thanks.

like image 687
tackleberry Avatar asked Mar 27 '26 09:03

tackleberry


1 Answers

Try streamio-ffmpeg. It seems to be maintained and relatively up to date.

like image 58
pixelearth Avatar answered Mar 29 '26 02:03

pixelearth



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!