Answer the question
In order to leave comments, you need to log in
How to get the width properties of a video loaded via Papperclip to use in a specific condition?
Good afternoon.
The problem is this.
I configured Papperclip-av-transcoder to convert video in four different qualities: 1080, 720, 480, 360
There was a problem:
If you upload a video in 720p, then it is through an error, but it is converted to 1080p.
You understand that this is wrong.
I thought the condition to prescribe that if the width of the video is less than 1920, then perform some parameters, if not, then the conversion takes place in 4 qualities.
Perhaps there is an easier way?
And then I'll ask another question about Papperclip:
How can I use the FFMPEG options in the encoding settings? The required options are:
-c:v libx264
-preset slow
-crf 23
-r 25
-g 25
-coder 0
-threads 4
-movflags faststart
-strict -2
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question