react-native-compressor
react-native-compressor copied to clipboard
Compressed video on Android is not playable on macOS or iOS
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 Thanks for opening your issue here! If you find this package useful hit the star🌟!
same here +1
same here +1
@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 hopefully today i will debug it
same here +1
@noelsp hopefully today i will debug it
Thank you! I remain attentive to any news
Hi, do you have some news? @numandev1 Is there anything we can help with?
Maybe fixed by https://github.com/numandev1/react-native-compressor/pull/290?
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
Hi @numandev1 do you have some news?
@noelsp Sorry I was busy in an emergency so I was not able to work, I will work at tonight
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
Same here. Hopefully find the solution soon!!
@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.
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.
Hi, do you have some news? @numandev1 This bug is increasing in our users 😢
Hello, this issue continues to occur in the version 1.8.25. Some news?
Any news?