ruby-av / paperclip-av-transcoder

Audio/Video Transcoder for Paperclip using FFMPEG/Avconv
MIT License
136 stars 82 forks source link

Unable to detect any supported library #27

Closed Pagwebchamba closed 9 years ago

Pagwebchamba commented 9 years ago

[AV] Running command: if command -v avprobe 2>/dev/null; then echo "true"; else echo "false"; fi [AV] Running command: if command -v ffmpeg 2>/dev/null; then echo "true"; else echo "false"; fi (0.2ms) ROLLBACK Unable to detect any supported library Redirected to http://localhost:3000/ssdd/edit Completed 302 Found in 771ms (ActiveRecord: 0.6ms)

i have compile ffmpeg with this source https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu

owahab commented 9 years ago

You need to make sure ffmpeg path is in the global $PATH. The error you're getting means that when Ruby process tried to find a command named ffmpeg or avprobe, none of them was in the $PATH defined for the process or the global $PATH.

Pagwebchamba commented 9 years ago

ffmpeg have routes on ~/bin
have ffmpeg ffplay ffprobe ffserver x264

have idea?

Pagwebchamba commented 9 years ago

need install on /usr/local/bin?

Pagwebchamba commented 9 years ago

or how to set $PATH to ~/bin on rails gem?

owahab commented 9 years ago

Google to the rescue: http://unix.stackexchange.com/questions/94495/globally-change-path-for-all-users-even-in-cron

joshuapinter commented 7 years ago

Just a quick note, in my case I didn't even have ffmpeg installed on my Mac dev machine so I had to install via Homebrew:

brew install ffmpeg

You'll have to install ffmpeg on your server as well and make sure it's in the $PATH so paperclip-av-transcoder can access it correctly.