You are not logged in.
For example, I have a program that captures screenshots from x display using command:
ffmpeg -f x11grab -s cif -r 25 -i :0.0 /tmp/out.mpg
'-r 25' means there are 25 frames being captured in a second. And my question is how to process each frame(image) and decide whether I want to keep this frame or remove it right after each image is captured. I guess this should be done in C by adding some code in x11grab.c
Any ideas? Thanks!
Offline
No suggestions, but a thought. How are you planning to decide whether to keep a frame? If you are looking at content, be aware that not all frames are I-frames. I've not looked, but I'm pretty sure that ffmpeg generates P and B frames as well. http://en.wikipedia.org/wiki/Video_comp … ture_types
This is also what makes editing mpeg difficult. There is no guarantee there will be an i-frame anywhere close to your cut-in
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
No suggestions, but a thought. How are you planning to decide whether to keep a frame? If you are looking at content, be aware that not all frames are I-frames. I've not looked, but I'm pretty sure that ffmpeg generates P and B frames as well. http://en.wikipedia.org/wiki/Video_comp … ture_types
This is also what makes editing mpeg difficult. There is no guarantee there will be an i-frame anywhere close to your cut-in
Thanks for your reply. 'Keep a frame' means leave the frame whatever it should be: I, P or B, doesnt matter. 'Remove a frame' here I mean to delete from the frame sequence which could make video shorter in time.
Thanks.
Last edited by cclinus (2012-06-21 19:04:06)
Offline