Two questions about using FFmpeg on Debian











up vote
0
down vote

favorite












There are a couple of questions about using FFmpeg.





  1. I use Debian stable branch. I make separate caps from a video file. A very long time. I would like to understand how this can be optimized? What parameter should be set or group of parameters?



    I have a video with a resolution of 1280×720, the time to create screenshots is about 5 minutes. It is too long.  Maybe there is a special option for optimization?



  2. I want to get a certain number of caps from the video. What parameter is responsible for this?


We are talking about individual frames from the video, they are also called screenshots. Ffmpeg needs to create a certain number of screenshots from a video file. For example, I have a video of 1 hour. You need to get 15 separate screenshots. It happens that individual screenshots should be taken every fourth minute of this video.










share|improve this question









New contributor




CarambaMamba is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • 1) probably faster way here: stackoverflow.com/questions/27568254/…. ffmpeg -ss 01:23:45 -i input -vframes 1 -q:v 2 output.jpg. And 2) Not sure what do You mean by caps, a properties, then use a tool called ffprobe. It included in ffmpeg package. just run ffprobe yourfile.
    – NoAngel
    Nov 15 at 5:41






  • 1




    I see. So You need extract some frames from some files at specified time. Well, slightly modified command line does it: ffmpeg -ss 00:00:00.00.000 -i yourfile.mp4 -vframes 60 thumb%04d.jpg. This uses yourfile.mp4 (You may specify any file in any format supported by ffmpeg). -ss specify seek time, ffmpeg will start capture frames in sequence from here. Specify how many frames to capture after -vframes for example, 60. and finally output file pattern thumb%04d.jpg does thumb0001.jpg, thumb0002.jpg,...
    – NoAngel
    Nov 15 at 7:37








  • 1




    Now You have many files, then run command above per file. I don't think ffmpeg can process many files at once in this mode.
    – NoAngel
    Nov 15 at 7:40






  • 1




    Oops, try 01:00:00.000 hh:MM:ss.mmm hh hour MM minute ss second mmm millisecond.
    – NoAngel
    Nov 15 at 7:52






  • 1




    please forgive me, but again we did not understand each other. we are talking about individual frames from the video, they are also called screenshots ffmpeg needs to create a certain number of screenshots from a video file. for example, I have a video of 1 hour. You need to get 15 separate screenshots. It happens that individual screenshots should be taken every fourth minute of this video.
    – CarambaMamba
    Nov 15 at 8:49















up vote
0
down vote

favorite












There are a couple of questions about using FFmpeg.





  1. I use Debian stable branch. I make separate caps from a video file. A very long time. I would like to understand how this can be optimized? What parameter should be set or group of parameters?



    I have a video with a resolution of 1280×720, the time to create screenshots is about 5 minutes. It is too long.  Maybe there is a special option for optimization?



  2. I want to get a certain number of caps from the video. What parameter is responsible for this?


We are talking about individual frames from the video, they are also called screenshots. Ffmpeg needs to create a certain number of screenshots from a video file. For example, I have a video of 1 hour. You need to get 15 separate screenshots. It happens that individual screenshots should be taken every fourth minute of this video.










share|improve this question









New contributor




CarambaMamba is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • 1) probably faster way here: stackoverflow.com/questions/27568254/…. ffmpeg -ss 01:23:45 -i input -vframes 1 -q:v 2 output.jpg. And 2) Not sure what do You mean by caps, a properties, then use a tool called ffprobe. It included in ffmpeg package. just run ffprobe yourfile.
    – NoAngel
    Nov 15 at 5:41






  • 1




    I see. So You need extract some frames from some files at specified time. Well, slightly modified command line does it: ffmpeg -ss 00:00:00.00.000 -i yourfile.mp4 -vframes 60 thumb%04d.jpg. This uses yourfile.mp4 (You may specify any file in any format supported by ffmpeg). -ss specify seek time, ffmpeg will start capture frames in sequence from here. Specify how many frames to capture after -vframes for example, 60. and finally output file pattern thumb%04d.jpg does thumb0001.jpg, thumb0002.jpg,...
    – NoAngel
    Nov 15 at 7:37








  • 1




    Now You have many files, then run command above per file. I don't think ffmpeg can process many files at once in this mode.
    – NoAngel
    Nov 15 at 7:40






  • 1




    Oops, try 01:00:00.000 hh:MM:ss.mmm hh hour MM minute ss second mmm millisecond.
    – NoAngel
    Nov 15 at 7:52






  • 1




    please forgive me, but again we did not understand each other. we are talking about individual frames from the video, they are also called screenshots ffmpeg needs to create a certain number of screenshots from a video file. for example, I have a video of 1 hour. You need to get 15 separate screenshots. It happens that individual screenshots should be taken every fourth minute of this video.
    – CarambaMamba
    Nov 15 at 8:49













