Recherche avancée

Médias (0)

Mot : - Tags -/content

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

Autres articles (16)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Other interesting software

    13 avril 2011, par

    We don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
    The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
    We don’t know them, we didn’t try them, but you can take a peek.
    Videopress
    Website : http://videopress.com/
    License : GNU/GPL v2
    Source code : (...)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

Sur d’autres sites (3695)

  • avutil/log : factor "level != AV_LOG_INFO/8" checks out

    9 avril 2014, par Michael Niedermayer
    avutil/log : factor "level != AV_LOG_INFO/8" checks out
    

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavutil/log.c
  • cmdutils : include config.h, fix "is not defined" warning due to CONFIG_OPENCL

    7 mai 2014, par Michael Niedermayer
    cmdutils : include config.h, fix "is not defined" warning due to CONFIG_OPENCL
    

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] cmdutils.h
  • 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;