react-native-compressor icon indicating copy to clipboard operation
react-native-compressor copied to clipboard

Compressed video on Android is not playable on macOS or iOS

Open noelsp opened this issue 1 year ago • 21 comments

Current behavior

It seems to be a specific problem in the combination of this video and a cell phone model. On a Xiaomi Redmi Note 10 model phone, this attached video seems to compress well, but it is only playable on Android. On iOS or macOS (QuickTime Player) it cannot be played. Possibly it is some problem with the codecs, but we don't know how to debug this.

Hundreds of videos are uploaded a week in our app and we had not previously detected compatibility problems.

Expected behavior

Like many other videos that are compressed on Android phones, it plays on iOS without any problem.

Platform

  • [X] Android
  • [X] iOS

React Native Version

  • 0.72.4

React Native Compressor Version

  • 1.8.24

Reproducible Steps And Demo

  • I can't reproduce the error on any of our devices. But we have the output after compress in these devices. There seems to be an error in the format, but I can't understand what the difference is with other videos.
  • Original video: https://drive.google.com/file/d/19bX1H31JfZ3gokM3D6fnMLJhQ4UnjGZO/view?usp=drive_link
  • Compressed video (not playable in mac OS or iPhone) : https://drive.google.com/file/d/1JLtRUzPIAbz_JnwdVorCftirMcDLyVSH/view?usp=sharing

noelsp avatar Jan 31 '24 21:01 noelsp

👋 @noelsp Thanks for opening your issue here! If you find this package useful hit the star🌟!

github-actions[bot] avatar Jan 31 '24 21:01 github-actions[bot]

same here +1

huynhhq avatar Apr 10 '24 16:04 huynhhq

same here +1

barbarossusuz avatar May 03 '24 14:05 barbarossusuz

@numandev1 Could you help us with this problem? More and more users are reporting this problem in our app. We would really appreciate it.

noelsp avatar May 21 '24 15:05 noelsp

@noelsp hopefully today i will debug it

numandev1 avatar May 22 '24 05:05 numandev1

same here +1

jpdelorenzo avatar May 22 '24 18:05 jpdelorenzo

@noelsp hopefully today i will debug it

Thank you! I remain attentive to any news

noelsp avatar May 22 '24 18:05 noelsp

Hi, do you have some news? @numandev1 Is there anything we can help with?

noelsp avatar May 29 '24 13:05 noelsp

Maybe fixed by https://github.com/numandev1/react-native-compressor/pull/290?

Titozzz avatar May 31 '24 15:05 Titozzz

Maybe fixed by #290?

I just tried it, and we still have problems playing the compressed video on iOS.

This is the output after compressing, you can download it here: https://cuadernorojo-images.s3-us-west-2.amazonaws.com/uploads/activities/clwze9o53003l09jw45mngitv/2ed9864e-ce1b-495b-bbe8-1889cc2ec064.mp4

noelsp avatar Jun 03 '24 20:06 noelsp

Hi @numandev1 do you have some news?

noelsp avatar Jun 10 '24 18:06 noelsp

@noelsp Sorry I was busy in an emergency so I was not able to work, I will work at tonight

numandev1 avatar Jun 14 '24 10:06 numandev1

hi. im facing issue but different.

    const cmp = await RNVideoCompressor.compress(response.path, {
      maxSize: 1920,
      bitrate: 10,
      compressionMethod: 'manual',
    }).catch(er => {
      console.log('==========er-er=======', er);
    });

select and compress video from android phone -> unable to play compressed video after compressed, but when i upload it to network api, then ios device can play it im using react-native-video for playing video

NguyenHoangMinhkkkk avatar Jun 17 '24 04:06 NguyenHoangMinhkkkk

Same here. Hopefully find the solution soon!!

caesar4321 avatar Jun 21 '24 15:06 caesar4321

@noelsp Sorry I was busy in an emergency so I was not able to work, I will work at tonight

I found that it's not for every Android phone. For example, one of my users use Oppo RMX3710 | Android 13, and the video is playing well on iOS, while I use Samsung SM-M236L | Android 14 and the video compressed on my phone won't play on iOS.

caesar4321 avatar Jun 22 '24 06:06 caesar4321

Same here. Hopefully find the solution soon!!

On Nokia C20 with Android 11, the compressed video only plays the audio part of the video, not the visual frames of the video.

caesar4321 avatar Jun 22 '24 13:06 caesar4321

Hi, do you have some news? @numandev1 This bug is increasing in our users 😢

noelsp avatar Jun 25 '24 15:06 noelsp

Hello, this issue continues to occur in the version 1.8.25. Some news?

correalm avatar Jul 17 '24 17:07 correalm

Any news?

jpdelorenzo avatar Aug 12 '24 21:08 jpdelorenzo