Recherche avancée

Médias (91)

Autres articles (57)

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

  • Activation de l’inscription des visiteurs

    12 avril 2011, par

    Il est également possible d’activer l’inscription des visiteurs ce qui permettra à tout un chacun d’ouvrir soit même un compte sur le canal en question dans le cadre de projets ouverts par exemple.
    Pour ce faire, il suffit d’aller dans l’espace de configuration du site en choisissant le sous menus "Gestion des utilisateurs". Le premier formulaire visible correspond à cette fonctionnalité.
    Par défaut, MediaSPIP a créé lors de son initialisation un élément de menu dans le menu du haut de la page menant (...)

Sur d’autres sites (6728)

  • UnsupportedAudioFileException in LIUM Speaker Diarization after re-sampling

    14 septembre 2016, par RAVI D PARIKH

    I am trying to configure LIUM tool for speaker diarization. This question is a follow up of UnsupportedAudioFileException in LIUM Speaker Diarization

    I have tried re sampling the file using sox and ffmpeg

    I am new to any sorts of programming and i have followed all steps described in LIUM quick start guide and the above link. I still get the same error. I think my input file has issues related to header as mentioned by Nikolay Shmyrev in the above link however i have no clue on how to solve it.

    My code is as below :

    java –jar  C:\Users\Ravi\Desktop\LIUM_SpkDiarization-8.4.1.jar \ --fInputMask= C:\Users\Ravi\Desktop\converted_f2.wav--sOutputMask= C:\Users\Ravi\Desktop\converted_converted_2.seg -–help --doCEClustering

    Error :

    10:52.037 SEVERE AudioFeatureSetFa  FileNotFoundException
    java.io.FileNotFoundException:
           at java.io.FileInputStream.open0(Native Method)
           at java.io.FileInputStream.open(Unknown Source)
           at java.io.FileInputStream.<init>(Unknown Source)
           at com.sun.media.codec.audio.mp3.JS_MP3FileReader.getAudioFileFormat(JS_MP3FileReader.java:82)
           at javax.sound.sampled.AudioSystem.getAudioFileFormat(Unknown Source)
           at fr.lium.spkDiarization.libFeature.AudioFeatureSetFactory.getAudio(AudioFeatureSetFactory.java:162)
           at fr.lium.spkDiarization.libFeature.AudioFeatureSetFactory.MakeFeature(AudioFeatureSetFactory.java:207)
    </init>

    The input file is at https://drive.google.com/file/d/0B7Fqe9EX5JbgT09BcXpSREd4em8/view?usp=sharing

    Input File Name:converted_f2.wav

    I have put the command and the full output of the prompt in a word document at

    https://drive.google.com/file/d/0B7Fqe9EX5JbgUUl6THNCZFgxRnM/view?usp=sharing

    The inpiut file has correct sampling rate and other parameters and thus i am not able to understand the cause of the error.
    Thanks a lot for the help

    Regards,
    Ravi

  • Convert wav to mp3 using Meteor FS Collections on Startup

    28 juillet 2015, par TheBetterJORT

    I’m trying to transcode all wav files into a mp3 using Meteor and Meteor FS Collections. My code works when I upload a wav file to the uploader — That is it will convert the wav to a mp3 and allow me to play the file. But, I’m looking for a Meteor Solution that will transcode and add the file to the DB if the file is a wav and exist in a certain directory. According to the Meteor FSCollection it should be possible if the files have already been stored. Here is their example code : *GM is for ImageMagik, I’ve replaced gm with ffmpeg and installed ffmpeg from atmosphereJS.

    Images.find().forEach(function (fileObj) {
     var readStream = fileObj.createReadStream('images');
     var writeStream = fileObj.createWriteStream('images');
     gm(readStream).swirl(180).stream().pipe(writeStream);
    });

    I’m using Meteor-CollectionFS [https://github.com/CollectionFS/Meteor-CollectionFS]-

    if (Meteor.isServer) {
     Meteor.startup(function () {
           Wavs.find().forEach(function (fileObj) {
         var readStream = fileObj.createReadStream('.wavs/mp3');
         var writeStream = fileObj.createWriteStream('.wavs/mp3');
         this.ffmpeg(readStream).audioCodec('libmp3lame').format('mp3').pipe(writeStream);
         Wavs.insert(fileObj, function(err) {
         console.log(err);
       });
         });
         });
    }

    And here is my FS.Collection and FS.Store information. Currently everything resides in one JS file.

    Wavs = new FS.Collection("wavs", {
     stores: [new FS.Store.FileSystem("wav"),
       new FS.Store.FileSystem("mp3",

       {
         path: '~/wavs/mp3',
         beforeWrite: function(fileObj) {
           return {
             extension: 'mp3',
             fileType: 'audio/mp3'
           };
         },
         transformWrite: function(fileObj, readStream, writeStream) {
           ffmpeg(readStream).audioCodec('libmp3lame').format('mp3').pipe(writeStream);
         }
       })]
    });

    When I try and insert the file into the db on the server side I get this error : MongoError : E11000 duplicate key error index :

    Otherwise, If I drop a wav file into the directory and restart the server, nothing happens. I’m new to meteor, please help. Thank you.

  • Gnuplot how to set a variable to standard-input if not passed

    27 août 2020, par DDS

    I have a gnuplot script (plot.script) that is invoked like

    &#xA;

    C:> ffmpeg -i &#x27;.\my_awesome_audio_file.wav&#x27; -filter_complex aformat=channel_layouts=mono -acodec pcm_s16le -ar 4000 -f data - | gnuplot -e "fileout=&#x27;plot&#x27;;fileformat=&#x27;png&#x27;;wid=500;" .\plot.script        &#xA;

    &#xA;

    Now I'd want to default filein variable to stdin if it is not passed as argument. This because I want to be able to call this script as a 1-liner command with ffmpeg data generation and also as step-by-step procedure

    &#xA;

    My idea was to use

    &#xA;

    if(!exists(&#x27;filein&#x27;)){&#xA;filein = &#x27;-&#x27;;&#xA;}&#xA;

    &#xA;

    but this throws warning: Skipping data file with no valid points

    &#xA;

    if i print the variable datafile I got - (I expected something like stdin).

    &#xA;

    this is the plot.script script :

    &#xA;

    &#xA;if(!exists(&#x27;filein&#x27;)){&#xA;    filein = &#x27;-&#x27;;&#xA;    }&#xA;&#xA;if (!exists("hei")){&#xA;    hei = 4444;&#xA;    }&#xA;if (!exists("wid")){&#xA;    wid = 5555;&#xA;    }&#xA;if(!exists("fileformat")){&#xA;     fileformat = &#x27;png&#x27;;&#xA;     }&#xA;if(!exists("fileout")){&#xA;     fileout = &#x27;risultato&#x27;;&#xA;   }&#xA;   &#xA;fileout = fileout . &#x27;.&#x27; . fileformat;&#xA;   &#xA;if(!exists("dataformat")){&#xA;    dataformat = &#x27;%int16&#x27;;&#xA;    }&#xA;if(fileformat eq &#x27;png&#x27;){&#xA;  set terminal png transparent size larghezza,altezza;&#xA;  &#xA;  }else{&#xA;  set terminal fileformat size wid,hei;&#xA;  }&#xA;  set output fileout;&#xA;  unset key;&#xA;  unset tics;&#xA;  unset border;&#xA;  set lmargin 0;&#xA;  set rmargin 0;&#xA;  set tmargin 0;&#xA;  set bmargin 0;&#xA;&#xA;&#xA;print filein;&#xA;plot filein binary filetype=bin format=dataformat endian=little array=1:0 with lines linecolor "0x009900";&#xA;

    &#xA;

    But I also want to call this command-by-command :&#xA;generate the data-file :

    &#xA;

    c:> ffmpeg -i &#x27;.\my_awesome_audio_file.wav&#x27; -filter_complex aformat=channel_layouts=mono -acodec pcm_s16le -ar 4000 -f data audio.dat&#xA;

    &#xA;

    plot the data :

    &#xA;

    c:> gnuplot -e "filein=&#x27;audio.dat&#x27;;fileout=&#x27;plot&#x27;;fileformat=&#x27;png&#x27;;wid=500;" .\plot.script&#xA;

    &#xA;