Archives / Snippets / Projets

http://paulrouget.com/e/converttohtml5video/ https://trac.ffmpeg.org/wiki/TheoraVorbisEncodingGuide Site de video.js

conversion

avconv -i input.mov output.webm avconv -i input.mov output.mp4

ffmpeg -i input.mov -codec:v libtheora -qscale:v 7 -codec:a libvorbis -qscale:a 5 output.ogv

html

<!DOCTYPE html><html>
<head>
<title>Anne Reverdy et Laurent Jouhet</title>
<script>document.createElement('video')</script>
<link href="//cdnjs.cloudflare.com/ajax/libs/video.js/4.1.0/video-js.min.css" rel=stylesheet>
</head>
<body>
<video id=video class="video-js vjs-fullscreen vjs-default-skin" controls preload=auto width=720 height=576 data-setup='{}'>
<source src=savethedate.mp4 type='video/mp4'/>
<source src=savethedate.webm type='video/webm'/>
<source src=savethedate.ogv type='video/ogg'/>
</video>
<script src="//cdnjs.cloudflare.com/ajax/libs/video.js/4.1.0/video.js"></script>
</body></html>

.htaccess pour que ça marche dans firefox

AddType video/mp4 mp4 AddType video/webm webm AddType video/ogg ogv