Jump past the navigation
Menu
Log in

53455028.jpg

If you need the compression of a JPEG, you cannot simply rename the buffer. You must use a library like jpeglib to compress the raw frame data before writing it to the disk. Summary Checklist for Developers

Use a if you need to "grab" a specific frame from the stream.

These are raw formats. While they look similar to the eye, they handle color data differently at the bit level.

This is the easiest method. Since a BMP is essentially raw pixel data with a header, you can write the buffer directly to a file following standard BMP file formatting.

Depending on your project requirements, you have two main paths for saving a frame:

Contact

This website uses anonymised cookies to optimise your user experience and for analysis of our website. We do this with the aim of providing the best experience and showing personalised ads. Consenting technologies allow us to process data such as browsing behaviour or unique IDs on this site. If you do not consent or withdraw consent, certain features and functions may be adversely affected.

Third-party cookies are set when YouTube videos are displayed and played.

Click ‘Accept’ if you agree to this use of cookies, click ‘Decline’ if you do not accept the cookies.

Read more about this in our privacy policy: privacybeleid

Read more about this in our cookie policy: cookiebeleid