Recherche avancée

Médias (0)

Mot : - Tags -/performance

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

Autres articles (111)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Que fait exactement ce script ?

    18 janvier 2011, par

    Ce script est écrit en bash. Il est donc facilement utilisable sur n’importe quel serveur.
    Il n’est compatible qu’avec une liste de distributions précises (voir Liste des distributions compatibles).
    Installation de dépendances de MediaSPIP
    Son rôle principal est d’installer l’ensemble des dépendances logicielles nécessaires coté serveur à savoir :
    Les outils de base pour pouvoir installer le reste des dépendances Les outils de développements : build-essential (via APT depuis les dépôts officiels) ; (...)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (9708)

  • ffmpeg connection reset by peer

    8 mars 2015, par Quentin Spottiswoode

    I have a problem when using ffmpeg :

    quite often my clients will have slightly dodgy internet connections but they subscribe to a service which is designed to record a stream that they are hosting, and record it for hosting on something like a wordpress site.

    ffmpeg is called by a python script. I would like, ideally, to know if ffmpeg will throw an exception or return a value that can be accessed by the python script and used as a variable to determine if there was a problem recording the audio.

    at the moment python calls ffmpeg using :

    os.system('ffmpeg -i [stream address] -t 1:00 -acodec copy ')

    when I simulate a connection loss (turning off the NIC on the virtual machine) ffmpeg prints to the terminal

    Connection reset by peer
  • Send automatic keypress in Command Prompt

    28 mars 2018, par Dennis

    I have a .bat file which I want to run on a specific date and time using Task Scheduler in Windows while I’m away from my computer. It will open a Windows server and record it using FFmpeg, a command-line based desktop recording tool but I want it to press ’q’ after xx seconds. Here’s what I have so far.

    @echo off

    :: Bot runner or server

    start "GLPDVWAPP098" "c:\Program Files\uvnc bvba\UltraVNC\vncviewer.exe" GLPDVWAPP098 /quickoption 3 /keepalive 300 -disableclipboard -nostatus -shared -autoreconnect 0

    timeout /t 3

    :: Execute desktop recording

    ffmpeg -f gdigrab -framerate 50 -i title="glpdvwapp098 ( 10.236.80.246 ) - service mode " Test1.avi

    pause

    When FFmpeg is executed, it won’t stop recording until ’q’ is pressed but I want to avoid it from recording too long until I’m on the computer.

  • m4a/mp3 files to wav for Bing Speech API

    17 décembre 2018, par Waqas

    Bing Speech API only accepts wav files so I have been trying to convert m4a (Skype) and mp3 (Facebook) audio files I am getting in my chatbot to wav format. I am using fluent-ffmpeg in node.js.

    For now, I am downloading the audio file, converting it to wav and returning the piped output for use ahead.

    if (attachment.contentType === 'audio/x-m4a') {
     request.get(attachment.contentUrl).pipe(fs.createWriteStream('file.m4a'));
     var command = ffmpeg('file.m4a')
           .toFormat('wav')
           .on('error', function (err) {
               console.log('An error occurred: ' + err.message);
           })
           .on('progress', function (progress) {
               // console.log(JSON.stringify(progress));
               console.log('Processing: ' + progress.targetSize + ' KB converted');
           })
           .on('end', function () {
               console.log('Processing finished !');
           });

     return command.pipe();
    }

    Right now, the conversion works when I send the m4a file through the botframework-emulator on my pc. But when I specify my pc as the endpoint (through ngrok) and try to send the m4a file from the chat test at the bot framework developer end, ffmpeg returns an error :

    An error occurred: ffmpeg exited with code 1: file.m4a: Invalid data found when processing input

    But when I play the downloaded m4a file, it plays alright.

    The content URL is https in the second case if that matters.

    Kindly help me with two things :

    1. Downloading, Converting and Returning without storing anything on my end
    2. Downloading/Accessing m4a/mp3 files properly

    I am new to streams, pipes and ffmpeg and all the above code is after googling.