Recherche avancée

Médias (0)

Mot : - Tags -/médias

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

Autres articles (48)

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

  • Création définitive du canal

    12 mars 2010, par

    Lorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
    A la validation, vous recevez un email vous invitant donc à créer votre canal.
    Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
    A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (4692)

  • pyInstaller : Pack binary executable inside project's executable to run

    18 décembre 2023, par zur

    TLDR ;

    


    I would like to pack the ffmpeg executable inside my own executable. Currently I am getting

    


    FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg'
Skipping ./testFile202312061352.mp4 due to FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg'


    


    Details :

    


    I am creating executable file using following command :

    


    pyinstaller cli.py \&#xA;  --onefile \&#xA;  --add-binary /Users/<machineuser>/anaconda3/envs/my_env/bin/ffmpeg:bin&#xA;</machineuser>

    &#xA;

    The code that uses ffmpeg is not authored by me. And I would like to keep that part the same.

    &#xA;

    When I run from command line while conda environment is active I can successfully run it as python (or perhaps anaconda) knows where the binaries are. I have a pretty empty cli.py. That seems to be the entry point and I hope if it is possible I can set the bin directory's path there ...

    &#xA;

    I am able to successfully run the application like following :

    &#xA;

    (my_env) machineUser folder % "dist/cli_mac_001202312051431" ./testFile202312061352.mp4&#xA;

    &#xA;

    I would like to run like following :

    &#xA;

    (base) machineUser folder % "dist/cli_mac_001202312051431" ./testFile202312061352.mp4&#xA;

    &#xA;

    I would like to keep the world out side my executable's tmp folder the same. I would not want to change something that will be "left behind" after the exec is terminated.

    &#xA;

    Question :

    &#xA;

    Can some one please mention how to modify the pyinstaller command or what to change in cli.py to achieve it successfully ?

    &#xA;

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

    &#xA;

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

    &#xA;

    full error

    &#xA;

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

  • Integrate necessary ffmpeg libraries in own project for MCU (microcontrolers) [closed]

    16 septembre 2023, par Borel Kamnang

    I use two ffmpeg commands here :

    &#xA;

    ffmpeg -i BigBuckBunny_320x180.mp4 -vf scale=192:96,setsar=1:1 outputBBB.mp4&#xA;ffmpeg -i outputBBB.mp4 -vf "fps=12,scale=-1:96:flags=lanczos,crop=192:in_h:(in_w-192)/2:0" -c:v rawvideo -pix_fmt rgb565be BigBuckBunny_192x96_12fps.rgb&#xA;

    &#xA;

    The first is to downscale an original video and the second is to convert the scaled video to a .rgb format.

    &#xA;

    As anew user of ffmpeg, I would like to know what are libraries used for that two command to just integrate them in my Arduino IDE C++ project an just call the necessary functions to do the downscale and the conversion.

    &#xA;

    And another of my concerns is knowing how I can run any ffmpeg in an Raspberry Pi Pico W (RP2040) or ESP32 microcontroller ?

    &#xA;

    I tried to include the ffmpeg libraries folder in a created Arduino IDE project for Raspberry pico w and the link for files doesn't work. In addition to having the config.h and config components.h files missing in the folder downloaded from the ffmpeg site, there are too many dependencies between .h and .c files.

    &#xA;

    extern "C" {&#xA;  #include "src/ffmpeg/libavcodec/avcodec.h"       &#xA;  #include "src/ffmpeg/libavutil/mathematics.h"&#xA;}&#xA;void setup() {&#xA;   Serial.begin(115200);&#xA;   delay(10000);&#xA; }&#xA; loop(){&#xA; }&#xA;

    &#xA;

    It's been three days today that I've been trying to compile from Arduino IDE, and correct the links in the files.&#xA;The problem is also that I don't even have the certainty of what it will work in the Raspberry Pi PicoW or ESP32 afterwards.

    &#xA;