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
Could not get pixel format for color format 'bgra' range 'unknown'. #2209
Comments
That just means the codec doesn't support BGRA. Just keep using YUVA420P... |
The (working) ffmpeg command I shown above, plus the error I get if I ever try to use
Can you have another look? |
Just for full clarity:
YUVA420P has never worked for HEVC, as the error message above suggests. |
Sounds like a bug in that codec |
Regarding the ffmpeg shell command I shown, do the provided options have an equivalent in JavaCV?
|
We can easily accomplish this with the ffmpeg program: |
How am I supposed to use that in conjunction with |
Currently, I'm creating it with: FFmpegFrameRecorder.createDefault(output, size.width, size.height) |
It looks like we need to set the range somehow to either MPEG or JPEG: |
Hello!
I'm trying to record an HEVC video with transparency/alpha channel.
I tried recording with VP9 & YUVA420P, it works fine, but with HEVC & BGRA, it leads to the error below:
Here's what I'm setting in the code prior to calling
start()
on theFFmpegFrameRecorder
:Am I missing something? Is JavaCv failing to set something that ffmpeg needs?
With the following command, I'm able to convert my VP9 video to HEVC, but this extra step is very costly when I need to record long videos.
I hope someone can help.
Thank you in advance, and have a nice day!
The text was updated successfully, but these errors were encountered: