ffmpeg extract lossless image from video












2














I have a 5s fps25 mp4 video and I use the following command to extract jpg images from the video



ffmpeg -i input.mp4 -r 1 -q:v 1 output_%01d.jpg


The images are extracted successfully, but jpg files quality isn't good enough.



How can I extract better quality images?










share|improve this question






















  • try using value 2 instead of 1 in -qscale:v
    – Rico
    Jan 28 '16 at 11:59
















2














I have a 5s fps25 mp4 video and I use the following command to extract jpg images from the video



ffmpeg -i input.mp4 -r 1 -q:v 1 output_%01d.jpg


The images are extracted successfully, but jpg files quality isn't good enough.



How can I extract better quality images?










share|improve this question






















  • try using value 2 instead of 1 in -qscale:v
    – Rico
    Jan 28 '16 at 11:59














2












2








2


1





I have a 5s fps25 mp4 video and I use the following command to extract jpg images from the video



ffmpeg -i input.mp4 -r 1 -q:v 1 output_%01d.jpg


The images are extracted successfully, but jpg files quality isn't good enough.



How can I extract better quality images?










share|improve this question













I have a 5s fps25 mp4 video and I use the following command to extract jpg images from the video



ffmpeg -i input.mp4 -r 1 -q:v 1 output_%01d.jpg


The images are extracted successfully, but jpg files quality isn't good enough.



How can I extract better quality images?







video ffmpeg images jpeg extract






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 28 '16 at 11:41









Chito Cheng

3027




3027












  • try using value 2 instead of 1 in -qscale:v
    – Rico
    Jan 28 '16 at 11:59


















  • try using value 2 instead of 1 in -qscale:v
    – Rico
    Jan 28 '16 at 11:59
















try using value 2 instead of 1 in -qscale:v
– Rico
Jan 28 '16 at 11:59




try using value 2 instead of 1 in -qscale:v
– Rico
Jan 28 '16 at 11:59










1 Answer
1






active

oldest

votes


















2














Try



ffmpeg -i input.mp4 -r 1 -q:v 1 -qmin 1 -qmax 1 output_%01d.jpg


If not good enough, use



ffmpeg -i input.mp4 -r 1 output_%01d.bmp 


and use another JPEG encoder.






share|improve this answer























  • i get error-"qmin and or qmax are invalid, they must be 0 < min <= max" using first command..i tried setting-"-qmin","0", "-qmax","1" but still same error..
    – Android Learner
    Dec 8 at 10:27












  • See updated cmd.
    – Gyan
    Dec 8 at 10:49











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1032503%2fffmpeg-extract-lossless-image-from-video%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2














Try



ffmpeg -i input.mp4 -r 1 -q:v 1 -qmin 1 -qmax 1 output_%01d.jpg


If not good enough, use



ffmpeg -i input.mp4 -r 1 output_%01d.bmp 


and use another JPEG encoder.






share|improve this answer























  • i get error-"qmin and or qmax are invalid, they must be 0 < min <= max" using first command..i tried setting-"-qmin","0", "-qmax","1" but still same error..
    – Android Learner
    Dec 8 at 10:27












  • See updated cmd.
    – Gyan
    Dec 8 at 10:49
















2














Try



ffmpeg -i input.mp4 -r 1 -q:v 1 -qmin 1 -qmax 1 output_%01d.jpg


If not good enough, use



ffmpeg -i input.mp4 -r 1 output_%01d.bmp 


and use another JPEG encoder.






share|improve this answer























  • i get error-"qmin and or qmax are invalid, they must be 0 < min <= max" using first command..i tried setting-"-qmin","0", "-qmax","1" but still same error..
    – Android Learner
    Dec 8 at 10:27












  • See updated cmd.
    – Gyan
    Dec 8 at 10:49














2












2








2






Try



ffmpeg -i input.mp4 -r 1 -q:v 1 -qmin 1 -qmax 1 output_%01d.jpg


If not good enough, use



ffmpeg -i input.mp4 -r 1 output_%01d.bmp 


and use another JPEG encoder.






share|improve this answer














Try



ffmpeg -i input.mp4 -r 1 -q:v 1 -qmin 1 -qmax 1 output_%01d.jpg


If not good enough, use



ffmpeg -i input.mp4 -r 1 output_%01d.bmp 


and use another JPEG encoder.







share|improve this answer














share|improve this answer



share|improve this answer








edited Dec 8 at 10:49

























answered Jan 28 '16 at 12:03









Gyan

14.5k21644




14.5k21644












  • i get error-"qmin and or qmax are invalid, they must be 0 < min <= max" using first command..i tried setting-"-qmin","0", "-qmax","1" but still same error..
    – Android Learner
    Dec 8 at 10:27












  • See updated cmd.
    – Gyan
    Dec 8 at 10:49


















  • i get error-"qmin and or qmax are invalid, they must be 0 < min <= max" using first command..i tried setting-"-qmin","0", "-qmax","1" but still same error..
    – Android Learner
    Dec 8 at 10:27












  • See updated cmd.
    – Gyan
    Dec 8 at 10:49
















i get error-"qmin and or qmax are invalid, they must be 0 < min <= max" using first command..i tried setting-"-qmin","0", "-qmax","1" but still same error..
– Android Learner
Dec 8 at 10:27






i get error-"qmin and or qmax are invalid, they must be 0 < min <= max" using first command..i tried setting-"-qmin","0", "-qmax","1" but still same error..
– Android Learner
Dec 8 at 10:27














See updated cmd.
– Gyan
Dec 8 at 10:49




See updated cmd.
– Gyan
Dec 8 at 10:49


















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • 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.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • 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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1032503%2fffmpeg-extract-lossless-image-from-video%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

Plaza Victoria

Puebla de Zaragoza

Musa