[Libav-user] usb-camera fill realtime buffer

pi88el itwasntpete at ist-einmalig.de
Wed Oct 31 10:43:47 CET 2012


hi guy's,
i'new in libav and have a little problem.

i have a thread which read frames from a usb-camera. this is happening in a
thread, which i made pauseable. but when i pause the thread the real time
buffer stil get filled with frames from the camera until it is full. so when
i continue the thread, first i see the old frames.
question: how do i flush the relatime buffer.
i tried to free the packet buffers (seen in utils).
flush_packet_queue(AVFormatContext *s) or
ff_read_frame_flush(AVFormatContext *s) (which is also calling
flush_packet_queue()). but no effect.
when i take a video as input, everything goes fine.

thanks for every inspiration.

pete



--
View this message in context: http://libav-users.943685.n4.nabble.com/usb-camera-fill-realtime-buffer-tp4655970.html
Sent from the libav-users mailing list archive at Nabble.com.


More information about the Libav-user mailing list