Recherche avancée

Médias (0)

Mot : - Tags -/serveur

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

Autres articles (66)

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

  • 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

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

  • Output format m4a is not available

    7 septembre 2023, par THEMOUNTAINSANDTHESKIES

    I have the following function :

    


    const convertAudio = async (file, inputFormat, outputFormat, audioCodec) => {
    const inputPath = file.path;
    const outputPath = `converted/${file.originalname.replace(`.${inputFormat}`, `.${outputFormat}`)}`;
  
    return new Promise((resolve, reject) => {
      ffmpeg(inputPath)
        .audioCodec(audioCodec)
        .toFormat(outputFormat)
        .on('end', () => {
          fs.unlinkSync(inputPath);
          resolve(outputPath);
        })
        .on('error', (err) => {
          console.error('Conversion error', err);
          reject(err);
        })
        .save(outputPath);
    });
  };


    


    When I call it using :

    


    outputPath = await convertAudio(file, 'wav', 'm4a', 'aac');


    


    file is :

fieldname : 'files',
originalname : 'life jacket.wav',
encoding : '7bit',
mimetype : 'audio/wav',
destination : 'uploads/',
filename : '02f9e4535011c78745d7bc4b4adb1a54',
path : 'uploads\02f9e4535011c78745d7bc4b4adb1a54',
size : 60292942


    


    I get the following error :

    


    Conversion error Error: Output format m4a is not available&#xA;    at [Project_Path]\node_modules\fluent-ffmpeg\lib\capabilities.js:589:21&#xA;    at nextTask ([Project_Path]\node_modules\async\dist\async.js:5789:13)&#xA;    at next ([Project_Path]\node_modules\async\dist\async.js:5797:13)&#xA;    at [Project_Path]\node_modules\async\dist\async.js:327:20&#xA;    at [Project_Path]\node_modules\fluent-ffmpeg\lib\capabilities.js:549:7&#xA;    at handleExit ([Project_Path]\node_modules\fluent-ffmpeg\lib\processor.js:170:11)&#xA;    at ChildProcess.<anonymous> ([Project_Path]\node_modules\fluent-ffmpeg\lib\processor.js:184:11)&#xA;    at ChildProcess.emit (node:events:527:28)&#xA;    at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)&#xA;node:internal/process/promises:279&#xA;            triggerUncaughtException(err, true /* fromPromise */);&#xA;            ^&#xA;</anonymous>

    &#xA;

    This function works for convertAudio(file, &#x27;wav&#x27;, &#x27;mp3&#x27;, &#x27;libmp3lame&#x27;); and convertAudio(file, &#x27;mp3&#x27;, &#x27;wav&#x27;, &#x27;pcm_s16le&#x27;);, why isn't it working for this one ? Thank you for any help.

    &#xA;

    I'm using node.js with express, javascript, and ffmpeg-fluent. FFmpeg version 4.2.3.

    &#xA;

    Let me know if there are more details I should give.

    &#xA;

  • ffmpeg and 64 bit architecure

    16 avril 2015, par nevgauker

    there is a pretty old project i need to upload to the store.
    how old you ask ? 32 bit only ,no arc and no story board...

    since in this days in mandatory to make a single archive that support 32 and 64 build ...i decided to update the valid architecture of the project.
    i discovered that many frameworks do not support 64 bit and i have to update them . the most problematic is ffmpge..
    here i few things that i tried to do and fail :

    1. add ffmpeg as a static libary
    2. add ffmpeg using cocoa pods

    nothing helps...

    here are some of the errors i get :
    Undefined symbols for architecture arm64 :
    "_av_read_frame", referenced from :
    -[Demuxer readPacket :] in Demuxer.o
    "_av_malloc", referenced from :
    -[Streamer writePacket :] in Streamer.o
    "_av_register_all", referenced from :
    +[Streamer initialize] in Streamer.o
    "_avformat_write_header", referenced from :
    -[Streamer writePacket :] in Streamer.o
    "_avio_close", referenced from :
    -[Streamer dealloc] in Streamer.o
    "_av_new_stream", referenced from :
    -[Streamer writePacket :] in Streamer.o
    "_avformat_free_context", referenced from :
    -[Streamer dealloc] in Streamer.o

    any suggestion ?

    the only way i succeed is turn on the "build active architecture only" (and of course get rejected when i try to upload to the store)

    if you refer me to any shell script, please instruct me how to use it

    thanks

  • Error : "from : can't read /var/mail/moviepy.editor" How to resolve ?

    23 mai 2017, par batman_rising

    I have a script using which I am editing a video, (extracting 10 clips from a video and then simply concatenating them), I am using moviepy python module as well as ffmpeg

    The script works perfectly when I run it from terminal,

    Now I wanted to run the same script on startup, so I added a path in /etc/rc.local
    sudo python /home/startlord/myProject/run.py but the code doesn’t work.

    also, I tried another approach,
    sudo nano /etc/init.d/testRun and created the script executable sudo chmod 755 /etc/init.d/testRun
    but when I wanted to start the execution sudo /etc/init.d/testRun start I was getting this error

    from : can’t read /var/mail/moviepy.editor

    what should I do now ! I am using UP-board, please help, I am not from computer science background.