Skip to content

Commit 4c7ded0

Browse files
committedSep 5, 2024·
remove prior try
1 parent 01ede5d commit 4c7ded0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/ffmpeg/transcoder.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def pre_encode_if_necessary
108108
complex_filter = ""
109109
unless @transcoder_options[:permit_dynamic_resolution_pre_encode]
110110
puts "Applying filter complex due to not being trim"
111-
complex_filter = "-filter_complex \"[0:v]scale=#{max_width}:#{max_height},scale=#{max_width}:#{max_height}:force_original_aspect_ratio=decrease,pad=#{max_width}:#{max_height}:(ow-iw)/2:(oh-ih)/2:color=black,setsar=1[Scaled]\" -map \"[Scaled]\" #{audio_map}"
111+
complex_filter = "-filter_complex \"[0:v]scale=#{max_width}:#{max_height}:force_original_aspect_ratio=decrease,pad=#{max_width}:#{max_height}:(ow-iw)/2:(oh-ih)/2:color=black,setsar=1[Scaled]\" -map \"[Scaled]\" #{audio_map}"
112112
end
113113

114114
puts "pre_encode_options: #{pre_encode_options}"

0 commit comments

Comments
 (0)
Please sign in to comment.