Recherche avancée

Médias (0)

Mot : - Tags -/albums

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

Autres articles (29)

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

  • Wave bytes to buffer

    24 août 2016, par Mohammad Abu Musa

    I am encoding wav input from microphone which comes in four bytes format to ogg format. I think I have a problem shifting the bytes to the correct format here is the code I am using

    To explain more I get the audio frames from Google Chrome where I get data as const8 and channels, and samples. data field is always in 4 bytes format.

    I copy the data to a vector of type int16_t then I loop uninterleave samples which I think I am doing wrong. my question is how can I make sure the data is formatted correctly for ogg encoder to handle them correctly ?

    void EncoderInstance::OnGetBuffer(int32_t result, pp::AudioBuffer buffer) {
       if (result != PP_OK)
         return;

       assert(buffer.GetSampleSize() == PP_AUDIOBUFFER_SAMPLESIZE_16_BITS);
       const char* data = static_cast<const>(buffer.GetDataBuffer());
       uint32_t channels = buffer.GetNumberOfChannels();
       uint32_t samples = buffer.GetNumberOfSamples() / channels;

       if (channel_count_ != channels || sample_count_ != samples) {
         channel_count_ = channels;
         sample_count_ = samples;

         samples_.resize(sample_count_ * channel_count_);
         // Try (+ 5) to ensure that we pick up a new set of samples between each
         // timer-generated repaint.
         timer_interval_ = (sample_count_ * 1000) / buffer.GetSampleRate() + 5;
         // Start the timer for the first buffer.
         if (first_buffer_) {
           first_buffer_ = false;
           ScheduleNextTimer();
         }
       }

       if(is_audio_recording &amp;&amp; is_audio_header_written_)
       {
           memcpy(samples_.data(), data,
               sample_count_ * channel_count_ * sizeof(int16_t));

           float **buffer=vorbis_analysis_buffer(&amp;vd,samples);

           /* uninterleave samples */
           for(i=0;i4;i++)
           {
               buffer[0][i]=((samples_.at(i*4+1)&lt;&lt;8)|
                         (0x00ff&amp;(int16_t)samples_.at(i*4)))/32768.f;
               buffer[1][i]=((samples_.at(i*4+3)&lt;&lt;8)|
                         (0x00ff&amp;(int16_t)samples_.at(i*4+2)))/32768.f;
           }

           vorbis_analysis_wrote(&amp;vd,i);

           while(vorbis_analysis_blockout(&amp;vd,&amp;vb)==1){

             /* analysis, assume we want to use bitrate management */
             vorbis_analysis(&amp;vb,NULL);
             vorbis_bitrate_addblock(&amp;vb);

             while(vorbis_bitrate_flushpacket(&amp;vd,&amp;op)){

               /* weld the packet into the bitstream */
               ogg_stream_packetin(&amp;os,&amp;op);

               /* write out pages (if any) */
               while(!eos){
                 int result=ogg_stream_pageout(&amp;os,&amp;og);
                 if(result==0)break;
                 glb_app_thread.message_loop().PostWork(callback_factory_.NewCallback(&amp;EncoderInstance::writeAudioHeader));
                 if(ogg_page_eos(&amp;og))eos=1;
               }
             }
           }


       }




       audio_track_.RecycleBuffer(buffer);
       audio_track_.GetBuffer(callback_factory_.NewCallbackWithOutput(
           &amp;EncoderInstance::OnGetBuffer));

    }
    </const>
  • Compling ffmpeg with libwebp error(s)

    30 avril 2018, par Madao

    So I’m trying to compile ffmpeg with —enable-libwebp. But I am getting the following errors :

    In file included from libavcodec/libwebpenc_animencoder.c:30:0:
    /usr/include/webp/mux.h:101:13: error: expected identifier or ‘(’ before ‘int’
    WEBP_EXTERN(int) WebPGetMuxVersion(void);
                ^~~
    /usr/include/webp/mux.h:107:13: error: expected identifier or ‘(’ before ‘WebPMux’
    WEBP_EXTERN(WebPMux*) WebPNewInternal(int);
                ^~~~~~~
    /usr/include/webp/mux.h:120:13: error: expected identifier or ‘(’ before ‘void’
    WEBP_EXTERN(void) WebPMuxDelete(WebPMux* mux);
                ^~~~
    /usr/include/webp/mux.h:126:13: error: expected identifier or ‘(’ before ‘WebPMux’
    WEBP_EXTERN(WebPMux*) WebPMuxCreateInternal(const WebPData*, int, int);
                ^~~~~~~
    /usr/include/webp/mux.h:163:13: error: expected identifier or ‘(’ before ‘WebPMuxError’
    WEBP_EXTERN(WebPMuxError) WebPMuxSetChunk(
                ^~~~~~~~~~~~
    /usr/include/webp/mux.h:179:13: error: expected identifier or ‘(’ before ‘WebPMuxError’
    WEBP_EXTERN(WebPMuxError) WebPMuxGetChunk(
                ^~~~~~~~~~~~
    /usr/include/webp/mux.h:192:13: error: expected identifier or ‘(’ before ‘WebPMuxError’
    WEBP_EXTERN(WebPMuxError) WebPMuxDeleteChunk(
                ^~~~~~~~~~~~
    /usr/include/webp/mux.h:225:13: error: expected identifier or ‘(’ before ‘WebPMuxError’
    WEBP_EXTERN(WebPMuxError) WebPMuxSetImage(
                ^~~~~~~~~~~~
    /usr/include/webp/mux.h:245:13: error: expected identifier or ‘(’ before ‘WebPMuxError’
    WEBP_EXTERN(WebPMuxError) WebPMuxPushFrame(
                ^~~~~~~~~~~~
    /usr/include/webp/mux.h:263:13: error: expected identifier or ‘(’ before ‘WebPMuxError’
    WEBP_EXTERN(WebPMuxError) WebPMuxGetFrame(
                ^~~~~~~~~~~~
    ...

    Is there a certain version of libwebp I need to be using ? Any help would be greatly appreciated.

  • Piwik Mobile 2.1.1 with full support for iOS 8 and iPhone 6 Plus

    2 octobre 2014, par Thomas Steur — Piwik Mobile Releases

    Piwik Mobile 2.1.1 is now available and comes with full support for iOS 8 and iPhone 6 Plus.

    Please email us if you still experience any issues with this release.

    Thank you !