
Recherche avancée
Médias (1)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (102)
-
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)
Sur d’autres sites (11099)
-
How to convert char buffer (with pcm audio data) to short buffer
18 décembre 2012, par testCoderI have char
pAudioBuffer
buffer which i got from function ffmpeg :int len = avcodec_decode_audio3(av_codec_context,
(int16_t *) pAudioBuffer, &out_size, &packet);I know that audio format is two bytes per sample, i need to convert every two bytes to short value, i have tried to use code snippet below, but i often got zero instead of short value :
int shortBufIndex = 0;
for (int i = 0; i < (out_size); i += 2) {
char b1 = pAudioBuffer[i];
char b2 = pAudioBuffer[i + 1];
short sample = atoi(&b1) + atoi(&b2);
shortBuffer[shortBufIndex] = sample;
shortBufIndex++;
LOGI("BUFFER_ITEM='%d'", sample);
}What i'm doing wrong, how to convert every two bytes in char buffer to short and and back.
UPDATE :
system's byte order is LITTLE_ENDIAN i have test it like this : Endianness of Android NDK
How can i convert every two bytes in buffer to sample of short type and back. Please can you provide any code sample.
UPDATE
I have tried to access to short as pairs, here is my fixed code, but it not work, i don't hear any sound :
int shortBufIndex = 0;
for (int i = 0; i < (out_size); i += 2) {
char * byte = (char *) pAudioBuffer[i];
short * sample = byte;
shortBuffer[shortBufIndex] = sample;
}What i'm doing wrong ?
I need conversion like this : byte array to short array and back again in java but in c. -
Add frame to video in specified position
28 septembre 2015, par QUANGPHAT ĐINHI’m using Aforge libs to read and write video files (the libs is here : http://www.aforgenet.com/framework/features/ffmpeg.html).
Now I want to export a specific frame to edit, then import it back to the video.
I could export frame by frame but I don’t know how to add it back to the video in specific frame. what should i do now ?
-
Is there a Heroku-supported method for getting the length of an audio file in seconds ?
12 juillet 2013, par Ben WestI'm trying to implement
http://blog.firmhouse.com/validate-length-of-an-audio-file-when-using-paperclip-and-s3
But I'm unsure what gem provided FFMpegWrapper, and I'd like to use Heroku to deploy my app for testing. Does heroku support something that will work for this ?
full Rails Application source :
https://github.com/mrgenixus/sound-byte
Relevant Model :
https://github.com/mrgenixus/sound-byte/blob/master/app/models/episode.rb