[vlc-devel] Snapshot - 3 frames at a time
fengyang3000 at gmail.com
Sun Sep 11 05:02:58 CEST 2005
I would like to take snapshot of video 3 consecutive frames at a time. What
is the best way to do so?
Right now, I am thinking of a simple change:
(1) changing vout_intf.c
p_vout->b_snapshot = 3; // orig: VLC_TRUE;
(2) in video_output.c
if( p_picture && p_vout->b_snapshot )
p_vout->b_snapshot --; /* = VLC_FALSE; */
vout_Snapshot( p_vout, p_picture );
Is there any problem on this change? When the frame size is large, the
saving of 3 pictures to disk will take time. Would VLC guarentees that 3
consecutive frames are save?
Thanks in advance.
P.S. Actually, is it possible to buffer 3 frame first and then save it in
one shot. I would prefer this way if possible.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vlc-devel