[vlc-devel] Snapshot - 3 frames at a time
Feng Yang
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
case VOUT_SNAPSHOT:
p_vout->b_snapshot = 3; // orig: VLC_TRUE;
return VLC_SUCCESS;
break;
(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.
Regards,
Feng
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...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20050910/a0528a8f/attachment.html>
More information about the vlc-devel
mailing list