Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a way to generate 30fps videos. #13

Open
TrebuhD opened this issue Jul 5, 2015 · 3 comments
Open

Add a way to generate 30fps videos. #13

TrebuhD opened this issue Jul 5, 2015 · 3 comments

Comments

@TrebuhD
Copy link

TrebuhD commented Jul 5, 2015

Would be pretty cool for short videos.

@quantombone
Copy link
Member

It is definitely possible. If you take a look at youtube.sh, you'll see the following line:

ffmpeg -i /tmp/video.mp4 -r 1 -t 100 -f image2 /tmp/images/image-%05d.jpg

These options extract a frame every second for the first 100 seconds, but FFmpeg can do a whole lot more.

You can take a look at the FFmpeg tutorial to see how to change this to get 30fps:
https://trac.ffmpeg.org/wiki/Create%20a%20thumbnail%20image%20every%20X%20seconds%20of%20the%20video

The CPU version of Caffe might not be fast enough to do this if you want to process every frame. Depending on the sizes of the frames and the total number of frames, it might take a few days to process a medium-length video.

@TrebuhD
Copy link
Author

TrebuhD commented Jul 5, 2015

Thanks! There are videos less than 5 seconds long that I'm sure would look pretty interesting. I'll try rendering some overnight.

@quantombone
Copy link
Member

Awesome, I'd love to see the final result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants