Recherche avancée

Médias (0)

Mot : - Tags -/upload

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (45)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Changer son thème graphique

    22 février 2011, par

    Le thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
    Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
    Modifier le thème graphique utilisé
    Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
    Il suffit ensuite de se rendre dans l’espace de configuration du (...)

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
    Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)

Sur d’autres sites (3954)

  • avcodec/pngenc : set default prediction method to PAETH

    6 février, par Michael Niedermayer
    avcodec/pngenc : set default prediction method to PAETH
    

    this is a good compromise between speed and compression

    - rw-r----- 1 michael michael 180987 Feb 6 14:29 lena-def.png
    - rw-r----- 1 michael michael 128430 Feb 6 14:36 lena-pavg.png
    - rw-r----- 1 michael michael 126269 Feb 6 14:36 lena-pmixed.png
    - rw-r----- 1 michael michael 180987 Feb 6 14:35 lena-pnone.png
    - rw-r----- 1 michael michael 127758 Feb 6 14:35 lena-ppaeth.png

    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavcodec/pngenc.c
    • [DH] tests/ref/fate/copy-apng
    • [DH] tests/ref/fate/cover-art-aiff-id3v2-remux
    • [DH] tests/ref/fate/cover-art-flac-remux
    • [DH] tests/ref/fate/cover-art-mp3-id3v2-remux
    • [DH] tests/ref/fate/mov-cover-image
    • [DH] tests/ref/fate/png-icc
    • [DH] tests/ref/fate/png-mdcv
    • [DH] tests/ref/lavf/apng
    • [DH] tests/ref/lavf/apng.png
    • [DH] tests/ref/lavf/gray16be.png
    • [DH] tests/ref/lavf/png
    • [DH] tests/ref/lavf/rgb48be.png
    • [DH] tests/ref/vsynth/vsynth1-mpng
    • [DH] tests/ref/vsynth/vsynth2-mpng
    • [DH] tests/ref/vsynth/vsynth3-mpng
    • [DH] tests/ref/vsynth/vsynth_lena-mpng
  • FFmpeg error with ffmpeg.FS("readfile", "output.mp4"). trying to get ffmpeg to work in the react app

    21 juin 2024, par Paul Tham
     const stackVideos = useCallback(&#xA;    async (video1) => {&#xA;      try {&#xA;        console.log("Fetching video2 from storage...");&#xA;        const video2Ref = ref(storage, "video2.mp4");&#xA;        const video2Url = await getDownloadURL(video2Ref);&#xA;        const video2Blob = await (await fetch(video2Url)).blob();&#xA;&#xA;        console.log("Writing video1 to FFmpeg FS...");&#xA;        await ffmpeg.FS("writeFile", "video1.mp4", await fetchFile(video1));&#xA;&#xA;        console.log("Writing video2 to FFmpeg FS...");&#xA;        await ffmpeg.FS("writeFile", "video2.mp4", await fetchFile(video2Blob));&#xA;&#xA;        console.log("Files in FFmpeg FS after write:");&#xA;        const files = await ffmpeg.FS("readdir", "/");&#xA;        console.log(files);&#xA;&#xA;        const { start, end } = inputs[0];&#xA;        const startSeconds = new Date(`1970-01-01T${start}Z`).getTime() / 1000;&#xA;        const endSeconds = new Date(`1970-01-01T${end}Z`).getTime() / 1000;&#xA;        const duration = endSeconds - startSeconds;&#xA;&#xA;        console.log("Running FFmpeg command...");&#xA;        await ffmpeg.run(&#xA;          "-i",&#xA;          "video1.mp4",&#xA;          "-ss",&#xA;          startSeconds.toString(),&#xA;          "-t",&#xA;          duration.toString(),&#xA;          "-i",&#xA;          "video2.mp4",&#xA;          "-filter_complex",&#xA;          "[0:v]scale=1080:-1[v1];[1:v]scale=-1:1920/2[v2scaled];[v2scaled]crop=1080:1920/2[v2cropped];[v1][v2cropped]vstack=inputs=2,scale=1080:1920[vid]",&#xA;          "-map",&#xA;          "[vid]",&#xA;          "-map",&#xA;          "0:a",&#xA;          "-c:v",&#xA;          "libx264",&#xA;          "-crf",&#xA;          "23",&#xA;          "-preset",&#xA;          "veryfast",&#xA;          "-shortest",&#xA;          "output1.mp4"&#xA;        );&#xA;&#xA;        console.log("Files in FFmpeg FS after run:");&#xA;        const filesAfterRun = await ffmpeg.FS("readdir", "/");&#xA;        console.log(filesAfterRun);&#xA;&#xA;        console.log("Reading output1.mp4 from FFmpeg FS...");&#xA;        const data = await ffmpeg.FS("readfile", "output1.mp4");&#xA;        console.log("after the FS readfile");&#xA;        const url = URL.createObjectURL(&#xA;          new Blob([data.buffer], { type: "video/mp4" })&#xA;        );&#xA;        setStackedVideo(url);&#xA;        setOutputFileReady(true); // Mark output file as ready&#xA;      } catch (err) {&#xA;        console.error("FFmpeg error output:", err);&#xA;        setError(`FFmpeg run error: ${err.message}`);&#xA;        setIsProcessing(false);&#xA;      }&#xA;    },&#xA;    [inputs]&#xA;  );&#xA;

    &#xA;

    My error seems to be stemming from this line :

    &#xA;

     const data = await ffmpeg.FS("readfile", "output1.mp4");&#xA;

    &#xA;

    Seeing the ffmpeg.wasm documentation i thought the functions for some of the functions had changed, but when I changed it, it seemed like they did not recognise the new functions. Sometimes this will also give me some other errors like worker.js which I dont understand enough to debug this myself.

    &#xA;

    words word words words words words word words words wordswords word words words wordswords word words words wordswords word words words wordswords word words words wordswords word words words words

    &#xA;

  • ffmpeg fix video orientation

    22 juillet 2020, par PiTheNumber

    A video can contain a meta info about the camera orientation. For example iPhone and other phones set this flag if you turn the device. Problem is while some player read this info and rotate the video accordingly, other players do not.

    &#xA;&#xA;

    To fix this the video has to be rotated and the meta info needs to be set correctly.

    &#xA;&#xA;

    Does ffmpeg provide a fix for this or do I have to go the hard way (Read rotation, rotate, set meta data)

    &#xA;