Recherche avancée

Médias (1)

Mot : - Tags -/Christian Nold

Autres articles (83)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (10515)

  • Evolution #3312 (Nouveau) : Étendre #INTRODUCTION à tout objet éditorial

    23 octobre 2014, par marcimat ☺☮☯♫

    Il reste des spécificités des brèves dans le core dans la balise introduction : le nombre de caractères à couper.

    On pourrait déclarer le champ ou les champs d’application de l’introduction ainsi que le nombre de caractères désirés dans la déclaration de l’objet éditorial.

    Ainsi :
    1) un objet quelconque pourrait éventuellement utiliser #INTRODUCTION
    2) définir sa longueur de coupe
    3) virer un peu plus les brèves du core :p

  • Flutter_ffmpeg is discontinued. Is there a way still to use it in a flutter project ?

    9 mai, par Saad Mushtaq

    I have been using the flutter_ffmpeg package in a Flutter project. But now, when I run the project, I get a build failure exception. Is there a way to still use it in a Flutter project ?

    


    FAILURE : Build failed with an exception.

    


      

    • What went wrong :
Execution failed for task ':app:checkDebugAarMetadata'.
    • 


    


    


    Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Could not find com.arthenica:mobile-ffmpeg-https:4.4.
Searched in the following locations :
- https://dl.google.com/dl/android/maven2/com/arthenica/mobile-ffmpeg-https/4.4/mobile-ffmpeg-https-4.4.pom
- https://repo.maven.apache.org/maven2/com/arthenica/mobile-ffmpeg-https/4.4/mobile-ffmpeg-https-4.4.pom
- https://storage.googleapis.com/download.flutter.io/com/arthenica/mobile-ffmpeg-https/4.4/mobile-ffmpeg-https-4.4.pom
- https://jcenter.bintray.com/com/arthenica/mobile-ffmpeg-https/4.4/mobile-ffmpeg-https-4.4.pom
Required by :
project :app > project :flutter_ffmpeg

    


    


  • 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(
    async (video1) => {
      try {
        console.log("Fetching video2 from storage...");
        const video2Ref = ref(storage, "video2.mp4");
        const video2Url = await getDownloadURL(video2Ref);
        const video2Blob = await (await fetch(video2Url)).blob();

        console.log("Writing video1 to FFmpeg FS...");
        await ffmpeg.FS("writeFile", "video1.mp4", await fetchFile(video1));

        console.log("Writing video2 to FFmpeg FS...");
        await ffmpeg.FS("writeFile", "video2.mp4", await fetchFile(video2Blob));

        console.log("Files in FFmpeg FS after write:");
        const files = await ffmpeg.FS("readdir", "/");
        console.log(files);

        const { start, end } = inputs[0];
        const startSeconds = new Date(`1970-01-01T${start}Z`).getTime() / 1000;
        const endSeconds = new Date(`1970-01-01T${end}Z`).getTime() / 1000;
        const duration = endSeconds - startSeconds;

        console.log("Running FFmpeg command...");
        await ffmpeg.run(
          "-i",
          "video1.mp4",
          "-ss",
          startSeconds.toString(),
          "-t",
          duration.toString(),
          "-i",
          "video2.mp4",
          "-filter_complex",
          "[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]",
          "-map",
          "[vid]",
          "-map",
          "0:a",
          "-c:v",
          "libx264",
          "-crf",
          "23",
          "-preset",
          "veryfast",
          "-shortest",
          "output1.mp4"
        );

        console.log("Files in FFmpeg FS after run:");
        const filesAfterRun = await ffmpeg.FS("readdir", "/");
        console.log(filesAfterRun);

        console.log("Reading output1.mp4 from FFmpeg FS...");
        const data = await ffmpeg.FS("readfile", "output1.mp4");
        console.log("after the FS readfile");
        const url = URL.createObjectURL(
          new Blob([data.buffer], { type: "video/mp4" })
        );
        setStackedVideo(url);
        setOutputFileReady(true); // Mark output file as ready
      } catch (err) {
        console.error("FFmpeg error output:", err);
        setError(`FFmpeg run error: ${err.message}`);
        setIsProcessing(false);
      }
    },
    [inputs]
  );


    


    My error seems to be stemming from this line :

    


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


    


    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.

    


    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