I would like to take snapshot of video 3 consecutive frames at a time. What is the best way to do so?<br>
<br>
Right now, I am thinking of a simple change:<br>
<br>
(1) changing vout_intf.c<br>
<br>
case VOUT_SNAPSHOT:<br>
p_vout->b_snapshot = 3; // orig: VLC_TRUE; <br>
return VLC_SUCCESS;<br>
break;<br>
<br>
<br>
(2) in video_output.c<br>
<br>
if( p_picture && p_vout->b_snapshot )<br>
{<br>
p_vout->b_snapshot --; /* = VLC_FALSE; */ <br>
vout_Snapshot( p_vout, p_picture );<br>
}<br>
<br>
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?<br>
<br>
Thanks in advance.<br>
<br>
Regards,<br>
<br>
Feng<br>
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.<br>
<br>
<br>