Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP

Autres articles (100)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • 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 ;

Sur d’autres sites (11181)

  • Merge pull request #19 from Grandt/3.20

    29 décembre 2013, par Grandt
    Merge pull request #19 from Grandt/3.20
    

    * Fixed : Issue #15, where name space declarations were erroneously stripped off the html tag of added chapters.
    * Fixed : An issue, where PNG images exceeding the maximum specified sizes were broken during resizing.
    * Fixed : Issue #16, where ePub 3 multimedia needed to be added to the automatic chapter processing.
    * Fixed : Potential issue related to Issue #16 with loading large files from external sources, where these might result in memory errors. These will now be loaded into a temp file on the server, before being added to the book.
    * Fixed : Issue #17, where a function was called as a global.

  • Nothing happens when I am clicking on the create video button nothing happens and it displays the error failed to load ffmpeg

    3 août 2024, par shashwat bajpai

    So here is my code in react and ffmpeg and wasm which I used to create a simple video editor to just apply audio on top of the image and convert it into mp3

    


    This is my code :

    


    import React, { useState, useEffect } from &#x27;react&#x27;;&#xA;import { FFmpeg } from &#x27;@ffmpeg/ffmpeg&#x27;;&#xA;import { fetchFile, toBlobURL } from &#x27;@ffmpeg/util&#x27;;&#xA;&#xA;function App() {&#xA;  const [videosrc, setvideosrc] = useState(&#x27;&#x27;);&#xA;  const [imgfile, setimgfile] = useState(null);&#xA;  const [audiofile, setaudiofile] = useState(null);&#xA;  const [ffmpeg, setFfmpeg] = useState(null);&#xA;  const [loading, setLoading] = useState(false);&#xA;  const [error, setError] = useState(null);&#xA;&#xA;  useEffect(() => {&#xA;    const load = async () => {&#xA;      try {&#xA;        const ffmpegInstance = new FFmpeg();&#xA;        ffmpegInstance.on(&#x27;log&#x27;, ({ message }) => console.log(message));&#xA;        await ffmpegInstance.load({&#xA;          coreURL: await toBlobURL(`http://localhost:5173/node_modules/@ffmpeg/core/dist/ffmpeg-core.js`, &#x27;text/javascript&#x27;),&#xA;          wasmURL: await toBlobURL(`http://localhost:5173/node_modules/@ffmpeg/core/dist/ffmpeg-core.wasm`, &#x27;application/wasm&#x27;),&#xA;        });&#xA;        setFfmpeg(ffmpegInstance);&#xA;        console.log(&#x27;FFmpeg loaded successfully&#x27;);&#xA;      } catch (err) {&#xA;        console.error(&#x27;Failed to load FFmpeg:&#x27;, err);&#xA;        setError(&#x27;Failed to load FFmpeg&#x27;);&#xA;      }&#xA;    };&#xA;    load();&#xA;  }, []);&#xA;&#xA;  const createVideo = async () => {&#xA;    console.log(&#x27;Create Video button clicked&#x27;);&#xA;    setLoading(true);&#xA;    setError(null);&#xA;&#xA;    if (!ffmpeg) {&#xA;      console.error(&#x27;FFmpeg not loaded&#x27;);&#xA;      setError(&#x27;FFmpeg not loaded&#x27;);&#xA;      setLoading(false);&#xA;      return;&#xA;    }&#xA;&#xA;    if (!imgfile || !audiofile) {&#xA;      console.error(&#x27;Image or audio file not selected&#x27;);&#xA;      setError(&#x27;Please select both image and audio files&#x27;);&#xA;      setLoading(false);&#xA;      return;&#xA;    }&#xA;&#xA;    try {&#xA;      console.log(&#x27;Writing files to MEMFS&#x27;);&#xA;      await ffmpeg.writeFile(&#x27;image.png&#x27;, await fetchFile(imgfile));&#xA;      await ffmpeg.writeFile(&#x27;sound.mp3&#x27;, await fetchFile(audiofile));&#xA;&#xA;      console.log(&#x27;Running FFmpeg command&#x27;);&#xA;      await ffmpeg.exec([&#xA;        "-framerate", "1/10",&#xA;        "-i", "image.png",&#xA;        "-i", "sound.mp3",&#xA;        "-c:v", "libx264",&#xA;        "-t", "10",&#xA;        "-pix_fmt", "yuv420p",&#xA;        "-vf", "scale=1920:1080",&#xA;        "test.mp4"&#xA;      ]);&#xA;&#xA;      console.log(&#x27;Reading output file&#x27;);&#xA;      const data = await ffmpeg.readFile(&#x27;test.mp4&#x27;);&#xA;&#xA;      console.log(&#x27;Creating URL for video&#x27;);&#xA;      const url = URL.createObjectURL(new Blob([data.buffer], { type: &#x27;video/mp4&#x27; }));&#xA;      setvideosrc(url);&#xA;      console.log(&#x27;Video created successfully&#x27;);&#xA;    } catch (err) {&#xA;      console.error(&#x27;Error creating video:&#x27;, err);&#xA;      setError(`Error creating video: ${err.message}`);&#xA;    } finally {&#xA;      setLoading(false);&#xA;    }&#xA;  };&#xA;&#xA;  const handlechangeimage = (e) => {&#xA;    setimgfile(e.target.files[0]);&#xA;  };&#xA;&#xA;  const handlechangesound = (e) => {&#xA;    setaudiofile(e.target.files[0]);&#xA;  };&#xA;&#xA;  return (&#xA;    <div>&#xA;      <h1>Image</h1>&#xA;      <input type="file" accept="&#x27;image/*&#x27;" />&#xA;      <h1>Audio</h1>&#xA;      <input type="file" accept="&#x27;audio/*&#x27;" />&#xA;      <button disabled="{loading}">&#xA;        {loading ? &#x27;Creating Video...&#x27; : &#x27;Create Video&#x27;}&#xA;      </button>&#xA;      {error &amp;&amp; <p style="{{color:">{error}</p>}&#xA;      {videosrc &amp;&amp; (&#xA;        <div>&#xA;          <h2>Generated Video:</h2>&#xA;          <video controls="controls" src="{videosrc}"></video>&#xA;        </div>&#xA;      )}&#xA;    </div>&#xA;  );&#xA;}&#xA;&#xA;export default App;&#xA;

    &#xA;

    Version which I am using is : "@ffmpeg/ffmpeg" : "^0.12.7",&#xA;"@ffmpeg/util" : "^0.12.1",&#xA;"@ffmpeg/core" : "^0.12.3",

    &#xA;

    Is it issue with the version / Blob URL ? How can I run ffmpeg in my system ?

    &#xA;

  • arm : Load mb_y properly in mbtree_propagate_list_internal_neon

    26 décembre 2016, par Martin Storsjö
    arm : Load mb_y properly in mbtree_propagate_list_internal_neon
    

    The previous version, attempting to load two stack parameters at once,
    only would have worked if they were interpreted and loaded as 32 bit
    elements, not when loading them as 16 bit elements.

    • [DH] common/arm/mc-a.S