
Recherche avancée
Médias (17)
-
Matmos - Action at a Distance
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
DJ Dolores - Oslodum 2004 (includes (cc) sample of “Oslodum” by Gilberto Gil)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Danger Mouse & Jemini - What U Sittin’ On ? (starring Cee Lo and Tha Alkaholiks)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Cornelius - Wataridori 2
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Rapture - Sister Saviour (Blackstrobe Remix)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Chuck D with Fine Arts Militia - No Meaning No
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (85)
-
Les images
15 mai 2013 -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...) -
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)
Sur d’autres sites (8340)
-
How to merge list of videos with frame specifiec order using ffmpeg ?
9 décembre 2015, par Il'ya ZheninI have a list of files :
even_0.avi
odd_0.avi
even_1.avi
odd_1.avi
...
even_n.avi
odd_n.aviAnd I want to merge them in a single video file in such a way, that zero frame would be taken from
even_0.avi
, first frame fromodd_0.avi
, second - fromeven_0.avi
and so on.And if all frames in
even_0.avi
are taken, then next frame we will take fromeven_1.avi
, next fromodd_0.avi
, next again from even_1.avi. Basically, when one video ends, we just start taking frames from the next video with prefix "even_
" or "odd_
".I just started using ffmpeg, know, how to simply merge videos, change resolution, fps and so on, but this is beyond my power, so, please, help.
-
avformat/matroskadec : use av_fast_realloc to reallocate ebml list arrays
3 septembre 2019, par James Almer -
What ffmpeg command to use to convert a list of unsigned integers into an audio file ?
21 mars 2019, par JohnI have a file that contains a list of about forty thousand integers that are space delimited, with each integer between the value of 0 and 255. It is this file here :
https://github.com/johnlai2004/sound-project/blob/master/integers.txt
If you connect a speaker to an ESP32 breakout board, then run this list of integers through the digital to analog converter at a frequency of 24kHz, you will hear the sentence, "That’s not the post that you missed."
What I want to know is how do you use FFMPEG to convert this list of integers into a sound file that other computer can play to hear the same phrase ? I tried this command :
ffmpeg -f u8 -ac 1 -ar 24000 -i integers.txt -y audio.wav
But my
audio.wav
just sounds like white noise. I tried a few other values for-f
and for-ar
, but all I hear are different frequencies of white noise and maybe some extra buzzing.Is it possible to use ffmpeg to translate my list of integers into an audio file for other computers to play ? If so, what’s the correct ffmpeg command to do this ?
OTHER NOTES
If it helps, this is the sketch file that I upload to an ESP32 if I want to hear the audio :
https://github.com/johnlai2004/sound-project/blob/master/play-audio.ino
In short, the file looks like this :
#define speakerPin 25 //The pins to output audio on. (9,10 on UNO,Nano)
#define bufferTotal 1347
#define buffSize 32
byte buffer[bufferTotal][buffSize];
int buffItemN = 0;
int bufferN = 0;
hw_timer_t * timer = NULL;
portMUX_TYPE timerMux = portMUX_INITIALIZER_UNLOCKED;
void IRAM_ATTR onTimer() {
portENTER_CRITICAL_ISR(&timerMux);
byte v = buffer[bufferN][buffItemN];
dacWrite(speakerPin,v);
buffItemN++;
if(buffItemN >= buffSize){ //If the buffer is empty, do the following
buffItemN = 0; //Reset the sample count
bufferN++;
if(bufferN >= bufferTotal)
bufferN = 0;
}
portEXIT_CRITICAL_ISR(&timerMux);
}
void setup() {
/* buffer records */
buffer[0][0]=88; // I split the long list of integers and load it into a 2D array
buffer[0][1]=88;
buffer[0][2]=86;
buffer[0][3]=85;
//etc....
buffer[1346][28]=94;
buffer[1346][29]=92;
buffer[1346][30]=92;
buffer[1346][31]=95;
/* end buffer records */
timer = timerBegin(0, 80, true);
timerAttachInterrupt(timer, &onTimer, true);
timerAlarmWrite(timer, 41, true);
timerAlarmEnable(timer);
}
void loop() {
}The
buffer...
is the list of integers found in theintegers.txt
file.