Skip to content

getScaledFrameAtTime returns black bitmap on some videos #265

@DeVictorVH

Description

@DeVictorVH

final FFmpegMediaMetadataRetriever retriever = new FFmpegMediaMetadataRetriever();
retriever.setDataSource(source.getPath());
final Bitmap bitmap = retriever.getScaledFrameAtTime(10000000L, width, height);

It returns black bitmap on some videos, but using a different option (FFmpegMediaMetadataRetriever.OPTION_CLOSEST, OPTION_CLOSEST_SYNC, etc) fixes it but others get the same problem;

Tested on a Redmi 9 (android 11) and Bluestacks emulator (android 7)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions