Skip to content
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

Support BufferedImage formats other than TYPE_3BYTE_BGR #23

Open
zakgof opened this issue Dec 19, 2019 · 3 comments
Open

Support BufferedImage formats other than TYPE_3BYTE_BGR #23

zakgof opened this issue Dec 19, 2019 · 3 comments
Labels
accepted Reproducible and ready to work on bug Something isn't working

Comments

@zakgof
Copy link
Owner

zakgof commented Dec 19, 2019

No description provided.

@zakgof zakgof added bug Something isn't working accepted Reproducible and ready to work on labels Dec 19, 2019
@zakgof
Copy link
Owner Author

zakgof commented Dec 19, 2019

Partially fixed by converting other formats into TYPE_3BYTE_BGR using Graphics2d (slow)

@craterlake
Copy link

@zakgof just downloaded this repo and ran the test to capture screenshots to mp4. Very nice, appreciate your work.

I have a couple of questions regarding the AVC/h.264 encoder:

  1. Is there support for YUV420 format as raw picture frame?
  2. Is there support for hardware encoder? FFMPEG has following AVC encoders: h264_qsv, h264_nvenc, h264_amf (Intel, nVidia, AMD respectively).
  3. Instead of getting the output as stream, is there a way to get raw h264 data of each encoded frame?

Thanks in advance.

@zakgof
Copy link
Owner Author

zakgof commented Dec 2, 2020

Answers:

  1. Not at the moment; internally YUV420 can be used for the encoder input, but you can't just supply YUV420 frames to the encoder
  2. You can supply your own build of FFMPEG libs to make sure all the needed features are in
  3. Yes, use "h264" as a container, the output will be raw h264 data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Reproducible and ready to work on bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants