
Recherche avancée
Autres articles (31)
-
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 (...) -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
-
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...)
Sur d’autres sites (4074)
-
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 ?

-
What does it mean for avcodec_find_decoder() to return 0 ? [duplicate]
11 février 2019, par Lucas ZanellaThis question already has an answer here :
This part of my code
m_pAVCodec = avcodec_find_decoder(AV_CODEC_ID_H264);
is returning 0, which means it failed to find the codec.
What does it mean for ffmpeg to not find a codec ? Is it something related with my system ? I need somehow to install the h264 codec ?
I’m using Ubuntu
UPDATE :
By doing
avcodec_register_all() ;before, it works. It’s kinda strange because
av_register_all()
was deprecated long ago and won’t even compile.What more needs to be registered ?