Reputation: 365
In my web application, iPhone and android phone can upload video, it can play on both phones and desktop browser.
However certain android phones upload a video but it cannot play anywhere although it seems to be uploaded correctly.
I looked into to it and found a difference. Certain phone uploads a video file with Codecs "MPEG-4, AAC" and the others upload "H.264, AAC".
I'm currently using ReactJs and html5 video tag to play video. It looks there is no way to solve with video tag options.
Here is device and photo information. On your left side, ASUS phone uploaded video which has MPEG-4 video codecs, and it won't play.
On your right side, Galaxy phone video which has H.264 codecs, and it plays.
Both videos have same format mp4.
--
Additional information might help you is that even though you download that video and upload from desktop browser, it won't play as well. I would appreciate if you know solutions for it, thanks.
Upvotes: 0
Views: 888
Reputation: 365
The answer for this question is converting video format using lambda and elastic transcoder. see here: https://read.acloud.guru/easy-video-transcoding-in-aws-7a0abaaab7b8
According to my research About MPEG-4, it is neither codec nor container. MP4 is a standard format container for audio and video used by MPEG-4. The point is MPEG-4 is a standard specification.
Thanks @Offbeatmammal and @szatmary to comment on this issue.
Upvotes: 1