RenderHeads / UnityPlugin-AVProVideo

AVPro Video is a multi-platform Unity plugin for advanced video playback
https://www.renderheads.com/products/avpro-video/
238 stars 28 forks source link

Failed to fetch original file descriptor #1444

Closed joywater closed 1 year ago

joywater commented 1 year ago

when I play video on a xiaomi mobile, I have this error and the video can not play image image

whether I can know whether I can play the video earlier,Like: if(supportsTranscode(path)) { play(); }

Thanks!

Chris-RH commented 1 year ago

Hi @joywater

  1. Could you test it just using our Mediaplayer demo please?
  2. Have you tested our included videos?
  3. What are the specs of the video you are trying to play?
  4. Are you able to link to your video or email the link to us unitysupport@renderheads.com
joywater commented 1 year ago

Thanks,my AVPro‘s version is AVPro Video - Ultra Edition 2.6.5 I just test it using Your demo:

  1. the demo is correct
  2. when I relace one video with mine,it can not play on the Redmi Note 12 5G, but can play on the Redmi Note 10 Pro
  3. I have send my mp4 file to your email,please check it!
Chris-RH commented 1 year ago

Can you update to the latest version of AVPro Video and then retry using our demo scene and your video please? Are you able to provide a full logcat of the error please? Have you been able to play any other videos of the same resolution on the Redmi Note 12 5G?

My suspicion is that the video has too high a resolution for the phone. The chip used in the phone has an old GPU, the details of which are here: https://www.qualcomm.com/products/application/smartphones/snapdragon-4-series-mobile-platforms/snapdragon-4-gen-1-mobile-platform The specs suggest that the maximum display is FHD+, which is 2220x1080, but the video is 2340x1080.

In contrast, the Redmi Note 10 Pro has this chip: https://www.qualcomm.com/products/application/smartphones/snapdragon-7-series-mobile-platforms/snapdragon-732g-mobile-platform This has a maximum display of Quad HD+, which is 2560x1440

joywater commented 1 year ago

@Chris-RH I had test the video use the version 2.7.2-Trial, and the video can not play correctly also! I mean if there is some interface I can preknow whether the video can play correctly,if can play, then I will play the video, and if can not,maybe I will skip play the video! Thanks!

Chris-RH commented 1 year ago

There isn't always sufficient feedback from the API as to why it can't play a file.
If you are streaming the video files, could you set up manifest with multiple resolutions? Or do you not control the videos that are being played?