Recherche avancée

Médias (1)

Mot : - Tags -/getid3

Autres articles (29)

  • D’autres logiciels intéressants

    12 avril 2011, par

    On ne revendique pas d’être les seuls à faire ce que l’on fait ... et on ne revendique surtout pas d’être les meilleurs non plus ... Ce que l’on fait, on essaie juste de le faire bien, et de mieux en mieux...
    La liste suivante correspond à des logiciels qui tendent peu ou prou à faire comme MediaSPIP ou que MediaSPIP tente peu ou prou à faire pareil, peu importe ...
    On ne les connais pas, on ne les a pas essayé, mais vous pouvez peut être y jeter un coup d’oeil.
    Videopress
    Site Internet : (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

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

Sur d’autres sites (6663)

  • Use Google Fonts In ffmpeg fontfile

    9 mars 2020, par Randy Thomas

    I am wanting to use Google Fonts in my ffmpeg video creations for text. Here is what I have and it’s not working at all.

    $font = "//fonts.googleapis.com/css?family=Aclonica";

    $cmd .= "drawtext=enable='between(t,".$fi.",".$li.")':fontfile=".$font.":fontsize=".$fontsize.":fontcolor=".$color.":x=(w-text_w)/2:y=(h/2)+".$n.":text='".$arr[$j]."',";

    Of course, this works with .ttf fonts but I really want to use Google Fonts.

    I have also tried $font = "https://fonts.googleapis.com/css?family=Aclonica" that does not work either.

    I have a feeling that ffmpeg does not use woff2 fonts but I have seen a site that does this I just can’t say 100% for sure that they use Google Fonts in the creation, but they do use them in the selection of the font which leads me to believe they use them in the creation of the video.

  • google speech to text errors out (grpc invalid deadline NaN)

    15 décembre 2019, par jamescharlesworth

    I have a ffmpeg script that cuts an audio file into a short 5 second clip, however after I cut the file, calling the google speech recognize command errors out.

    Creating a clip - full code link :

    const uri = 'http://traffic.libsyn.com/joeroganexp/p1400.mp3?dest-id=19997';
    const command = ffmpeg(got.stream(uri));
    command
     .seek(0)
     .duration(5)
     .audioBitrate(128)
     .format('mp3')
    ...

    which works fine and creates ./clip2.mp3.

    I then take that file and upload it to speech to text api and it times out (script here. When I put timeout and maxRetries argument I can get the actual error :

    Error: 2 UNKNOWN: Getting metadata from plugin failed with error: Deadline is too far in the future
       at Object.callErrorFromStatus (/Users/jamescharlesworth/Downloads/demo/node_modules/@grpc/grpc-js/build/src/call.js:30:26)
       at Http2CallStream.<anonymous> (/Users/jamescharlesworth/Downloads/demo/node_modules/@grpc/grpc-js/build/src/client.js:96:33)
       at Http2CallStream.emit (events.js:215:7)
       at /Users/jamescharlesworth/Downloads/demo/node_modules/@grpc/grpc-js/build/src/call-stream.js:98:22
       at processTicksAndRejections (internal/process/task_queues.js:75:11) {
     code: 2,
     details: 'Getting metadata from plugin failed with error: Deadline is too far in the future',
     metadata: Metadata { internalRepr: Map {}, options: {} },
     note: 'Exception occurred in retry method that was not classified as transient'
    }
    </anonymous>

    Stepping through the grpc code i see that the deadline is an invalid date.
    enter image description here
    This seems to be causing the issue but i assume it may be from incorrect params passed into the speech client.recognize() method.

    A few other things to note :

    • The script works for some audio files, not all
    • I can upload the broken my clip mp3 clip2.mp3 to the demo app here and it works fine.
    • If I change the seek command of my ffmpeg script to start at 0.01 speech recognize command will work (however it breaks other audio clips as its not the correct starting point). I notice that when i do this the png of the mp3 gets stripped out and is a much smaller file size
  • Google Speech API - Is there a way to determine if the audio has human voice or not ?

    20 décembre 2019, par stupid_sma

    I am making an audio filtering application at work that reads over hundreds of audio files and filters them. So, if the audio has human voice in it, it will accept it and if it does not- it will delete the audio file.

    I am using ffmpeg to get the details of the audio and add other filters like size and duration and silence (though it is not very accurate in detecting silence for all audio files.)

    My company asked me to try the Google Cloud Speech API to detect if the audio has any human voice in it.

    So with this code, some audio files return a Transcript of spoken words in the audio file, but what I need is to determine if a human is speaking or not.

    I have considered using hark.js for it but there does not seem to be enough documentation and I am short on time !

    Ps. I am an intern and I’m just starting out with programming. I apologize if my question does not make sense or sounds dumb.

      # Includes the autoloader for libraries installed with composer
      require __DIR__ . '/vendor/autoload.php';

      # Imports the Google Cloud client library
      use Google\Cloud\Speech\V1\SpeechClient;
      use Google\Cloud\Speech\V1\RecognitionAudio;
      use Google\Cloud\Speech\V1\RecognitionConfig;
      use Google\Cloud\Speech\V1\RecognitionConfig\AudioEncoding;

      putenv('GOOGLE_APPLICATION_CREDENTIALS=../../credentials.json');



      echo getcwd() . "<br />";
      chdir('test-sounds');
      echo getcwd() . "<br />";
      echo shell_exec('ls -lr');

      $fileList = glob('*');
      foreach($fileList as $filename){
      //echo $filename, '<br />';

      # The name of the audio file to transcribe
      $audioFile = __DIR__ . '/' . $filename;

      # get contents of a file into a string
      $content = file_get_contents($audioFile);

      # set string as audio content
      $audio = (new RecognitionAudio())
          ->setContent($content);

      # The audio file's encoding, sample rate and language
      $config = new RecognitionConfig([
          'encoding' => AudioEncoding::LINEAR16,
          'language_code' => 'ja-JP'
      ]);

      # Instantiates a client
      $client = new SpeechClient();

      # Detects speech in the audio file
      $response = $client->recognize($config, $audio);

      # Print most likely transcription
      foreach ($response->getResults() as $result) {
          $alternatives = $result->getAlternatives();
          $mostLikely = $alternatives[0];
          $transcript = $mostLikely->getTranscript();
          printf('<br />Transcript: %s' . PHP_EOL, $transcript . '<br />');

      }

      $client->close();

      }

      ?> ```