On date Thursday 2009-04-23 10:58:22 +0200, tps encoded: > tps skrev: >> Dear all >> >> I am trying to modify ffplay so two videos are shown next to each other. >> >> The problem I am getting is that frames from video 1 sometimes are >> shown where I want video 1 and sometimes where I want video 2. The >> same happens for video 2. >> >> Here is what I do: >> >> 1. In main loop I call stream_open for video 1 and for video 2 >> passing different file names. I do not set cur_stream. >> 2. The two videos come from two different video files with the same >> specification. >> 3. I add a variable to struct VideoState so the two videos can be >> identified. >> 4. In fct. video_image_display right before call of >> SDL_DisplayYUVOverlay(vp->bmp, &rect); I manipulate rect to make rect >> half size and for video 2 I add rect.w to rect.x >> >> Any help would be appreciated. [...] > If I only call SDL_DisplayYUVOverlay(vp->bmp, &rect) for video 1 I see > video 1 right where I want it. Slot for video 2 is empty. It works fine > the other way around too! > > Could it be that I can not call SDL_DisplayYUVOverlay(vp->bmp, &rect) > with a modified rect?
Check out the libavfilter-soc repo and try the overlay filter. Regards. _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
