h.265 encoding with ffmpeg, which preset question
I'm using ffmpeg on the command line to encode video from a QuickTime ProRes 4444p DCI-resolution source to h.265, y420p. It's working just fine, but I noticed something very odd: If I change nothing but the preset, the file size goes down as the encoding speed goes up:
Preset and resulting file size:
- veryslow: 5814379
- slower: 5812081
- slow: 5640739
- medium: 5455779
- fast: 5164506
- faster: 5099833
- veryfast: 5108824 (file size starts going up from this point)
My question is: This is rather the opposite from what I'd expect. Am I missing something obvious?
ffmpeg h.265
add a comment |
I'm using ffmpeg on the command line to encode video from a QuickTime ProRes 4444p DCI-resolution source to h.265, y420p. It's working just fine, but I noticed something very odd: If I change nothing but the preset, the file size goes down as the encoding speed goes up:
Preset and resulting file size:
- veryslow: 5814379
- slower: 5812081
- slow: 5640739
- medium: 5455779
- fast: 5164506
- faster: 5099833
- veryfast: 5108824 (file size starts going up from this point)
My question is: This is rather the opposite from what I'd expect. Am I missing something obvious?
ffmpeg h.265
You have to look at both the quality and the bitrate in order to explain what is happening. More bits genrally means higher quality as well (but not always, video is a complex matter )See e.g. stackoverflow.com/questions/14306205/…
– Fredrik Pihl
Dec 5 '18 at 11:38
@FredrikPihl the preset changes the encoding speed to compression ratio, thus better quality and bit-rate here does not result int better picture quality (it results in better compression). Christophe you are right, I think your file is too small, thus there is not a big difference between the presets.
– GramThanos
Jan 26 at 14:34
add a comment |
I'm using ffmpeg on the command line to encode video from a QuickTime ProRes 4444p DCI-resolution source to h.265, y420p. It's working just fine, but I noticed something very odd: If I change nothing but the preset, the file size goes down as the encoding speed goes up:
Preset and resulting file size:
- veryslow: 5814379
- slower: 5812081
- slow: 5640739
- medium: 5455779
- fast: 5164506
- faster: 5099833
- veryfast: 5108824 (file size starts going up from this point)
My question is: This is rather the opposite from what I'd expect. Am I missing something obvious?
ffmpeg h.265
I'm using ffmpeg on the command line to encode video from a QuickTime ProRes 4444p DCI-resolution source to h.265, y420p. It's working just fine, but I noticed something very odd: If I change nothing but the preset, the file size goes down as the encoding speed goes up:
Preset and resulting file size:
- veryslow: 5814379
- slower: 5812081
- slow: 5640739
- medium: 5455779
- fast: 5164506
- faster: 5099833
- veryfast: 5108824 (file size starts going up from this point)
My question is: This is rather the opposite from what I'd expect. Am I missing something obvious?
ffmpeg h.265
ffmpeg h.265
asked Nov 26 '18 at 20:58
ChristopheChristophe
1,36411524
1,36411524
You have to look at both the quality and the bitrate in order to explain what is happening. More bits genrally means higher quality as well (but not always, video is a complex matter )See e.g. stackoverflow.com/questions/14306205/…
– Fredrik Pihl
Dec 5 '18 at 11:38
@FredrikPihl the preset changes the encoding speed to compression ratio, thus better quality and bit-rate here does not result int better picture quality (it results in better compression). Christophe you are right, I think your file is too small, thus there is not a big difference between the presets.
– GramThanos
Jan 26 at 14:34
add a comment |
You have to look at both the quality and the bitrate in order to explain what is happening. More bits genrally means higher quality as well (but not always, video is a complex matter )See e.g. stackoverflow.com/questions/14306205/…
– Fredrik Pihl
Dec 5 '18 at 11:38
@FredrikPihl the preset changes the encoding speed to compression ratio, thus better quality and bit-rate here does not result int better picture quality (it results in better compression). Christophe you are right, I think your file is too small, thus there is not a big difference between the presets.
– GramThanos
Jan 26 at 14:34
You have to look at both the quality and the bitrate in order to explain what is happening. More bits genrally means higher quality as well (but not always, video is a complex matter )See e.g. stackoverflow.com/questions/14306205/…
– Fredrik Pihl
Dec 5 '18 at 11:38
You have to look at both the quality and the bitrate in order to explain what is happening. More bits genrally means higher quality as well (but not always, video is a complex matter )See e.g. stackoverflow.com/questions/14306205/…
– Fredrik Pihl
Dec 5 '18 at 11:38
@FredrikPihl the preset changes the encoding speed to compression ratio, thus better quality and bit-rate here does not result int better picture quality (it results in better compression). Christophe you are right, I think your file is too small, thus there is not a big difference between the presets.
– GramThanos
Jan 26 at 14:34
@FredrikPihl the preset changes the encoding speed to compression ratio, thus better quality and bit-rate here does not result int better picture quality (it results in better compression). Christophe you are right, I think your file is too small, thus there is not a big difference between the presets.
– GramThanos
Jan 26 at 14:34
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53488972%2fh-265-encoding-with-ffmpeg-which-preset-question%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53488972%2fh-265-encoding-with-ffmpeg-which-preset-question%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You have to look at both the quality and the bitrate in order to explain what is happening. More bits genrally means higher quality as well (but not always, video is a complex matter )See e.g. stackoverflow.com/questions/14306205/…
– Fredrik Pihl
Dec 5 '18 at 11:38
@FredrikPihl the preset changes the encoding speed to compression ratio, thus better quality and bit-rate here does not result int better picture quality (it results in better compression). Christophe you are right, I think your file is too small, thus there is not a big difference between the presets.
– GramThanos
Jan 26 at 14:34