Browse Source

Fix audio always being re-encoded even for passthrough-eligible media (#1839)

closed-social-glitch-2
Una 1 year ago
committed by GitHub
parent
commit
d4e63cd980
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      lib/paperclip/transcoder.rb

+ 4
- 2
lib/paperclip/transcoder.rb View File

@ -40,8 +40,10 @@ module Paperclip
@output_options['f'] = 'image2'
@output_options['vframes'] = 1
when 'mp4'
@output_options['acodec'] = 'aac'
@output_options['strict'] = 'experimental'
unless eligible_to_passthrough?(metadata)
@output_options['acodec'] = 'aac'
@output_options['strict'] = 'experimental'
end
if high_vfr?(metadata) && !eligible_to_passthrough?(metadata)
@output_options['vsync'] = 'vfr'

Loading…
Cancel
Save