Open ggslayer opened 1 year ago
Sounds like you might want to use a filter: https://www.ffmpeg.org/ffmpeg-filters.html
Now, I'm trying the graphics draw's direction, Is this road can go? the image from frameConverter.getBufferedImage have any different than normal image load from png? can you give me some advise on this direction? thank you I'm have little fear about filter, It looks so complex...
You can convert the frame to the Mat of OpenCV and blend them.
Hi, in code below, input a background image and a video with alpha channel. I want to give every frame a backgound image. but, every frame's transparent zone is black color, not transparent i except. please give me some help about my purpose
in the code, 1/2/3 code part is set to ABGR.
I guess:
Is my guess correct? please give me some help about my purpose, thank you.
`
FFmpegLogCallback.set();
frameGrabber = new FFmpegFrameGrabber(srcfile); frameGrabber.setPixelFormat(avutil.AV_PIX_FMT_ABGR); // 1 set to ABGR
Frame captured_frame = null;
try { frameGrabber.start();
}
public static Frame MixFrameDraw(Frame frame){ BufferedImage imgFrame = frameConverter.getBufferedImage(frame);
}
`