Recherche avancée

Médias (91)

Autres articles (92)

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

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (6401)

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

      }

      ?> ```
  • How do you determine the end of the file in a stream containing multiple streams ? (nodejs)

    26 décembre 2019, par Danielkent

    I would like to split an audio file into multiple segments using ffmpeg in an AWS Lambda (NodeJS) function.

    Due to the limitations of (and to optimise for) the lambda environment I would like to stream the audio into ffmpeg, perform the split on the audio file in the stream and then stream the now multiple smaller files out to s3.

    After doing some research I have found the AWS S3 SDK doesn’t support multiple file uploads in one stream. I could resolve this by finding the end of each new segment (file in the output stream) and creating a separate upload to s3.

    Is there a way to determine the end of a file in a stream (containing multiple files) ?

    (without saving it to the file system or loading it to memory).

    I have searched around and I can’t seem to find an answer.

  • How to determine if a ffmpeg subprocess has fallen

    9 avril 2020, par TiHan

    I have an issue

    &#xA;&#xA;

    I want to create a new ffmpeg process using subprocess.popen&#xA;find out his pid&#xA;and in the body of a python program to see if the process is alive or not

    &#xA;&#xA;

    args = shlex.split (&#x27;ffmpeg -i rtsp: //192.168.1.68: 8554 / mystream -f segment -strftime 1 -segment_time 5 13_REG1_CHANNEL3_% Y-% m-% d_% H-% M-% S-% s .mp3 &#x27;)&#xA;print (args)&#xA;proc = subprocess.Popen (args, stdout = subprocess.PIPE)&#xA;ch_pid = proc.pid&#xA;print (proc.pid)&#xA;proc.wait ()&#xA;print (proc.communicate ())&#xA;while (1):&#xA; if (os.system (str (&#x27;kill -0 {PID}&#x27;). format (PID = ch_pid)) == 0):&#xA;   print (&#x27;proc is alive&#x27;)&#xA; else:&#xA;   break&#xA;

    &#xA;&#xA;

    at while loop i tried to check this process pid via kill -0 pid&#xA;this command will return zero if everything is alright and process is running

    &#xA;&#xA;

    BUT

    &#xA;&#xA;

    IF ffmpeg will fall&#xA;there will be no changes

    &#xA;&#xA;

    kill -0 pid will continue to returning zero code that everything is good

    &#xA;&#xA;

    What should i do ?

    &#xA;