Android의 MediaExtractor
을 사용하여 동영상 파일에서 프레임을 추출하려고하지만 어떤 이유로 인해 readSampleData()
의 맨 처음 결과는 -1입니다. 내가 도대체 뭘 잘못하고있는 겁니까?MediaExtractor - readSampleData()의 첫 번째 결과가 -1입니다.
파일 자체는 확실히 재생 가능합니다.
편집 2 : This is the link to the source code for the MediaExtractor that has this problem
https://developer.android.com/reference/android/ 도움이되기를 바랍니다 media/MediaExtractor.html # readSampleData (java.nio.ByteBuffer, int). 더 이상 사용할 수있는 샘플이 없으면 -1이 반환됩니다. "내가 뭘 잘못하고있는거야?"코드를 제공하지 않았으므로 아무 생각이 없습니다. –