Skip to content

Videocaputre with CAP_ANDROID makes different color frame #26616

@Pamimi

Description

@Pamimi

System Information

OpenCV version: 4.8.0
Operating System / Platform: windows10
Compiler & compiler version: GCC 9.3.0

Detailed description

VideoCapture(FilePath, CAP_ANDROID) got different color from video

Video mediainfo
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Baseline@L2
Format settings : 1 Ref Frames
Format settings, CABAC : No
Format settings, Reference frames : 1 frame
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 25 s 500 ms
Bit rate : 990 kb/s
Width : 256 pixels
Height : 256 pixels
Display aspect ratio : 1.000
Frame rate mode : Constant
Frame rate : 30.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.503
Stream size : 3.01 MiB (100%)
Codec configuration box : avcC

Steps to reproduce

VideoCapture(FilePath, CAP_ANDROID)

Issue submission checklist

  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
  • I updated to the latest OpenCV version and the issue is still there
  • There is reproducer code and related data files (videos, images, onnx, etc)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions