Hi I want to create a video from list of images on ruby on rails. I have searched alot and all i found out was ffmeg, but i guess that's a command line tool. How do i create it using pure ruby on rails. Is there any gem or tutorial. Please Help.
相关问题
- Question marks after images and js/css files in ra
- Using :remote => true with hover event
- Eager-loading association count with Arel (Rails 3
- How to specify memcache server to Rack::Session::M
- Why am I getting a “C compiler cannot create execu
相关文章
- Ruby using wrong version of openssl
- Right way to deploy Rails + Puma + Postgres app to
- Handling ffmpeg library interface change when upgr
- How to use a framework build of Python with Anacon
- AWS S3 in rails - how to set the s3_signature_vers
- Difference between Thread#run and Thread#wakeup?
- how to call a active record named scope with a str
- How to add a JSON column in MySQL with Rails 5 Mig
Thanks to LordNeckbeard, i found this single command to convert images into video here ffmpeg .
It seems like i will have to use commandline tool as i did'nt find any gem that does all this stuff for me. install image magick install ffmpeg first convert all the jpg images into a gif file
convert -delay 250 -dispose Background *.jpg images.gif then convert that gif file into mp4 format ffmpeg -f gif -i images.gif outfile.mp4
I would love to have a better answer than this.
there are some gems that work as an interface between ruby and ffmpeg like https://github.com/streamio/streamio-ffmpeg. There are some other few, try them out!
You can access command line through RoR.
What you would have to do is be sure you have the names path to your end result and confirm the return code from the command line call.