
Recherche avancée
Autres articles (29)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains 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, parPré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 2013Puis-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 MusaI 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
asconst8
andchannels
, andsamples
.data
field is always in 4 bytes format.I copy the data to a vector of type
int16_t
then I loopuninterleave samples
which I think I am doing wrong. my question is how can I make sure the data is formatted correctly forogg
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 && is_audio_header_written_)
{
memcpy(samples_.data(), data,
sample_count_ * channel_count_ * sizeof(int16_t));
float **buffer=vorbis_analysis_buffer(&vd,samples);
/* uninterleave samples */
for(i=0;i4;i++)
{
buffer[0][i]=((samples_.at(i*4+1)<<8)|
(0x00ff&(int16_t)samples_.at(i*4)))/32768.f;
buffer[1][i]=((samples_.at(i*4+3)<<8)|
(0x00ff&(int16_t)samples_.at(i*4+2)))/32768.f;
}
vorbis_analysis_wrote(&vd,i);
while(vorbis_analysis_blockout(&vd,&vb)==1){
/* analysis, assume we want to use bitrate management */
vorbis_analysis(&vb,NULL);
vorbis_bitrate_addblock(&vb);
while(vorbis_bitrate_flushpacket(&vd,&op)){
/* weld the packet into the bitstream */
ogg_stream_packetin(&os,&op);
/* write out pages (if any) */
while(!eos){
int result=ogg_stream_pageout(&os,&og);
if(result==0)break;
glb_app_thread.message_loop().PostWork(callback_factory_.NewCallback(&EncoderInstance::writeAudioHeader));
if(ogg_page_eos(&og))eos=1;
}
}
}
}
audio_track_.RecycleBuffer(buffer);
audio_track_.GetBuffer(callback_factory_.NewCallbackWithOutput(
&EncoderInstance::OnGetBuffer));
}
</const> -
Compling ffmpeg with libwebp error(s)
30 avril 2018, par MadaoSo 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 ReleasesPiwik 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 !