up vote
0
down vote

favorite









up vote
0
down vote

favorite











There are a couple of questions about using FFmpeg.





  1. I use Debian stable branch. I make separate caps from a video file. A very long time. I would like to understand how this can be optimized? What parameter should be set or group of parameters?



    I have a video with a resolution of 1280×720, the time to create screenshots is about 5 minutes. It is too long.  Maybe there is a special option for optimization?



  2. I want to get a certain number of caps from the video. What parameter is responsible for this?


We are talking about individual frames from the video, they are also called screenshots. Ffmpeg needs to create a certain number of screenshots from a video file. For example, I have a video of 1 hour. You need to get 15 separate screenshots. It happens that individual screenshots should be taken every fourth minute of this video.










share|improve this question









New contributor




CarambaMamba is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











There are a couple of questions about using FFmpeg.





  1. I use Debian stable branch. I make separate caps from a video file. A very long time. I would like to understand how this can be optimized? What parameter should be set or group of parameters?



    I have a video with a resolution of 1280×720, the time to create screenshots is about 5 minutes. It is too long.  Maybe there is a special option for optimization?



  2. I want to get a certain number of caps from the video. What parameter is responsible for this?


We are talking about individual frames from the video, they are also called screenshots. Ffmpeg needs to create a certain number of screenshots from a video file. For example, I have a video of 1 hour. You need to get 15 separate screenshots. It happens that individual screenshots should be taken every fourth minute of this video.







linux debian video ffmpeg






share|improve this question









New contributor




CarambaMamba is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




CarambaMamba is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited Nov 16 at 7:50









dirkt

8,51331120




8,51331120






New contributor




CarambaMamba is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Nov 15 at 5:08









CarambaMamba

1




1




New contributor




CarambaMamba is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





CarambaMamba is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






CarambaMamba is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • 1) probably faster way here: stackoverflow.com/questions/27568254/…. ffmpeg -ss 01:23:45 -i input -vframes 1 -q:v 2 output.jpg. And 2) Not sure what do You mean by caps, a properties, then use a tool called ffprobe. It included in ffmpeg package. just run ffprobe yourfile.
    – NoAngel
    Nov 15 at 5:41






  • 1




    I see. So You need extract some frames from some files at specified time. Well, slightly modified command line does it: ffmpeg -ss 00:00:00.00.000 -i yourfile.mp4 -vframes 60 thumb%04d.jpg. This uses yourfile.mp4 (You may specify any file in any format supported by ffmpeg). -ss specify seek time, ffmpeg will start capture frames in sequence from here. Specify how many frames to capture after -vframes for example, 60. and finally output file pattern thumb%04d.jpg does thumb0001.jpg, thumb0002.jpg,...
    – NoAngel
    Nov 15 at 7:37








  • 1




    Now You have many files, then run command above per file. I don't think ffmpeg can process many files at once in this mode.
    – NoAngel
    Nov 15 at 7:40






  • 1




    Oops, try 01:00:00.000 hh:MM:ss.mmm hh hour MM minute ss second mmm millisecond.
    – NoAngel
    Nov 15 at 7:52






  • 1




    please forgive me, but again we did not understand each other. we are talking about individual frames from the video, they are also called screenshots ffmpeg needs to create a certain number of screenshots from a video file. for example, I have a video of 1 hour. You need to get 15 separate screenshots. It happens that individual screenshots should be taken every fourth minute of this video.
    – CarambaMamba
    Nov 15 at 8:49


















  • 1) probably faster way here: stackoverflow.com/questions/27568254/…. ffmpeg -ss 01:23:45 -i input -vframes 1 -q:v 2 output.jpg. And 2) Not sure what do You mean by caps, a properties, then use a tool called ffprobe. It included in ffmpeg package. just run ffprobe yourfile.
    – NoAngel
    Nov 15 at 5:41






  • 1




    I see. So You need extract some frames from some files at specified time. Well, slightly modified command line does it: ffmpeg -ss 00:00:00.00.000 -i yourfile.mp4 -vframes 60 thumb%04d.jpg. This uses yourfile.mp4 (You may specify any file in any format supported by ffmpeg). -ss specify seek time, ffmpeg will start capture frames in sequence from here. Specify how many frames to capture after -vframes for example, 60. and finally output file pattern thumb%04d.jpg does thumb0001.jpg, thumb0002.jpg,...
    – NoAngel
    Nov 15 at 7:37








  • 1




    Now You have many files, then run command above per file. I don't think ffmpeg can process many files at once in this mode.
    – NoAngel
    Nov 15 at 7:40






  • 1




    Oops, try 01:00:00.000 hh:MM:ss.mmm hh hour MM minute ss second mmm millisecond.
    – NoAngel
    Nov 15 at 7:52






  • 1




    please forgive me, but again we did not understand each other. we are talking about individual frames from the video, they are also called screenshots ffmpeg needs to create a certain number of screenshots from a video file. for example, I have a video of 1 hour. You need to get 15 separate screenshots. It happens that individual screenshots should be taken every fourth minute of this video.
    – CarambaMamba
    Nov 15 at 8:49
















