Extract frames from video
This commit is contained in:
parent
3f91ad256a
commit
04ee1d8b32
3 changed files with 4 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,5 +1,7 @@
|
||||||
build/
|
build/
|
||||||
.cache
|
.cache
|
||||||
|
frames/
|
||||||
|
generated_frames/
|
||||||
|
|
||||||
# Prerequisites
|
# Prerequisites
|
||||||
*.d
|
*.d
|
||||||
|
|
1
extract_frames.sh
Normal file
1
extract_frames.sh
Normal file
|
@ -0,0 +1 @@
|
||||||
|
ffmpeg -r 1 -i bad_apple.mp4 -r 1 frames/$filename%03d.jpg
|
|
@ -69,8 +69,8 @@ int main (int argc, char *argv[])
|
||||||
{
|
{
|
||||||
auto img = LoadImage(argv[1]);
|
auto img = LoadImage(argv[1]);
|
||||||
|
|
||||||
|
SetConfigFlags(FLAG_WINDOW_HIDDEN);
|
||||||
InitWindow(img.width, img.height, "");
|
InitWindow(img.width, img.height, "");
|
||||||
SetTargetFPS(60);
|
|
||||||
|
|
||||||
std::vector<glm::uvec2> pts;
|
std::vector<glm::uvec2> pts;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue