Skip to content

Commit 370c0d0

Browse files
committed
feat: switch to medium preset for h264 and h265 for higher quality, smaller size and almost same conversion time
1 parent 1c21a16 commit 370c0d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/gatsby-transformer-video/src/gatsby-node.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ exports.createResolvers = async (
227227
args: {
228228
...DEFAULT_ARGS,
229229
crf: { type: GraphQLInt, defaultValue: 31 },
230-
preset: { type: GraphQLString, defaultValue: `superfast` },
230+
preset: { type: GraphQLString, defaultValue: `medium` },
231231
maxRate: { type: GraphQLString },
232232
bufSize: { type: GraphQLString },
233233
},
@@ -240,7 +240,7 @@ exports.createResolvers = async (
240240
args: {
241241
...DEFAULT_ARGS,
242242
crf: { type: GraphQLInt, defaultValue: 36 },
243-
preset: { type: GraphQLString, defaultValue: `superfast` },
243+
preset: { type: GraphQLString, defaultValue: `medium` },
244244
maxRate: { type: GraphQLInt },
245245
bufSize: { type: GraphQLInt },
246246
},

0 commit comments

Comments
 (0)