How to play multiple video on top of each other with ffmpeg c programming -


i'm trying develop code can plays multiple videos simultaneously ffmpeg. need play video on 2x2 matrix background , video in top left corner of it. problem : top left corner video flicking , not stable enough. top-left video flicking while playing code :

sdl_surface *screen = sdl_setvideomode(640, 480, 24, 0); void video_display(videostate *is) {   sdl_rect rect;   videopicture *vp;   int w, h, x, y;   h = screen->h;   w = ((int)rint(h * aspect_ratio)) ;   if(w > screen->w) {     w = screen->w;     h = ((int)rint(w / aspect_ratio)) ;   }    rect.x = (screen->w - w) / 2;   rect.y = (screen->h - h) / 2;    if(  is->video_id == 0 ){      rect.w = w;      rect.h = h;      sdl_displayyuvoverlay(vp->bmp, &rect); // think problem on here   }   else if( is->video_id == 1 ){      rect.w = w/2;      rect.h = h/2;      sdl_displayyuvoverlay(vp->bmp, &rect);   }   

when choose 0/1, move between audio only. question : should code in order make top-left video stable view?


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -