Nghia Nguyen


60 Experience
0 Lessons Completed
0 Questions Solved


Posted in Transcode a video and move to a remote server

Hi Chris,

That's the video I was talking about. It copies files and transcoding with background jobs; exactly what we need. One thing missing is saving all the transcoded videos to a dedicated network drive.
Is there away for me to set up Shrine so that it uses a network drive as the 'store' directory? I'm fooling around with the Samba URL, it's obviously wrong.

Shrine.storages = {
cache:"public", prefix: "uploads/cache"), # temporary
store:"smb://xxx/yyy/") # permanent

Posted in Transcode a video and move to a remote server

Hi Chris,

I'm following the introduction video where show the usage of Shrine and FFMPEG. What I'm trying to do is having the users upload the videos, then transcode them to MP4 and save to a dedicated server for videos. That way, the videos are ready to stream whenever.

Being new to Rails, I don't quite know how to do it. How do I kick off the transcoding jobs in the background as soon as the user upload the video?

Thanks in advance if you can help.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2023 GoRails, LLC. All rights reserved.