Recherche avancée

Médias (91)

Autres articles (59)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (10366)

  • Would compressing the extracted source images of a video and reconstructing it make the video smaller ? [closed]

    9 septembre 2022, par tawfikboujeh

    I discovered squoosh and found out that it does crazy compression on images,

    


    Squoosh only works on images and i wanted to scale it to work on videos.

    


    I then wrote this script to convert the video to a set of images that I'll squoosh and then reconstitute to a video again using the almighty ffmpeg.

    


    mkdir out ; rm -rf ./out/*
ffmpeg -i input.mp4 -r 25 buffer.mp4 # for a reason, i needed to create a buffer, this is hacky, but whatever.
ffmpeg -i buffer.mp4 -vf fps=25 out/out%d.png # convert the image into images
squoosh-cli --mozjpeg '{quality: 75}' out/*.png # compress
FRAMERATE=$(ffmpeg -i buffer.mp4 2>&1 | sed -n "s/.*, \(.*\) fp.*/\1/p") # get the framerate from buffer video
ffmpeg -framerate $FRAMERATE -i out/out%d.jpg output.mp4 # reconstitute the video knowing the framerate and having the compressed images


    


    the images are 90% smaller but the video has a bigger size than the original one.

    


    benchmarks :

    


    for the images :

    


    1.jpeg : 98 KB on disk
1.png : 1,7 MB on disk 


    


    for the videos :

    


    input.mp4 : 20 Mb on disk
buffer.mp4 : 21 Mb on disk
output.mp4 : 19 Mb on disk


    


    Any idea compressing the source images would make the video smaller ?

    


  • resize and crop HD video into square video using ffmpeg

    7 mai 2021, par Ahmet Cetin

    I want to scale and crop HD video (1920x1080) into square one while adding watermark. I tried

    


    ffmpeg
    
-i video.mp4
    
-i watermark.png
    
-filter_complex "[0]scale=720:720,crop=720:720[a] ;[1]scale=720:720[b] ;[a][b]overlay=(W-w)/2 :(H-h)/2"
    
output.mp4

    


    but it produces output with 889x500. Can anyone help me ? What I'm doing wrong ?

    


  • ffmpeg remove multiple segments from a video rotate and crop video

    2 novembre 2017, par 1234567

    ffmpeg remove multiple segments from a video rotate and crop video

    I have a video of 2 min 25 seconds , i want to remove part from 10 second to 16 second and 20 second to 26 second and rotate video and crop it

    I am trying this command

    "-y", "-i", j,
                         "-filter_complex",
                           "[0:v]trim=start=10:end=16,setpts=PTS-STARTPTS[a];  " +
                                   "[0:v]trim=start=20:end=26,setpts=PTS-STARTPTS[b]; " +
                                   "[0:a]atrim=start=10:end=16,asetpts=PTS-STARTPTS[c]; " +
                                   "[0:a]atrim=start=20:end=26,asetpts=PTS-STARTPTS[d]; " +
                                   "[a][c][b][d]concat=n=2:v=1:a=1[e][f],"+
                                   "crop=" + 40 + ":" + 20 + ":" + 100 + ":" + 100,"+
                                   "transpose=1", "-map", "'[e]'" ,"-map",
                           "'[f]'", "-preset", "ultrafast",out

    what is the correct command to do it