wseemann / FFmpegMediaMetadataRetriever

FFmpegMediaMetadataRetriever provides a unified interface for retrieving frame and meta data from an input media file.
1.72k stars 387 forks source link

cannot get video bitrate and https is not supported #248

Closed DeVictorVH closed 2 years ago

DeVictorVH commented 2 years ago

File urls with https protocol do not work even using the prebuilt arrs and the bitrate of videos cannot be obtained. Has the last update been released more than a year ago, do you plan to support these problems?

wseemann commented 2 years ago

I just added official https support last night. You can pull the latest develop or use the APK located here if you'd like to test. Releases on this project usually only happen once a year or so at this point because I actively maintain several other projects in addition to my full time day job.

DeVictorVH commented 2 years ago

Thanks for your answer, I installed the test apk and it does not seem to work, I tried with the default url and another one but it did not work (I tried it on a Xiaomi Redmi 9 with android 10). What will be the problem?

wseemann commented 2 years ago

Can you post the URL you are trying to test? Xiaomi Redmi 9 might be the issue. Does the test APK crash or simply not return any result? I tested with the default URL and I know that works so your issue might be related to Xiaomi since it runs a modified Android ROM.

DeVictorVH commented 2 years ago

Can you post the URL you are trying to test? Xiaomi Redmi 9 might be the issue. Does the test APK crash or simply not return any result? I tested with the default URL and I know that works so your issue might be related to Xiaomi since it runs a modified Android ROM.

It does not return the result, the Toast "Metadata not could be retrieved" appears. This is the url of the video I tested: https://file-examples-com.github.io/uploads/2017/04/file_example_MP4_480_1_5MG.mp4

A few months ago I unlocked the bootloader to the device to get root access. Will this be the problem?

wseemann commented 2 years ago

An unlocked bootloader shouldn't affect anything. I just tried the sample app with the URL you specified and it worked fine on an ARM device (which the Xiaomi Redmi 9 appears to be). So the issue appears to be with the OS itself. I won't be able to help you there since I don't have a Xiaomi OS to test on and they don't make images available.

DeVictorVH commented 2 years ago

An unlocked bootloader shouldn't affect anything. I just tried the sample app with the URL you specified and it worked fine on an ARM device (which the Xiaomi Redmi 9 appears to be). So the issue appears to be with the OS itself. I won't be able to help you there since I don't have a Xiaomi OS to test on and they don't make images available.

I tried it in an emulator and if it worked. If you want to send something to test and fix the error, I will be happy to help you.