Ruby on Rails Friday, October 1, 2010

Radhames, what do you think? I am guessing the article at
http://www.google.com/url?sa=D&q=http://thewebfellas.com/blog/2009/2/22/video-thumbnails-with-ffmpeg-and-paperclip&usg=AFQjCNHbJbsr5cjILbhrgpvOot5qJhUPsw
assumes that the uploader would be the admin, so there is no need for
startling or a workling?

But if the app allows users to upload, then a startling/workling
approach is needed since ffmpeg takes a while to process uploaded
files?

On Oct 2, 2:25 am, radhames brito <rbri...@gmail.com> wrote:
> On Fri, Oct 1, 2010 at 2:14 PM, Christian Fazzini <
>
>
>
> christian.fazz...@gmail.com> wrote:
> > Even putting the logic/code in /lib/paperclip_processors/
> > your_processor_lib.rb as described at
>
> >http://thewebfellas.com/blog/2009/2/22/video-thumbnails-with-ffmpeg-a...
> > will make the application hang whenever a user uploads a video?
>
> > On Oct 2, 2:02 am, radhames brito <rbri...@gmail.com> wrote:
> > > > before_save :process_thumbnail
>
> > > >  private
> > > >  def process_thumbnail
> > > >      system("ffmpeg -i #{self.media.to_file.path} -f flv -s 320x240 ~/
> > > > Downloads/foobar/q.flv")
> > > >  end
>
> > > yes it will hang as long as this is in your model, and it will hang for a
> > > few seconds. Oh and use a after_save callback not a before_save.
>
> > > ok im going to start working on it , meanwhile watch this railscast
>
> > >http://railscasts.com/episodes/128-starling-and-workling
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Ruby on Rails: Talk" group.
> > To post to this group, send email to rubyonrails-talk@googlegroups.com.
> > To unsubscribe from this group, send email to
> > rubyonrails-talk+unsubscribe@googlegroups.com<rubyonrails-talk%2Bunsubscribe@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/rubyonrails-talk?hl=en.
>
> I will read and answer after lunch

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment