Does anyone know the right approach to change the duration/length of
an uploaded mp3 file? User has the option to upload mp3 file as full,
30 secs or 90 secs. So far, I have gotten it to work for full.
Do I have to use a processor (with ffmpeg) for this? Or is there a
built-in option in paperclip for this to happen?
Tried googling around to no avail....
By the way, if user selects 90 secs (for example), then I need
Paperclip not to upload the original. The same goes for 30 secs. In
theory, its one file or the other.
begin
success = Paperclip.run(cmd)
rescue PaperclipCommandLineError
raise PaperclipError, "There was an error processing the
preview for #{@basename}" if whiny
end
dst
end
end
end