We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2df95d commit 5c34c87Copy full SHA for 5c34c87
1 file changed
encode.avs
@@ -169,6 +169,15 @@ width = (ARCorrection \
169
.ForceModulo(mod, true)
170
hStretch= height / last.height
171
172
+# YouTube has a 4K width limit of 3840
173
+if (hd && (width > 3840)) {
174
+ width = 3840
175
+ height = (ARCorrection \
176
+ ? width * hAspect / wAspect \
177
+ : width * last.height / last.width) \
178
+ .ForceModulo(mod, true)
179
+}
180
+
181
# Rescaling
182
# hd: resize to 4K, then just subsample with lanczos in the end
183
# handheld: do nothing
0 commit comments