Fix unexpected audio stream transcoding when uploaded video is eligible to passthrough (#26608)

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
th-downstream
yufushiro 1 year ago committed by GitHub
parent cf6f70799b
commit 3aac12981c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -37,14 +37,16 @@ module Paperclip
@output_options['f'] = 'image2'
@output_options['vframes'] = 1
when 'mp4'
unless eligible_to_passthrough?(metadata)
@output_options['acodec'] = 'aac'
@output_options['strict'] = 'experimental'
if high_vfr?(metadata) && !eligible_to_passthrough?(metadata)
if high_vfr?(metadata)
@output_options['vsync'] = 'vfr'
@output_options['r'] = @vfr_threshold
end
end
end
command_arguments, interpolations = prepare_command(destination)

Loading…
Cancel
Save