Recherche avancée

Médias (0)

Mot : - Tags -/page unique

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (18)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une 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 2011

    Documentation 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, par

    The 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 Rheinhardt
    bytestream : 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>

    • [DH] libavcodec/bytestream.h
  • ffmpeg + play video loop

    3 septembre 2013, par Javier Ramírez

    Does 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,&amp;packet) >= 0){
         if(packet.stream_index == 0){
           avcodec_decode_video2(pCodecCtx,pFrame,&amp;frameFin,&amp;packet);
           if(frameFin)sws_scale(img_convert_ctx,pFrame->data,pFrame->linesize,0,pCodecCtx->height,pFrameRGB->data,pFrameRGB->linesize);
         }
         av_free_packet(&amp;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 SHDDSFFDSDSAF

    I'm trying to transcribe an MP3 file using OpenAI’s Whisper model, but the transcriptions.create() method consistently returns None. 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.

    &#xA;

    Here’s my code :

    &#xA;

    from openai import OpenAI&#xA;&#xA;client = OpenAI(&#xA;    api_key="MYAPIKEY"&#xA;)&#xA;&#xA;audio_file = open("speech.mp3", "rb")&#xA;transcript = client.audio.transcriptions.create(&#xA;    file=audio_file,&#xA;    model="whisper-1",&#xA;    response_format="verbose_json",&#xA;    timestamp_granularities=["segment"]&#xA;)&#xA;&#xA;print(transcript)&#xA;

    &#xA;

    I’ve confirmed that :

    &#xA;

      &#xA;
    • The API key is valid.
    • &#xA;

    • I’m using OpenAI Python library version X.X.X.
    • &#xA;

    • I’ve tested both MP3 and WAV formats.
    • &#xA;

    • The MP3 file is valid (checked using ffmpeg).
    • &#xA;

    &#xA;

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

    &#xA;