How to extract images from video file?How to stream video from webcam to network with ffmpeg?Command to...
Are there any rules around when something can be described as "based on a true story"?
Map from a classifying space to a stack
'The Kukhtarev's model' or 'Kukhtarev's model' ('John's car' or 'The John's car')?
"Dear Stack Exchange, I am very disappointed in you" - How to construct a strong opening line in a letter?
How can I find out a substance name based on its structural formula?
I didn't do any exit passport control when leaving Japan. What should I do?
Why is it popular to teach modulus via the example of mod 12 and analogue clocks?
33 Months on Death Row
What's the current zodiac?
Disrespectful employee going above my head and telling me what to do. I am his manager
When was “sf” first used to describe science fiction?
What does "drop" mean in this context?
Diamondize Some Text
Secluded Grimoire and Death
Rationalism and Catholicism / Protestantism
Proofreading a novel: is it okay to use a question mark with an exclamation mark - "?!"
Negative feedbacks and "Language smoother"
How to respond when insulted by a grad student in a different department?
How can a "proper" function have a vertical slope?
How to make a PCB based on ATtiny easily updatable by end users?
First aid scissors confiscated by Dubai airport security
How can I cut a metal pipe while preserving the wires inside?
Is it reasonable to ask candidates to create a profile on Google Scholar?
Are There 3D Rules for Flying and Distance?
How to extract images from video file?
How to stream video from webcam to network with ffmpeg?Command to extract audio from video without conversionLinux showing incorrect file modified time for camera video
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{
margin-bottom:0;
}
I mean, how to generate images files from a video like screenshots.
ubuntu video images
add a comment
|
I mean, how to generate images files from a video like screenshots.
ubuntu video images
Related: superuser.com/questions/984850/… | askubuntu.com/questions/587686/…
– Ciro Santilli 新疆改造中心法轮功六四事件
Sep 8 at 3:20
add a comment
|
I mean, how to generate images files from a video like screenshots.
ubuntu video images
I mean, how to generate images files from a video like screenshots.
ubuntu video images
ubuntu video images
asked Feb 20 '15 at 9:34
remas sidoremas sido
1812 gold badges2 silver badges5 bronze badges
1812 gold badges2 silver badges5 bronze badges
Related: superuser.com/questions/984850/… | askubuntu.com/questions/587686/…
– Ciro Santilli 新疆改造中心法轮功六四事件
Sep 8 at 3:20
add a comment
|
Related: superuser.com/questions/984850/… | askubuntu.com/questions/587686/…
– Ciro Santilli 新疆改造中心法轮功六四事件
Sep 8 at 3:20
Related: superuser.com/questions/984850/… | askubuntu.com/questions/587686/…
– Ciro Santilli 新疆改造中心法轮功六四事件
Sep 8 at 3:20
Related: superuser.com/questions/984850/… | askubuntu.com/questions/587686/…
– Ciro Santilli 新疆改造中心法轮功六四事件
Sep 8 at 3:20
add a comment
|
4 Answers
4
active
oldest
votes
Try with ffmpeg
ffmpeg -i inputfile.avi -r 1 -f image2 image-%3d.jpeg
You can read the documentation here
1
your link seems be broken
– Nolwennig
Feb 24 '16 at 9:10
@Nolwennig. Fixed, not as specific as the previous one but at least is the official documentation and hardly to be broken.
– YoMismo
Jun 23 '16 at 6:41
1
-r 1
is for the number of images per sec. So for 60ips, or 24, it's-r 24
. And to limit the extract, it's-ss [start] -t [duration]
.
– Sandburg
Jun 1 '18 at 21:12
Thanks, work fine on Xubuntu
– Indacochea Wachín
Jul 27 at 2:45
add a comment
|
I have just downloaded the latest version of VLC for Windows 32 - 2.1.2 Rincewind and it works fine to do this.
Steps:
1 - Click Tools > Preferences and click radio button All
2 - Scroll down and click the + sign next to Video to expand
3 - Scroll down and click on Scene Filter and fill in the info for Directory Path prefix (where you want to save frames). Don't click Save.
4 - Scroll up and click on the word Video under Filters
5 - Click the check box for Scene video filter and click Save.
6 - Open and run a video and it will save .png's
7 - To stop saving frames go back to step 5 and uncheck Scene video filter.
Easy really once you know where to find the settings.
add a comment
|
Hope this help
#!/bin/bash
source_dir="."
output_dir="."
input_file_types=(avi wmv flv mkv mpg mp4)
output_file_type="jpg"
convert() {
echo "" | ffmpeg -ss $ss -y -i "$in_file" -an -f image2 -vframes 1 "$output_dir/$out_file"
}
for input_file_types in "${input_file_types[@]}"
do
find "$source_dir" -name "*.$input_file_types" -print0 | while IFS= read -r -d $'' in_file
do
echo "Processing…"
echo ">Input "$in_file
# Replace the file type
out_file=$(echo $in_file|sed "s/(.*.)$input_file_types/1$output_file_type/g")
echo ">Output "$out_file
# get video duration
# fulltime=`ffmpeg -i "$in_file" 2>&1 | grep 'Duration' | cut -d ' ' -f 4 | sed s/,//`;
# hour=`echo $fulltime | cut -d ':' -f 1`;
# minute=`echo $fulltime | cut -d ':' -f 2`;
# second=`echo $fulltime | cut -d ':' -f 3 | cut -d '.' -f 1`;
# seconds=`expr 3600 * $hour + 60 * $minute + $second`;
# ss=`expr $seconds / 2`; # from the middle of video
ss=`expr 10`; # from the 10sec of video
# Convert the file
convert "$in_file" "$out_file"
if [ $? != 0 ]
then
echo "$in_file had problems" >> ffmpeg-errors.log
fi
echo ">Finished "$out_file "nn"
done
done
add a comment
|
In VLC you can right click, Video, Take Snapshot
New contributor
add a comment
|
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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/4.0/"u003ecc by-sa 4.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%2funix.stackexchange.com%2fquestions%2f185877%2fhow-to-extract-images-from-video-file%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
Try with ffmpeg
ffmpeg -i inputfile.avi -r 1 -f image2 image-%3d.jpeg
You can read the documentation here
1
your link seems be broken
– Nolwennig
Feb 24 '16 at 9:10
@Nolwennig. Fixed, not as specific as the previous one but at least is the official documentation and hardly to be broken.
– YoMismo
Jun 23 '16 at 6:41
1
-r 1
is for the number of images per sec. So for 60ips, or 24, it's-r 24
. And to limit the extract, it's-ss [start] -t [duration]
.
– Sandburg
Jun 1 '18 at 21:12
Thanks, work fine on Xubuntu
– Indacochea Wachín
Jul 27 at 2:45
add a comment
|
Try with ffmpeg
ffmpeg -i inputfile.avi -r 1 -f image2 image-%3d.jpeg
You can read the documentation here
1
your link seems be broken
– Nolwennig
Feb 24 '16 at 9:10
@Nolwennig. Fixed, not as specific as the previous one but at least is the official documentation and hardly to be broken.
– YoMismo
Jun 23 '16 at 6:41
1
-r 1
is for the number of images per sec. So for 60ips, or 24, it's-r 24
. And to limit the extract, it's-ss [start] -t [duration]
.
– Sandburg
Jun 1 '18 at 21:12
Thanks, work fine on Xubuntu
– Indacochea Wachín
Jul 27 at 2:45
add a comment
|
Try with ffmpeg
ffmpeg -i inputfile.avi -r 1 -f image2 image-%3d.jpeg
You can read the documentation here
Try with ffmpeg
ffmpeg -i inputfile.avi -r 1 -f image2 image-%3d.jpeg
You can read the documentation here
edited Jun 23 '16 at 6:40
answered Feb 20 '15 at 9:37
YoMismoYoMismo
3,2791 gold badge10 silver badges26 bronze badges
3,2791 gold badge10 silver badges26 bronze badges
1
your link seems be broken
– Nolwennig
Feb 24 '16 at 9:10
@Nolwennig. Fixed, not as specific as the previous one but at least is the official documentation and hardly to be broken.
– YoMismo
Jun 23 '16 at 6:41
1
-r 1
is for the number of images per sec. So for 60ips, or 24, it's-r 24
. And to limit the extract, it's-ss [start] -t [duration]
.
– Sandburg
Jun 1 '18 at 21:12
Thanks, work fine on Xubuntu
– Indacochea Wachín
Jul 27 at 2:45
add a comment
|
1
your link seems be broken
– Nolwennig
Feb 24 '16 at 9:10
@Nolwennig. Fixed, not as specific as the previous one but at least is the official documentation and hardly to be broken.
– YoMismo
Jun 23 '16 at 6:41
1
-r 1
is for the number of images per sec. So for 60ips, or 24, it's-r 24
. And to limit the extract, it's-ss [start] -t [duration]
.
– Sandburg
Jun 1 '18 at 21:12
Thanks, work fine on Xubuntu
– Indacochea Wachín
Jul 27 at 2:45
1
1
your link seems be broken
– Nolwennig
Feb 24 '16 at 9:10
your link seems be broken
– Nolwennig
Feb 24 '16 at 9:10
@Nolwennig. Fixed, not as specific as the previous one but at least is the official documentation and hardly to be broken.
– YoMismo
Jun 23 '16 at 6:41
@Nolwennig. Fixed, not as specific as the previous one but at least is the official documentation and hardly to be broken.
– YoMismo
Jun 23 '16 at 6:41
1
1
-r 1
is for the number of images per sec. So for 60ips, or 24, it's -r 24
. And to limit the extract, it's -ss [start] -t [duration]
.– Sandburg
Jun 1 '18 at 21:12
-r 1
is for the number of images per sec. So for 60ips, or 24, it's -r 24
. And to limit the extract, it's -ss [start] -t [duration]
.– Sandburg
Jun 1 '18 at 21:12
Thanks, work fine on Xubuntu
– Indacochea Wachín
Jul 27 at 2:45
Thanks, work fine on Xubuntu
– Indacochea Wachín
Jul 27 at 2:45
add a comment
|
I have just downloaded the latest version of VLC for Windows 32 - 2.1.2 Rincewind and it works fine to do this.
Steps:
1 - Click Tools > Preferences and click radio button All
2 - Scroll down and click the + sign next to Video to expand
3 - Scroll down and click on Scene Filter and fill in the info for Directory Path prefix (where you want to save frames). Don't click Save.
4 - Scroll up and click on the word Video under Filters
5 - Click the check box for Scene video filter and click Save.
6 - Open and run a video and it will save .png's
7 - To stop saving frames go back to step 5 and uncheck Scene video filter.
Easy really once you know where to find the settings.
add a comment
|
I have just downloaded the latest version of VLC for Windows 32 - 2.1.2 Rincewind and it works fine to do this.
Steps:
1 - Click Tools > Preferences and click radio button All
2 - Scroll down and click the + sign next to Video to expand
3 - Scroll down and click on Scene Filter and fill in the info for Directory Path prefix (where you want to save frames). Don't click Save.
4 - Scroll up and click on the word Video under Filters
5 - Click the check box for Scene video filter and click Save.
6 - Open and run a video and it will save .png's
7 - To stop saving frames go back to step 5 and uncheck Scene video filter.
Easy really once you know where to find the settings.
add a comment
|
I have just downloaded the latest version of VLC for Windows 32 - 2.1.2 Rincewind and it works fine to do this.
Steps:
1 - Click Tools > Preferences and click radio button All
2 - Scroll down and click the + sign next to Video to expand
3 - Scroll down and click on Scene Filter and fill in the info for Directory Path prefix (where you want to save frames). Don't click Save.
4 - Scroll up and click on the word Video under Filters
5 - Click the check box for Scene video filter and click Save.
6 - Open and run a video and it will save .png's
7 - To stop saving frames go back to step 5 and uncheck Scene video filter.
Easy really once you know where to find the settings.
I have just downloaded the latest version of VLC for Windows 32 - 2.1.2 Rincewind and it works fine to do this.
Steps:
1 - Click Tools > Preferences and click radio button All
2 - Scroll down and click the + sign next to Video to expand
3 - Scroll down and click on Scene Filter and fill in the info for Directory Path prefix (where you want to save frames). Don't click Save.
4 - Scroll up and click on the word Video under Filters
5 - Click the check box for Scene video filter and click Save.
6 - Open and run a video and it will save .png's
7 - To stop saving frames go back to step 5 and uncheck Scene video filter.
Easy really once you know where to find the settings.
answered Feb 20 '15 at 9:47
Florence TaylorFlorence Taylor
391 bronze badge
391 bronze badge
add a comment
|
add a comment
|
Hope this help
#!/bin/bash
source_dir="."
output_dir="."
input_file_types=(avi wmv flv mkv mpg mp4)
output_file_type="jpg"
convert() {
echo "" | ffmpeg -ss $ss -y -i "$in_file" -an -f image2 -vframes 1 "$output_dir/$out_file"
}
for input_file_types in "${input_file_types[@]}"
do
find "$source_dir" -name "*.$input_file_types" -print0 | while IFS= read -r -d $'' in_file
do
echo "Processing…"
echo ">Input "$in_file
# Replace the file type
out_file=$(echo $in_file|sed "s/(.*.)$input_file_types/1$output_file_type/g")
echo ">Output "$out_file
# get video duration
# fulltime=`ffmpeg -i "$in_file" 2>&1 | grep 'Duration' | cut -d ' ' -f 4 | sed s/,//`;
# hour=`echo $fulltime | cut -d ':' -f 1`;
# minute=`echo $fulltime | cut -d ':' -f 2`;
# second=`echo $fulltime | cut -d ':' -f 3 | cut -d '.' -f 1`;
# seconds=`expr 3600 * $hour + 60 * $minute + $second`;
# ss=`expr $seconds / 2`; # from the middle of video
ss=`expr 10`; # from the 10sec of video
# Convert the file
convert "$in_file" "$out_file"
if [ $? != 0 ]
then
echo "$in_file had problems" >> ffmpeg-errors.log
fi
echo ">Finished "$out_file "nn"
done
done
add a comment
|
Hope this help
#!/bin/bash
source_dir="."
output_dir="."
input_file_types=(avi wmv flv mkv mpg mp4)
output_file_type="jpg"
convert() {
echo "" | ffmpeg -ss $ss -y -i "$in_file" -an -f image2 -vframes 1 "$output_dir/$out_file"
}
for input_file_types in "${input_file_types[@]}"
do
find "$source_dir" -name "*.$input_file_types" -print0 | while IFS= read -r -d $'' in_file
do
echo "Processing…"
echo ">Input "$in_file
# Replace the file type
out_file=$(echo $in_file|sed "s/(.*.)$input_file_types/1$output_file_type/g")
echo ">Output "$out_file
# get video duration
# fulltime=`ffmpeg -i "$in_file" 2>&1 | grep 'Duration' | cut -d ' ' -f 4 | sed s/,//`;
# hour=`echo $fulltime | cut -d ':' -f 1`;
# minute=`echo $fulltime | cut -d ':' -f 2`;
# second=`echo $fulltime | cut -d ':' -f 3 | cut -d '.' -f 1`;
# seconds=`expr 3600 * $hour + 60 * $minute + $second`;
# ss=`expr $seconds / 2`; # from the middle of video
ss=`expr 10`; # from the 10sec of video
# Convert the file
convert "$in_file" "$out_file"
if [ $? != 0 ]
then
echo "$in_file had problems" >> ffmpeg-errors.log
fi
echo ">Finished "$out_file "nn"
done
done
add a comment
|
Hope this help
#!/bin/bash
source_dir="."
output_dir="."
input_file_types=(avi wmv flv mkv mpg mp4)
output_file_type="jpg"
convert() {
echo "" | ffmpeg -ss $ss -y -i "$in_file" -an -f image2 -vframes 1 "$output_dir/$out_file"
}
for input_file_types in "${input_file_types[@]}"
do
find "$source_dir" -name "*.$input_file_types" -print0 | while IFS= read -r -d $'' in_file
do
echo "Processing…"
echo ">Input "$in_file
# Replace the file type
out_file=$(echo $in_file|sed "s/(.*.)$input_file_types/1$output_file_type/g")
echo ">Output "$out_file
# get video duration
# fulltime=`ffmpeg -i "$in_file" 2>&1 | grep 'Duration' | cut -d ' ' -f 4 | sed s/,//`;
# hour=`echo $fulltime | cut -d ':' -f 1`;
# minute=`echo $fulltime | cut -d ':' -f 2`;
# second=`echo $fulltime | cut -d ':' -f 3 | cut -d '.' -f 1`;
# seconds=`expr 3600 * $hour + 60 * $minute + $second`;
# ss=`expr $seconds / 2`; # from the middle of video
ss=`expr 10`; # from the 10sec of video
# Convert the file
convert "$in_file" "$out_file"
if [ $? != 0 ]
then
echo "$in_file had problems" >> ffmpeg-errors.log
fi
echo ">Finished "$out_file "nn"
done
done
Hope this help
#!/bin/bash
source_dir="."
output_dir="."
input_file_types=(avi wmv flv mkv mpg mp4)
output_file_type="jpg"
convert() {
echo "" | ffmpeg -ss $ss -y -i "$in_file" -an -f image2 -vframes 1 "$output_dir/$out_file"
}
for input_file_types in "${input_file_types[@]}"
do
find "$source_dir" -name "*.$input_file_types" -print0 | while IFS= read -r -d $'' in_file
do
echo "Processing…"
echo ">Input "$in_file
# Replace the file type
out_file=$(echo $in_file|sed "s/(.*.)$input_file_types/1$output_file_type/g")
echo ">Output "$out_file
# get video duration
# fulltime=`ffmpeg -i "$in_file" 2>&1 | grep 'Duration' | cut -d ' ' -f 4 | sed s/,//`;
# hour=`echo $fulltime | cut -d ':' -f 1`;
# minute=`echo $fulltime | cut -d ':' -f 2`;
# second=`echo $fulltime | cut -d ':' -f 3 | cut -d '.' -f 1`;
# seconds=`expr 3600 * $hour + 60 * $minute + $second`;
# ss=`expr $seconds / 2`; # from the middle of video
ss=`expr 10`; # from the 10sec of video
# Convert the file
convert "$in_file" "$out_file"
if [ $? != 0 ]
then
echo "$in_file had problems" >> ffmpeg-errors.log
fi
echo ">Finished "$out_file "nn"
done
done
answered Feb 3 at 16:28
TomTom
1
1
add a comment
|
add a comment
|
In VLC you can right click, Video, Take Snapshot
New contributor
add a comment
|
In VLC you can right click, Video, Take Snapshot
New contributor
add a comment
|
In VLC you can right click, Video, Take Snapshot
New contributor
In VLC you can right click, Video, Take Snapshot
New contributor
New contributor
answered 2 hours ago
user375835user375835
1
1
New contributor
New contributor
add a comment
|
add a comment
|
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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%2funix.stackexchange.com%2fquestions%2f185877%2fhow-to-extract-images-from-video-file%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
Related: superuser.com/questions/984850/… | askubuntu.com/questions/587686/…
– Ciro Santilli 新疆改造中心法轮功六四事件
Sep 8 at 3:20