Alexander Benz schrieb: > Hi there, > > I'm trying to setup a partly multi threaded video pipeline but my result > images come out distorted from time to time. > It seems like some lines of the video contain lines from the previous > frames ... but I can't find the exact cause. Maybe > anyone has experienced a similar effect or knows the answer to this > problem. > > In general, what I do is the following : > > Open the Mpeg2 video stream (av_open_input_file, avcodec_find_decoder, > avcodec_open etc.) then > > 1. Read a frame from the stream (av_read_frame) > Do you call av_dup_packet for the read packets in this step? Packets may become invalid after the next call to av_read_frame if you don't duplicate their data. > 2. Decode frame (avcodec_decode_video) > 3. Do color conversion (YUV --> RGB) > 4. Display Image > > [...] > > Any help is highly appreciated :-) > > Thanks in advance, > ALex > _______________________________________________ > libav-user mailing list > [email protected] > https://lists.mplayerhq.hu/mailman/listinfo/libav-user > >
_______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
