bytedeco/javacv

FrameGrabber with inputstream

Open

#1395 aperta il 1 apr 2020

Vedi su GitHub
 (24 commenti) (0 reazioni) (0 assegnatari)Java (1583 fork)batch import
help wantedquestion

Metriche repository

Star
 (6985 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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?)

Guida contributor