New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: How to generate palette by Javacv/FFmpeg-FFmpegFrameFilter? #287
Comments
It looks like it's expecting us to call some function before we can pull the result. I wonder which function that is... Documentation for FFmpeg is available here: https://ffmpeg.org/documentation.html There isn't a lot available for JavaCV I'm afraid, so if this is something you'd like to work on it would be very welcome. Reading FFmpeg's documentation should help with that. Let me know if you have other questions that I might be able to answer, thanks! |
@saudet Got it. I'll try my best to help. |
It should now work with the commit above by calling |
@saudet It works.I got the 16*16 Frame from Could you tell me that how do you learn the usage below // indicate EOF as required, for example, by the "palettegen" filter
av_buffersrc_add_frame_flags(buffersrc_ctx, null, 0); from Documentation for FFmpeg https://ffmpeg.org/documentation.html ? |
It's not part of the documentation. I just saw from the code at |
And |
I see! Thanks. I'm trying to learn how to use "paletteuse" filter.I will report if I found something useful. I hope it could help. |
Thanks! The fix is now included in JavaCV since version 1.2. |
from the FFmpeg documentation:
What I have done:
Here I guess I could get the palette by frame_get, however, what I get is null.
The code above is just to test. I want to know how to generate palette from each frame of video stream and from the whole video stream. Also, how to program to use the palette as command below:
Is there any way to learn about programming of JavaCV/FFmpeg?
Or if you know anything about that, please help me.
The text was updated successfully, but these errors were encountered: