Skip to content

Incorrect rendering h265/HEVC video with alpha channel #6071

@araid

Description

@araid

Most appropriate sub-area of p5.js?

  • Accessibility
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • Build Process
  • Unit Testing
  • Internalization
  • Friendly Errors
  • Other (specify if possible)

p5.js version

1.6.0

Web browser and version

111.0.5563.64 (Official Build) (arm64)

Operating System

macOS Ventura 13.2.1

Steps to reproduce this

When using image() to render a video with an alpha channel, pixels from the previous frames are not being cleared.

Steps:

  1. Export a video with alpha channel using h265 codec (macOS can convert to by right click > encode selected video files)
  2. Load it in a p5.js script with createVideo()
  3. Display it with image()
  4. Observe frames not clearing.

Snippet:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions