Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Amazon S3 mp4 video not playing in HTML video tag [closed]

I am uploading video to S3 from android. But is it not playing in in html in chrome here the video link :

https://s3-us-west-2.amazonaws.com/anti-theft21/uploads/vid_1472562519vRqe5NjXgOEYUfFuWLRnXf8bpao8HR.mp4

like image 292
dev21 Avatar asked Aug 30 '16 14:08

dev21


Video Answer


1 Answers

Your video is created with wrong settings for browsers :

MP4 is a container format for holding audio/video codecs. Technically you can put any codec as long as the the other side (playback) understands it. The HTML5 video tag expects MP4 to contain H.264 video codec. Looking at your file, it won't make sense to the browser's video decoders...

You need to use a video tool to convert your current video codec to AVC codec (aka H.264) but still contained within MP4 file data. I used FFmpeg to convert and the result mp4 works fine in Chrome (tested on PC).

like image 131
VC.One Avatar answered Oct 17 '22 10:10

VC.One