Recherche avancée

Médias (91)

Autres articles (11)

  • MediaSPIP Init et Diogène : types de publications de MediaSPIP

    11 novembre 2010, par

    À l’installation d’un site MediaSPIP, le plugin MediaSPIP Init réalise certaines opérations dont la principale consiste à créer quatre rubriques principales dans le site et de créer cinq templates de formulaire pour Diogène.
    Ces quatre rubriques principales (aussi appelées secteurs) sont : Medias ; Sites ; Editos ; Actualités ;
    Pour chacune de ces rubriques est créé un template de formulaire spécifique éponyme. Pour la rubrique "Medias" un second template "catégorie" est créé permettant d’ajouter (...)

  • 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 (...)

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

Sur d’autres sites (515)

  • How to use ffmpeg speedup video specific time range in one line ffmpeg cli [closed]

    18 mars, par chikadance

    I try following splited cli, they work well

    


    ffmpeg -i "$input_file" -filter_complex "[0:v]trim=start=0:end=10,setpts=PTS/10[v1];[0:a]atrim=start=0:end=10,asetpts=PTS/10[a1]" -map "[v1]" -map "[a1]" -shortest -t 1 "$output_file" -y
ffmpeg -i "$input_file" -filter_complex "[0:v]trim=start=10:end=13,setpts=PTS-STARTPTS[v2];[0:a]atrim=start=10:end=13,asetpts=PTS-STARTPTS[a2]" -map "[v2]" -map "[a2]" -shortest "$output_file" -y


    


    but when i merge them :

    


    ffmpeg -i "$input_file" -filter_complex "[0:v]trim=start=0:end=10,setpts=PTS/10[v1];[0:a]atrim=start=0:end=10,asetpts=PTS/10[a1];[0:v]trim=start=10:end=13,setpts=PTS-STARTPTS[v2];[0:a]atrim=start=10:end=13,asetpts=PTS-STARTPTS[a2]" -map "[v1]" -map "[a1]" -map "[v2]" -map "[a2]" -shortest -t 4 "$output_file" -y


    


    the result video last 3s is frozen, how to fix it

    


    If I found following answer, but it give multi lines ffmpeg solution, I hope one ffmpeg cli todo it

    


  • FFMPEG - await ffmpeg.load() - overlay.ts Uncaught ReferenceError : document is not defined

    26 mars, par devVue123

    I use FFMPEG plugin with Vue3 and Vite. My code :

    


    <code class="echappe-js">&lt;script setup&gt;&amp;#xA;import { FFmpeg } from &amp;#x27;@ffmpeg/ffmpeg&amp;#x27;&amp;#xA;import { fetchFile, toBlobURL } from &amp;#x27;@ffmpeg/util&amp;#x27;&amp;#xA;import {onMounted} from &quot;vue&quot;;&amp;#xA;&amp;#xA;// const baseURL = &amp;#x27;https://unpkg.com/@ffmpeg/core@0.12.6/dist/esm&amp;#x27; // doc - vite&amp;#xA;const baseURL = &amp;#x27;https://unpkg.com/@ffmpeg/core-mt@0.12.6/dist/esm&amp;#x27; // example&amp;#xA;&amp;#xA;const ffmpeg = new FFmpeg();&amp;#xA;&amp;#xA;onMounted(() =&gt; {&amp;#xA;    initializeFfmpeg()&amp;#xA;})&amp;#xA;&amp;#xA;const initializeFfmpeg = async () =&gt; {&amp;#xA;await ffmpeg.load()&amp;#xA;}&amp;#xA;&lt;/script&gt;&#xA;

    &#xA;

    but FFMPEG is not initialized correctly.&#xA;the error occurs when I run the command :

    &#xA;

    await ffmpeg.load()&#xA;

    &#xA;

    I get an error that may be related to vite :&#xA;enter image description here&#xA;enter image description here

    &#xA;

    I tried several import options, but I still get this error. please help me, thank you

    &#xA;

    package.json

    &#xA;

    "dependencies": {&#xA;    "@ffmpeg/core": "^0.12.6",&#xA;    "@ffmpeg/ffmpeg": "0.12.6",&#xA;    "@ffmpeg/util": "^0.12.1",&#xA;    "vue": "^3.4.21"&#xA;  },&#xA;  "devDependencies": {&#xA;    "@vitejs/plugin-vue": "^5.0.4",&#xA;    "vite": "^5.2.0"&#xA;  }&#xA;

    &#xA;

    vite.config.js

    &#xA;

    import { defineConfig } from &#x27;vite&#x27;&#xA;import vue from &#x27;@vitejs/plugin-vue&#x27;&#xA;import { fileURLToPath, URL } from &#x27;node:url&#x27;&#xA;&#xA;// https://vitejs.dev/config/&#xA;export default defineConfig({&#xA;    plugins: [vue()],&#xA;    resolve: {&#xA;        alias: {&#xA;            &#x27;@&#x27;: fileURLToPath(new URL(&#x27;./src&#x27;, import.meta.url))&#xA;        }&#xA;    },&#xA;    optimizeDeps: {&#xA;        exclude: ["@ffmpeg/ffmpeg", "@ffmpeg/util"],&#xA;    },&#xA;    server: {&#xA;        headers: {&#xA;            "Cross-Origin-Opener-Policy": "same-origin",&#xA;            "Cross-Origin-Embedder-Policy": "require-corp",&#xA;        },&#xA;    },&#xA;})&#xA;

    &#xA;

    node version :

    &#xA;

    v18.18.2&#xA;

    &#xA;

    I try this too :

    &#xA;

    await ffmpeg.load({&#xA;        coreURL: await toBlobURL(`${baseURL}/ffmpeg-core.js`, &#x27;text/javascript&#x27;),&#xA;        wasmURL: await toBlobURL(`${baseURL}/ffmpeg-core.wasm`, &#x27;application/wasm&#x27;),&#xA;        workerURL: await toBlobURL(`${baseURL}/ffmpeg-core.worker.js`, &#x27;text/javascript&#x27;)&#xA;    })&#xA;

    &#xA;

  • Can't get FFMPEG buildpack working in Heroku Node.js server (using Fluent-FFMPEG)

    30 juillet 2021, par Rayhan Memon

    I'm using a library called 'fluent-ffmpeg' on my Nodejs server that makes it easier to use an audio/video editing tool called FFmpeg, which is downloaded locally on my computer.

    &#xA;

    When running on my computer, I point fluent-ffmpeg to the local executable files of FFmpeg and FFprobe on my computer, like so :

    &#xA;

    import ffmpeg from "fluent-ffmpeg";&#xA;&#xA;// When running locally, set FFmpeg and FFprobe path to the local executable files&#xA;ffmpeg.setFfmpegPath("C:/Program Files/FFMPEG/ffmpeg.exe");&#xA;ffmpeg.setFfprobePath("C:/Program Files/FFMPEG/ffprobe.exe");&#xA;

    &#xA;

    When deploying to Heroku, I must use an FFmpeg 'buildpack'.

    &#xA;

    I've tried two :

    &#xA;

      &#xA;
    1. https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest
    2. &#xA;

    3. https://github.com/HasibulKabir/heroku-buildpack-ffmpeg-ffprobe
    4. &#xA;

    &#xA;

    Neither have worked for me. Whenever I use an FFmpeg command, I get the following error in my heroku logs :

    &#xA;

    2021-07-24T15:22:52.970990&#x2B;00:00 app[web.1]:   code: &#x27;ENOENT&#x27;,&#xA;2021-07-24T15:22:52.970990&#x2B;00:00 app[web.1]:   syscall: &#x27;spawn C:/Program Files/FFMPEG/&#x27;,&#xA;2021-07-24T15:22:52.970990&#x2B;00:00 app[web.1]:   path: &#x27;C:/Program Files/FFMPEG/&#x27;,&#xA;2021-07-24T15:22:52.970991&#x2B;00:00 app[web.1]:   spawnargs: [&#xA;2021-07-24T15:22:52.970991&#x2B;00:00 app[web.1]:     &#x27;-show_streams&#x27;,&#xA;2021-07-24T15:22:52.970991&#x2B;00:00 app[web.1]:     &#x27;-show_format&#x27;,&#xA;2021-07-24T15:22:52.970992&#x2B;00:00 app[web.1]:     &#x27;temp/cf3b5f1ae270df824921364573a4366b&#x27;&#xA;2021-07-24T15:22:52.970992&#x2B;00:00 app[web.1]:   ]&#xA;2021-07-24T15:22:52.970992&#x2B;00:00 app[web.1]: }&#xA;

    &#xA;

    How can I go about using fluent-ffmpeg in my Nodejs server when deploying to Heroku ?

    &#xA;

    Thank you for the help in advance !

    &#xA;