====== video ====== avec ffmpeg => https://www.ffmpeg.org/download.html sudo add-apt-repository ppa:mc3man/trusty-media sudo apt-get update http://www.willus.com/author/streaming2.shtml Commande en vrac à améliorer webm : doc => https://trac.ffmpeg.org/wiki/Encode/VP9 #avec le son ffmpeg -threads 4 -i $IN -vf scale=-1:480 -qmax 63 -b:v 1000k -crf 24 -b:a 56k -ar 22050 -strict -2 -acodec vorbis web_$OUT.webm #sans le son ffmpeg -threads 4 -i $IN -vf scale=-1:480 -qmax 63 -b:v 1000k -crf 24 -an web_$OUT.webm mp4 : doc => https://trac.ffmpeg.org/wiki/Encode/H.264 #avec le son ffmpeg -preset veryslow -threads 4 -i $IN -i_qfactor 0.71 -qcomp 0.6 -qmin 10 -qmax 63 -qdiff 4 -trellis 0 -crf 24 -vcodec libx264 -s 852x480 -b:v 1000k -b:a 56k -ar 22050 web_$OUT.mp4 #sans le son ffmpeg -preset veryslow -threads 4 -i $IN -i_qfactor 0.71 -qcomp 0.6 -qmin 10 -qmax 63 -qdiff 4 -trellis 0 -crf 24 -vcodec libx264 -s 852x480 -b:v 1000k -an web_$OUT.mp4 Pour apache, penser à rajouter ce code AddType video/ogg .ogv AddType video/mp4 .mp4 AddType video/webm .webm Le code html