mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-25 04:25:01 +01:00
Fix unexpected audio stream transcoding when uploaded video is eligible to passthrough (#26608)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
48ee3ae13d
commit
7802837885
@ -37,12 +37,14 @@ module Paperclip
|
|||||||
@output_options['f'] = 'image2'
|
@output_options['f'] = 'image2'
|
||||||
@output_options['vframes'] = 1
|
@output_options['vframes'] = 1
|
||||||
when 'mp4'
|
when 'mp4'
|
||||||
@output_options['acodec'] = 'aac'
|
unless eligible_to_passthrough?(metadata)
|
||||||
@output_options['strict'] = 'experimental'
|
@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['vsync'] = 'vfr'
|
||||||
@output_options['r'] = @vfr_threshold
|
@output_options['r'] = @vfr_threshold
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user