Ruby on Rails Monday, July 11, 2016

> On Jul 11, 2016, at 12:47 PM, Alex jimmy Montaño fuentes <lists@ruby-forum.com> wrote:
>
> Walter Davis wrote in post #1184561:
>
>> This is a very well solved problem, so there hasn't been a lot of change
>> in this area. What have you tried, and where has it gone wrong for you?
>>
>> Walter
>
> Thanks for your response Walter.
> I tried to follow the steps of:
>
> https://www.pubnub.com/blog/2015-12-08-building-video-sharing-app-server-messaging-ruby/
>
> with rails 4.2.6, ruby 2.2.1 and it doesn`t work for me.

Did you get errors, and if so, can you paste some of them here or at Gist or Pastie (if they're really long)? 'Doesn't work' covers a lot of ground. Did you try building a throw-away site with Paperclip, just to see if you could upload regular JPEG images according to the recipe on the README page?

I have built a video sharing site with Paperclip and Rails 4.2, and that side of things (uploading files and linking to them) worked without drama or special effort.

What took me some time to sort out was creating the placeholder images (sample one frame 5 seconds into the clip and save it as a JPEG), or transcode some wonky flavor of Windows Media into standard MP4 with ffmpeg. Those parts are non-trivial, and for a start, you may find it useful to read some non-rails sites about ffmpeg and how to get it working on your server. But you still haven't explained what got you stuck, how far you got, and where it stopped working for you.

> I used the gem
> 'paperclip' to upload images before, but not to upload videos, and I
> never used the majority of gems of that proyect. I'm learning RoR since
> three month ago and i don't know many of concept yet, nor the reason of
> the generated errors.

Before you run like this, I recommend you walk over to http://railstutorial.org and complete the free online course. Do the whole thing. Type everything by hand, don't copy and paste the examples. This really matters. Depending on your non-Rails programming experience, this can take you two days or two weeks to finish. But once you have, you will have a foundational knowledge of Rails, upon which you can layer more experience and add new tricks. I can't overstate how important this step is.

> What knowledge I should have to do a project like this?

For the ffmpeg stuff, at a minimum, learn how to compile a C executable at the command line. Read up on video transcoding and "snapshotting" (I just made that word up -- I mean how to extract a poster frame).

> Do you know some material (web pages, video tutorials, books...) to
> learn this concepts?

Yes, see above.

Walter

> Regards
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/015f6710c74af77089755a89f83f487b%40ruby-forum.com.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/6537888B-05B4-45AE-8190-B96125C758C9%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment