bytedeco/javacv

FrameGrabber with inputstream

Open

#1 395 ouverte le 1 avr. 2020

Voir sur GitHub
 (24 commentaires) (0 réactions) (0 assignés)Java (1 583 forks)batch import
help wantedquestion

Métriques du dépôt

Stars
 (6 985 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Now in Android 10, we cannot use file path, instead URI only. so to create a frame grabber, i have to do this:

    inputStream = context.getContentResolver().openInputStream(uri);
    frameGrabber = new FFmpegFrameGrabber(inputStream);
    frameGrabber.start();

I found two issues:

  1. sometimes the start() will stuck there.
  2. Saw some exceptions: Non-fatal Exception: org.bytedeco.javacv.FrameGrabber$Exception avformat_open_input() error -2: Could not open input "java.io.BufferedInputStream@db63d24". (Has setFormat() been called?)

Guide contributeur