Recherche avancée

Médias (91)

Autres articles (45)

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

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (8457)

  • lavc/flacdsp : R-V V LPC16 function

    15 novembre 2023, par Rémi Denis-Courmont
    lavc/flacdsp : R-V V LPC16 function
    

    In this case, the inner loop computing the scalar product can be reduced
    to just one multiplication and one sum even with 128-bit vectors. The
    result is a lot simpler, but also brings more modest performance gains :

    flac_lpc_16_13_c : 15241.0
    flac_lpc_16_13_rvv_i32 : 11230.0
    flac_lpc_16_16_c : 17884.0
    flac_lpc_16_16_rvv_i32 : 12125.7
    flac_lpc_16_29_c : 27847.7
    flac_lpc_16_29_rvv_i32 : 10494.0
    flac_lpc_16_32_c : 30051.5
    flac_lpc_16_32_rvv_i32 : 10355.0

    • [DH] libavcodec/riscv/flacdsp_init.c
    • [DH] libavcodec/riscv/flacdsp_rvv.S
  • Error : bad memory at /opt/render/project/src/node_modules/@ffmpeg.wasm/core-mt/dist/core.js:15:1

    1er octobre 2023, par James

    While deploying nodejs app on render.com i get this error Error : bad memory at /opt/render/project/src/node_modules/@ffmpeg.wasm/core-mt/dist/core.js:15:1.

    


    how to avoid this error i am using ffmpeg for merging audio with video.

    


    full error

    


     /opt/render/project/src/node_modules/@ffmpeg.wasm/core-mt/dist/core.js:15&#xA;Oct 1 04:53:37 PM  Error("bad memory");var Aa=z.buffer;e.HEAP8=A=new Int8Array(Aa);e.HEAP16=C=new Int16Array(Aa);e.HEAP32=E=new Int32Array(Aa);e.HEAPU8=B=new Uint8Array(Aa);e.HEAPU16=wa=new Uint16Array(Aa);e.HEAPU32=F=new Uint32Array(Aa);e.HEAPF32=xa=new Float32Array(Aa);e.HEAPF64=ya=new Float64Array(Aa);za=z.buffer.byteLength;var H,Ba=[],Ca=[],Da=[],Ea=[],Fa=[],Ga=!1,Ha=0;function Ia(){return noExitRuntime||0opt/render/project/src/node_modules/@ffmpeg.wasm/core-mt/dist/core.js:15:1&#xA;Oct 1 04:53:37 PM      at Function.<anonymous> (/opt/render/project/src/node_modules/@ffmpeg.wasm/main/dist/index.js:165:64)&#xA;Oct 1 04:53:37 PM      at Generator.next (<anonymous>)&#xA;Oct 1 04:53:37 PM      at fulfilled (/opt/render/project/src/node_modules/@ffmpeg.wasm/main/dist/index.js:28:22)&#xA;</anonymous></anonymous>

    &#xA;

    my code

    &#xA;

    import express from "express";&#xA;const router = express.Router();&#xA;import { readFile, writeFile } from "fs/promises";&#xA;import { FFmpeg } from "@ffmpeg.wasm/main";&#xA;import path from "path";&#xA;&#xA;const currentDirectory = process.cwd();&#xA;&#xA;const inputFilePath = path.join(currentDirectory, "video3.mp4");&#xA;const inputFilePath1 = path.join(currentDirectory, "wolf-howl-6310.mp3");&#xA;const outputFilePath = path.join(currentDirectory, "video3-2.mp4");&#xA;&#xA;const ffmpeg = await FFmpeg.create({ core: "@ffmpeg.wasm/core-mt", log: true });&#xA;&#xA;try {&#xA;  ffmpeg.fs.writeFile("/video3.mp4", await readFile(inputFilePath));&#xA;  ffmpeg.fs.writeFile("/wolf-howl-6310.mp3", await readFile(inputFilePath1));&#xA;  console.log(ffmpeg.version);&#xA;  await ffmpeg.run(&#xA;    "-i",&#xA;    "/wolf-howl-6310.mp3",&#xA;    "-i",&#xA;    "/video3.mp4",&#xA;    "-c",&#xA;    "copy",&#xA;    "-map",&#xA;    "0:a:0",&#xA;    "-map",&#xA;    "1:v:0",&#xA;    "/video3-2.mp4"&#xA;  );&#xA;  await writeFile(outputFilePath, ffmpeg.fs.readFile("/video3-2.mp4"));&#xA;  console.log("Conversion successful!");&#xA;} catch (error) {&#xA;  console.error("Error:", error);&#xA;}&#xA;&#xA;router.post("/", (req, res) => {});&#xA;export { router as Merge };&#xA;

    &#xA;

  • Why is the external executable I bundled with my azure function not being found at runtime, despite it being present in the expected location ?

    6 septembre 2023, par Cristian Camilo Garcia Barrera

    I have a group of Azure functions that I publish to a functions app. One of these is a blob triggered function, meant to extract thumbnails from videos uploaded to Azure storage, and to do so, uses ffmpeg.exe.

    &#xA;

    I have published the project via Visual Studio, adding the executable in a directory in the root of the project. The relative path is exe/ffmpeg.exe. To include the executable in the published bundle I followed the instructions in this Microsoft Developer instructional video.

    &#xA;

    After publication, If I enter the Kudu debug console for this function app, I can find the file under C:\home\site\wwwroot\exe\ffmpeg.exe, as expected. I can even use that absolute path to execute ffmpeg inside the Kudu console.

    &#xA;

    This is the code I use to call the ffmpeg executable in the blob function :

    &#xA;

    using (var process = new Process())&#xA;{&#xA;    process.StartInfo = new ProcessStartInfo&#xA;    {&#xA;        FileName = @"C:\home\site\wwwroot\exe\ffmpeg.exe",&#xA;        Arguments = $"-hide_banner -loglevel error -i {videoTempPath} -frames:v 1 {thumbTempPath}",&#xA;        UseShellExecute = false,&#xA;        RedirectStandardOutput = true,&#xA;        RedirectStandardError = true,&#xA;        CreateNoWindow = true&#xA;    };&#xA;&#xA;    process.Start();&#xA;    await process.WaitForExitAsync();&#xA;}&#xA;

    &#xA;

    However, this does not work. I get the following error in the logs :

    &#xA;

    &#xA;

    An error occurred trying to start process 'C :\home\site\wwwroot\exe\ffmpeg.exe' with working directory 'C :\Program Files (x86)\SiteExtensions\Functions 4.25.2132bit. The system cannot find the file specified.

    &#xA;

    &#xA;

    And indeed my thumbnails are never created. How can I solve this, or why does it happen ?

    &#xA;