Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the correct path video using Streamio FFMPEG on Rails

I follow this gem https://github.com/streamio/streamio-ffmpeg , then I do this :

movie = FFMPEG::Movie.new("#{Rails.root}/public/aaa.mov")

but the result is :

Errno::ENOENT: No such file or directory - ffmpeg -i /home/user/projects/test/public/aaa.mov

Does anyone know ?

Thanks

like image 758
Khalid Avatar asked Nov 16 '25 17:11

Khalid


1 Answers

This gem assumes ffmpeg is available in your PATH. If it is not in your PATH, You need to specify the path of the ffmpeg binary.

FFMPEG.ffmpeg_binary = '/usr/local/bin/ffmpeg'

If you don't have ffmpeg install, you need to install it.

Download Page

like image 53
HungryCoder Avatar answered Nov 19 '25 08:11

HungryCoder