
Recherche avancée
Autres articles (18)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
Contribute to documentation
13 avril 2011Documentation is vital to the development of improved technical capabilities.
MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
To contribute, register to the project users’ mailing (...) -
Selection of projects using MediaSPIP
2 mai 2011, parThe examples below are representative elements of MediaSPIP specific uses for specific projects.
MediaSPIP farm @ Infini
The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)
Sur d’autres sites (4085)
-
bytestream : Make get_bytes_left compatible with overread
14 décembre 2019, par Andreas Rheinhardtbytestream : Make get_bytes_left compatible with overread
bytestream2_get_bytes_left returns an unsigned int ; as a result,
it returns big positive numbers if an overread already happened,
making it unsuitable for scenarios where one wants to allow this
in a controlled way (because the buffer is actually padded so that
no segfaults can happen). So change it to return an ordinary int.Also, bytestream2_get_bytes_left_p has been modified in the same way.
Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by : Michael Niedermayer <michael@niedermayer.cc> -
ffmpeg + play video loop
3 septembre 2013, par Javier RamírezDoes anyone know how to make a video using ffmpeg + Opengl play continuously ?. Because this is only played once
tiempo = glfwGetTime();
duracion = 1.0/25.0; // 1 second / 25 fps
while(1){
...
if(glfwGetTime() > tiempo + duracion){
if(av_read_frame(pFormatCtx,&packet) >= 0){
if(packet.stream_index == 0){
avcodec_decode_video2(pCodecCtx,pFrame,&frameFin,&packet);
if(frameFin)sws_scale(img_convert_ctx,pFrame->data,pFrame->linesize,0,pCodecCtx->height,pFrameRGB->data,pFrameRGB->linesize);
}
av_free_packet(&packet);
}
tiempo += duracion;
}
...
}I know av_read_frame function (...) returns 0 if the end of file. But how do I make the function again returns a value other than zero ? o How I can I make the video is constantly repeated ?
-
Why does OpenAI Whisper return "None" ?
29 septembre 2024, par SHDDSFFDSDSAFI'm trying to transcribe an MP3 file using OpenAI’s Whisper model, but the
transcriptions.create()
method consistently returnsNone
. I’ve tried different MP3 files, converted them to WAV, updated the OpenAI library, and added error handling, but I still can’t figure out the issue.

Here’s my code :


from openai import OpenAI

client = OpenAI(
 api_key="MYAPIKEY"
)

audio_file = open("speech.mp3", "rb")
transcript = client.audio.transcriptions.create(
 file=audio_file,
 model="whisper-1",
 response_format="verbose_json",
 timestamp_granularities=["segment"]
)

print(transcript)



I’ve confirmed that :


- 

- The API key is valid.
- I’m using OpenAI Python library version
X.X.X
. - I’ve tested both MP3 and WAV formats.
- The MP3 file is valid (checked using
ffmpeg
).










The response always returns
None
without any exceptions. Any ideas on what could be going wrong ?