Recherche avancée

Médias (0)

Mot : - Tags -/performance

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

Autres articles (62)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (9136)

  • samplerate conversion function fails to produce an audible sound but only small pieces of audio

    2 juillet 2014, par user3749290

    playmp3() using libmpg123

    if (isPaused==0 && mpg123_read(mh, buffer, buffer_size, &done) == MPG123_OK)
    {
       char * resBuffer=&buffer[0]; //22100=0,5s
       buffer = resample(resBuffer,22050,22050); // I think the result is 1/2 of audio speed
       if((ao_play(dev, (char*)buffer, done)==0)){
           return 1;
    }

    resample() Using avcodec from ffmpeg

    #define LENGTH_MS 500       // how many milliseconds of speech to store 0,5s:x=1:44100 x=22050 sample to store
    #define RATE 44100      // the sampling rate (input)
    #define FORMAT PA_SAMPLE_S16NE  // sample size: 8 or 16 bits
    #define CHANNELS 2      // 1 = mono 2 = stereo

    struct AVResampleContext* audio_cntx = 0;
    //(LENGTH_MS*RATE*16*CHANNELS)/8000

       void resample(char in_buffer[],int out_rate,int nsamples,char out_buffer[])
       {
           //char out_buffer[ sizeof( in_buffer ) * 4];
           audio_cntx = av_resample_init( out_rate, //out rate
               RATE, //in rate
               16, //filter length
               10, //phase count
               0, //linear FIR filter
               1.0 ); //cutoff frequency
           assert( audio_cntx && "Failed to create resampling context!");
           int samples_consumed;
           //*out_buffer = malloc(sizeof(in_buffer));
           int samples_output = av_resample( audio_cntx, //resample context
               (short*)out_buffer, //buffout
               (short*)in_buffer,  //buffin
               &samples_consumed,  //&consumed
               nsamples,       //nb_samples
               sizeof(out_buffer)/2,//lenout sizeof(out_buffer)/2
               0);//is_last
           assert( samples_output > 0 && "Error calling av_resample()!" );
           av_resample_close( audio_cntx );    
       }

    When I run this code, the application part, the problem is that I hear the sound jerky, why ?
    The size of the array I think is right, I calculated considering that in the second half should be 22050 samples from store.

  • ffmpeg use amix and adelay to play ad over song

    28 juin 2020, par snowkiterdude

    I have two mp3 files, one long and one short(a song and an ad). I need the ad to play over the song starting 15 seconds into the song. I also need the volume of the song to fade out/in slightly before and after the ad. I have tried using amix with adelay but just can't get it right.

    



    here is something close but broken.

    



    ffmpeg -i song.mp3 -i ad.mp3 -filter_complex "amix=inputs=2:duration=first:dropout_transition=2;adelay=0|15000" output.mp3


    



    How can I get the ad to mix with the song properly ?

    


  • Intermittent segfault with docker no-new-privileges

    19 juin 2019, par whadhack

    Anyone experienced intermittent segfault when —security-op=no-new-privileges has been turned on ? Is there a way to prevent that , short of privileged mode ?

    Docker container with "—security-op=no-new-privileges" has been enabled.

    avcodec_send_packet()

    No segfault as in privileged mode is the expected result.