1) probably faster way here: stackoverflow.com/questions/27568254/…. ffmpeg -ss 01:23:45 -i input -vframes 1 -q:v 2 output.jpg. And 2) Not sure what do You mean by caps, a properties, then use a tool called ffprobe. It included in ffmpeg package. just run ffprobe yourfile.
– NoAngel
Nov 15 at 5:41




1) probably faster way here: stackoverflow.com/questions/27568254/…. ffmpeg -ss 01:23:45 -i input -vframes 1 -q:v 2 output.jpg. And 2) Not sure what do You mean by caps, a properties, then use a tool called ffprobe. It included in ffmpeg package. just run ffprobe yourfile.
– NoAngel
Nov 15 at 5:41




1




1




I see. So You need extract some frames from some files at specified time. Well, slightly modified command line does it: ffmpeg -ss 00:00:00.00.000 -i yourfile.mp4 -vframes 60 thumb%04d.jpg. This uses yourfile.mp4 (You may specify any file in any format supported by ffmpeg). -ss specify seek time, ffmpeg will start capture frames in sequence from here. Specify how many frames to capture after -vframes for example, 60. and finally output file pattern thumb%04d.jpg does thumb0001.jpg, thumb0002.jpg,...
– NoAngel
Nov 15 at 7:37






I see. So You need extract some frames from some files at specified time. Well, slightly modified command line does it: ffmpeg -ss 00:00:00.00.000 -i yourfile.mp4 -vframes 60 thumb%04d.jpg. This uses yourfile.mp4 (You may specify any file in any format supported by ffmpeg). -ss specify seek time, ffmpeg will start capture frames in sequence from here. Specify how many frames to capture after -vframes for example, 60. and finally output file pattern thumb%04d.jpg does thumb0001.jpg, thumb0002.jpg,...
– NoAngel
Nov 15 at 7:37






1




1




Now You have many files, then run command above per file. I don't think ffmpeg can process many files at once in this mode.
– NoAngel
Nov 15 at 7:40




Now You have many files, then run command above per file. I don't think ffmpeg can process many files at once in this mode.
– NoAngel
Nov 15 at 7:40




1




1




Oops, try 01:00:00.000 hh:MM:ss.mmm hh hour MM minute ss second mmm millisecond.
– NoAngel
Nov 15 at 7:52




Oops, try 01:00:00.000 hh:MM:ss.mmm hh hour MM minute ss second mmm millisecond.
– NoAngel
Nov 15 at 7:52




1




1




please forgive me, but again we did not understand each other. we are talking about individual frames from the video, they are also called screenshots ffmpeg needs to create a certain number of screenshots from a video file. for example, I have a video of 1 hour. You need to get 15 separate screenshots. It happens that individual screenshots should be taken every fourth minute of this video.
– CarambaMamba
Nov 15 at 8:49




please forgive me, but again we did not understand each other. we are talking about individual frames from the video, they are also called screenshots ffmpeg needs to create a certain number of screenshots from a video file. for example, I have a video of 1 hour. You need to get 15 separate screenshots. It happens that individual screenshots should be taken every fourth minute of this video.
– CarambaMamba
Nov 15 at 8:49















active

oldest

votes











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',
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
});


}
});






CarambaMamba is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1375543%2ftwo-questions-about-using-ffmpeg-on-debian%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes








CarambaMamba is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















CarambaMamba is a new contributor. Be nice, and check out our Code of Conduct.













CarambaMamba is a new contributor. Be nice, and check out our Code of Conduct.












CarambaMamba is a new contributor. Be nice, and check out our Code of Conduct.















 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1375543%2ftwo-questions-about-using-ffmpeg-on-debian%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

Probability when a professor distributes a quiz and homework assignment to a class of n students.

Aardman Animations

Are they similar matrix