You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi
i am using this gem for my video process and i want to scale my video to different size, but the output not change and all my version have same video size and resolution
this is my code:
`class MediaUploader < CarrierWave::Uploader::Base
encoding: utf-8
include CarrierWave::Video # for your video processing
include CarrierWave::Video::Thumbnailer
include ::CarrierWave::Backgrounder::Delay
include CarrierWave::MimeTypes
require 'rubygems'
require 'streamio-ffmpeg'
process encode_video: [:mp4, audio_codec: "aac", custom: "-strict experimental -q:v 5 -preset slow -g 30 -movflags faststart",
callbacks: { after_transcode: :set_success } ], :if => :video?
version :thumb do
process thumbnail: [{format: 'png', quality: 10, size: 710, logger: Rails.logger}]
def full_filename for_file
png_name for_file, version_name
end
end
version :mp4 do
process encode_video: [:mp4, audio_codec: "aac", custom: "-strict experimental -q:v 5 -preset slow -g 30 -movflags faststart",
callbacks: { after_transcode: :set_success } ], :if => :video?
def full_filename for_file
mp4_name for_file, version_name
end
end
version :mid_mp4 do
process encode_video: [:mp4, audio_codec: "aac", custom: "-vf scale=-1:360 -strict experimental -q:v 5 -preset slow -g 30 -movflags faststart",
callbacks: { after_transcode: :set_success } ], :if => :video?
def full_filename for_file
mp4_name_mid for_file, version_name
end
end`
The text was updated successfully, but these errors were encountered:
i already try ``` resolution: "640x360"
version :mp4 do
process encode_video: [:mp4, resolution: "640x360"
def full_filename for_file
mp4_name for_file, version_name
end
end
hi
i am using this gem for my video process and i want to scale my video to different size, but the output not change and all my version have same video size and resolution
this is my code:
`class MediaUploader < CarrierWave::Uploader::Base
encoding: utf-8
The text was updated successfully, but these errors were encountered: