ruby-av / paperclip-av-transcoder

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

Uploaded videos get redundantly transcoded #24

Open lohqua opened 9 years ago

lohqua commented 9 years ago

If I have it set up to transcode whatever is uploaded to mp4 and the file uploaded is mp4, paperclip redundantly transcodes it wasting a lot of server resources.

attenzione commented 9 years ago

This is video, it's never been easy 😊 more video, more resources will be used. You should use active job to transcode your videos in separate process of your web server

On Wed, Jun 10, 2015, 20:55 lohqua notifications@github.com wrote:

If I have it set up to transcode whatever is uploaded to mp4 and the file uploaded is mp4, paperclip redundantly transcodes it wasting a lot of server resources.

— Reply to this email directly or view it on GitHub https://github.com/ruby-av/paperclip-av-transcoder/issues/24.

lohqua commented 9 years ago

Ya know, if there was ANY documentation at all, things like this wouldn't be an issue. ActiveJob doesn't remove the fact that files are being redundantly transcoded.

attenzione commented 9 years ago

This issues is not related to this gem

On Wed, Jun 10, 2015, 21:05 lohqua notifications@github.com wrote:

Ya know, if there was ANY documentation at all, things like this wouldn't be an issue.

— Reply to this email directly or view it on GitHub https://github.com/ruby-av/paperclip-av-transcoder/issues/24#issuecomment-110858262 .

lohqua commented 9 years ago

It is since it is this gem behaving in a very inefficient manner.

smh

attenzione commented 9 years ago

This gem behaving like any other processor for paperclip, so please, read paperclip documentation, how to achieve processing with active job

On Wed, Jun 10, 2015, 21:09 lohqua notifications@github.com wrote:

It is since it is this gem behaving in a very inefficient manner.

smh

— Reply to this email directly or view it on GitHub https://github.com/ruby-av/paperclip-av-transcoder/issues/24#issuecomment-110859197 .

Gargron commented 8 years ago

:+1:

If you're creating extra styles, then yes, transcoding is expected regardless of original file format. However, if you want to only save a transcoded file, so you use the :original style, and the format is the same, it should definitely be a no-op!