informatique:video
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| informatique:video [28/09/2016 13:00] – [Conversion de format] cyrille | informatique:video [14/11/2025 17:57] (Version actuelle) – [avconv] cyrille | ||
|---|---|---|---|
| Ligne 5: | Ligne 5: | ||
| ===== Conversion de format ===== | ===== Conversion de format ===== | ||
| + | |||
| + | ==== avconv ==== | ||
| Bons articles: | Bons articles: | ||
| Ligne 10: | Ligne 12: | ||
| Pour WEBM: | Pour WEBM: | ||
| - | | + | <code bash> |
| + | avconv -i the_video.mp4 the_video.webm | ||
| + | </ | ||
| Mais c'est très lent, genre en temps réel ... | Mais c'est très lent, genre en temps réel ... | ||
| Pour FLV: | Pour FLV: | ||
| - | | + | <code bash> |
| + | avconv -i the_video.mp4 -ar 44100 the_video.flv | ||
| + | </ | ||
| Beaucoup (extrêmement) plus rapide que WEBM. Obligé d' | Beaucoup (extrêmement) plus rapide que WEBM. Obligé d' | ||
| + | |||
| + | ==== ffmpeg ==== | ||
| + | |||
| + | <code bash> | ||
| + | ffmpeg -i file.avi output.mp4 | ||
| + | ffmpeg -i file.avi -vcodec mpeg4 -f mpeg output.mp4 | ||
| + | </ | ||
| + | |||
| ===== Web player ===== | ===== Web player ===== | ||
| - | ==== Video.js ==== | + | ====Pour le web==== |
| + | |||
| + | We need to encode our video with several different codecs so **that every browser can play** the one it likes. Codecs are a way to compress digital media. There are dozens of video codecs, but the ones you should know about for web videos are **H.264, vp8, and theora**. Each type of encoded videos is housed in a different type of container. Again, there are dozens of video containers, but for web videos you only need to know about **mp4, webm, and ogg**. | ||
| + | |||
| + | <code html> | ||
| + | < | ||
| + | <source src=" | ||
| + | <source src=" | ||
| + | <source src=" | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ===== Video.js | ||
| http:// | http:// | ||
informatique/video.1475060403.txt.gz · Dernière modification : de cyrille
