HTML 5 Video stretch

I have tested by using object-fit: fill in CSS Works good. video { object-fit: fill; } From MDN (https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit): The object-fit CSS property specifies how the contents of a replaced element should be fitted to the box established by its used height and width. Value: fill The replaced content is sized to fill the element’s … Read more

Safari ignores mp4 files

I found that the following accept string will add mp4 and m4v to the list of file types that safari will accept: accept=”video/mp4,video/x-m4v,video/*” I’m not sure what the mime type is for webm videos but if you can look that up you should be able to tack it on to the accept string. The trick … Read more

Reducing video size with same format and reducing frame size

ffmpeg provides this functionality. All you need to do is run someting like ffmpeg -i <inputfilename> -s 640×480 -b 512k -vcodec mpeg1video -acodec copy <outputfilename> For newer versions of ffmpeg you need to change -b to -b:v: ffmpeg -i <inputfilename> -s 640×480 -b:v 512k -vcodec mpeg1video -acodec copy <outputfilename> to convert the input video file … Read more

html5: display video inside canvas

var canvas = document.getElementById(‘canvas’); var ctx = canvas.getContext(‘2d’); var video = document.getElementById(‘video’); video.addEventListener(‘play’, function () { var $this = this; //cache (function loop() { if (!$this.paused && !$this.ended) { ctx.drawImage($this, 0, 0); setTimeout(loop, 1000 / 30); // drawing at 30fps } })(); }, 0); I guess the above code is self Explanatory, If not drop … Read more

Is that possible to make mirrored?

You can do it using a CSS3 3D transformation. #videoElement { transform: rotateY(180deg); -webkit-transform:rotateY(180deg); /* Safari and Chrome */ -moz-transform:rotateY(180deg); /* Firefox */ } This will rotate it 180 degrees around its Y axis (so you’re now looking at it from behind) which gives the same appearance as being mirrored. Example at http://jsfiddle.net/DuT9U/1/

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)