Recherche avancée

Médias (1)

Mot : - Tags -/intégration

Autres articles (96)

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

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

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

  • FFMPEG GOP Extraction

    29 mars 2015, par user3601375

    I have an MPEG -4 video and I would like to extract a one GOP (Group of pictures ) at a time to BMPs (using FFMPEG and c++ (code block) ) rather than the whole video in one go, since now all my code writing is stuck there I use to sketch everything in my mind then program and I can’t imagine how to do this, I searched the net for something like that but of no use.. any command line or any library used to do that (I have no full experience on FFMPEG I have read the documentation but that thing was not there). I will appreciate any kind help and thanks for reading y post.

    Regards,

  • Artisan Fatal error when trying to install Laravel FFMpeg

    26 janvier 2017, par Chris Palmer Breuer

    I am trying to include pbmedia/laravel-ffmpeg package in my Laravel app but for some reason when I run composer require pbmedia/laravel-ffmpeg I receive this error :

    composer require pbmedia/laravel-ffmpeg
    Using version ^1.1 for pbmedia/laravel-ffmpeg
    ./composer.json has been updated
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    Nothing to install or update
    Generating autoload files
    > Illuminate\Foundation\ComposerScripts::postUpdate
    > php artisan optimize
    PHP Fatal error:  Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Class 'PHPExcel_Shared_Font' not found in /Users/chrisbreuer/code/clooud/config/excel.php:182
    Stack trace:
    #0 /Users/chrisbreuer/code/clooud/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php(60): require()
    #1 /Users/chrisbreuer/code/clooud/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php(38): Illuminate\Foundation\Bootstrap\LoadConfiguration->loadConfigurationFiles(Object(Illuminate\Foundation\Application), Object(Illuminate\Config\Repository))
    #2 /Users/chrisbreuer/code/clooud/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(203): Illuminate\Foundation\Bootstrap\LoadConfiguration->bootstrap(Object(Illuminate\Foundation\Application))
    #3 /Users/chrisbreuer/code/clooud/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(267): Illuminate\Foundation\Application->bootstrapWith(Array)
    #4 /Users/chrisbreuer/code/clooud/vendor/laravel/framework/src/Illu in /Users/chrisbreuer/code/clooud/config/excel.php on line 182

    Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Class 'PHPExcel_Shared_Font' not found in /Users/chrisbreuer/code/clooud/config/excel.php:182
    Stack trace:
    #0 /Users/chrisbreuer/code/clooud/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php(60): require()
    #1 /Users/chrisbreuer/code/clooud/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php(38): Illuminate\Foundation\Bootstrap\LoadConfiguration->loadConfigurationFiles(Object(Illuminate\Foundation\Application), Object(Illuminate\Config\Repository))
    #2 /Users/chrisbreuer/code/clooud/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(203): Illuminate\Foundation\Bootstrap\LoadConfiguration->bootstrap(Object(Illuminate\Foundation\Application))
    #3 /Users/chrisbreuer/code/clooud/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(267): Illuminate\Foundation\Application->bootstrapWith(Array)
    #4 /Users/chrisbreuer/code/clooud/vendor/laravel/framework/src/Illu in /Users/chrisbreuer/code/clooud/config/excel.php on line 182
    Script php artisan optimize handling the post-update-cmd event returned with error code 255

    Installation failed, reverting ./composer.json to its original content.

    my composer.json file looks like this :

    {
       "name": "laravel/laravel",
       "description": "The Laravel Framework.",
       "keywords": ["framework", "laravel"],
       "license": "MIT",
       "type": "project",
       "require": {
           "php": ">=5.6.4",
           "laravel/framework": "5.3.*"
       },
       "require-dev": {
           "fzaninotto/faker": "~1.4",
           "mockery/mockery": "0.9.*",
           "phpunit/phpunit": "~5.0",
           "symfony/css-selector": "3.1.*",
           "symfony/dom-crawler": "3.1.*"
       },
       "autoload": {
           "classmap": [
               "database"
           ],
           "psr-4": {
               "App\\": "app/"
           }
       },
       "autoload-dev": {
           "classmap": [
               "tests/TestCase.php"
           ]
       },
       "scripts": {
           "post-root-package-install": [
               "php -r \"file_exists('.env') || copy('.env.example', '.env');\""
           ],
           "post-create-project-cmd": [
               "php artisan key:generate"
           ],
           "post-install-cmd": [
               "Illuminate\\Foundation\\ComposerScripts::postInstall",
               "php artisan optimize"
           ],
           "post-update-cmd": [
               "Illuminate\\Foundation\\ComposerScripts::postUpdate",
               "php artisan optimize"
           ]
       },
       "config": {
           "preferred-install": "dist",
           "sort-packages": true
       }
    }

    Any help would be greatly appreciated !

    Thanks so much,
    Chris

  • Convert audio blob to mp3 on expressjs server

    27 septembre 2020, par islalobo

    I have a little app that captures sound and stores the audio as an audio blob encoded as base64 on an expressjs server. I would like to convert these audio files into .mp3 or .wav - any binary usable format. My understanding of audio files is very basic and I'm looking to gain a better understanding. Any guidance is appreciated. I've read through several posts and issues, but I'm just a bit lost right now.

    


    Here is my client-side capture of the audio, encoding and then posting to expressjs server.

    


    const saveMessage = async function(base64AudioMessage) {
    await fetch('/messages', {
        method: 'POST',
        headers: { 'Content-Type': 'application/json' },
        body: JSON.stringify({ message: base64AudioMessage })
      }).then(res => {
        if (res.status === 201) {
          const response = res.json()
          .then(response => {
            console.log(response);
            populateAudioMessages(response.id); // shows the recording that was just saved
          });
        }
        console.log('Invalid status saving audio message: ' + res.status);
      });
      return true;
  }

  sendButton.addEventListener('click', () => {
    const reader = new FileReader();
    reader.readAsDataURL(audio.audioBlob);
    reader.onload = async () => {
      const base64AudioMessage = reader.result.split(',')[1];
      
      await saveMessage(base64AudioMessage);
    };
  });


    


    Here is the post method on my expressjs server. It's very messy as I have been trying to use ffmpeg to convert the posted files to .mp3 format.

    


    app.post('/messages', (req, res) => {
  if (!req.body.message) {
    return res.status(400).json({ error: 'No req.body.message' });
  }
  const messageId = v4();
  writeFile(messageFolder + messageId, req.body.message, 'base64')
  .then(() => {
      console.log('messages was saved!');
      try {
        console.log('attempting to make an mp3 ', audioFolder + messageId);
        const process = new ffmpeg(`${messageFolder}${messageId}`);
        process.then((audio) => {
          console.log('audio is ready to be processed ', audio);
          audio.fnExtractSoundToMP3(`${audioFolder}${messageId}.mp3`, (error, file) => {
            console.log('There is an error ', error);
            console.log('There is a file ', file);
            if (!error) {
              console.log('Audio File ', file);
              const file = file;
              console.log('what a success! ', messageId && messageId, file && file);
              res.status(201).json({
                message: 'Saved message',
              });
            }
          })
        }, (err) => {
          console.log('An error occurred, ', err);
        });
      } catch(e) {
        console.log('error code ', e.code);
        console.log('error message ', e.msg);
      }
  })
  .catch(err => {
    console.log('Error writing message to file', err);
    res.sendStatus(500);
  });
});