Skip to content

Unable to open from external storage (as file descriptor)? #4

@earwole1

Description

@earwole1

On Pixel2, I have taken a few short videos. 5-10 seconds each.

Within PathUtil.getPath(), the URI is:
content://com.android.externalstorage.documents/document/primary%3ADCIM%2FCamera%2FVID_20200124_154910.mp4

the check for isExternalStorageDocument(uri) is True and the variable "String[] split" (line ~35) contains:

  • split[0]: primary
  • split[1]: DCIM/Camera/VID_20200124_154910.mp4

getPath() then returns: /storage/emulated/0/DCIM/Camera/VID_20200124_154910.mp4

Finally, the C++ code fails within media_file_build():
media_file_builder.cpp:149 invokes onError(jMediaFileBuilder).

So, effectively, every video file I attempt to open uses the pipe interface. I am missing something or is this an issue with the newer (well, new-ish) phones running Android 10?

Thank you for the otherwise awesome repo and the ffmpeg builder.

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