Recherche avancée

Médias (0)

Mot : - Tags -/xml-rpc

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

Autres articles (57)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Création définitive du canal

    12 mars 2010, par

    Lorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
    A la validation, vous recevez un email vous invitant donc à créer votre canal.
    Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
    A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP 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 (10024)

  • how to play mp3 using ffmpeg

    5 novembre 2013, par Ari

    I'm trying to play audio mp3 file using ffmpeg in android
    but I'm facing a problem in the below mentioned code

    how to play mp3 using ffmpeg

    void JNICALL  Java_com_music_MainActivity_loadFile(JNIEnv* env, jobject obj,jstring file,jbyteArray array)
    {
       jboolean            isfilenameCopy;
       const char *        filename = (*env)->GetStringUTFChars(env, file, &isfilenameCopy);
       AVCodec *codec;
       AVCodecContext *c= NULL;
       int out_size, len;
       FILE *f, *outfile;
       uint8_t *outbuf;
       uint8_t inbuf[AUDIO_INBUF_SIZE + FF_INPUT_BUFFER_PADDING_SIZE];
       AVPacket avpkt;
       jclass              cls = (*env)->GetObjectClass(env, obj);
       jmethodID           play = (*env)->GetMethodID(env, cls, "playSound", "([BI)V");//At the begining of your main function

       av_init_packet(&avpkt);

       printf("Audio decoding\n");


       __android_log_print(ANDROID_LOG_INFO, DEBUG_TAG, "inside load file");
       /* find the mpeg audio decoder */
       codec = avcodec_find_decoder(CODEC_ID_MP3);
       if (!codec) {
           fprintf(stderr, "codec not found\n");
           exit(1);
       }

       c= avcodec_alloc_context();

       /* open it */
       if (avcodec_open(c, codec) < 0) {
           fprintf(stderr, "could not open codec\n");
           exit(1);
       }

       __android_log_print(ANDROID_LOG_INFO, DEBUG_TAG, "open avcode");
       outbuf = malloc(AVCODEC_MAX_AUDIO_FRAME_SIZE);
      __android_log_print(ANDROID_LOG_INFO, DEBUG_TAG, "open %s",outbuf);

       f = fopen(filename, "rb");
       if (!f) {
           fprintf(stderr, "could not open %s\n", filename);
           exit(1);
       }

       /* decode until eof */
       avpkt.data = inbuf;
       avpkt.size = fread(inbuf, 1, AUDIO_INBUF_SIZE, f);
       __android_log_print(ANDROID_LOG_INFO, DEBUG_TAG, "data =%s and size %d",avpkt.data,avpkt.size);
       while (avpkt.size > 0) {
           out_size = AVCODEC_MAX_AUDIO_FRAME_SIZE;
           len = avcodec_decode_audio3(c, (short *)outbuf, &out_size, &avpkt);
           __android_log_print(ANDROID_LOG_INFO, DEBUG_TAG, "length =%d",len);
           if (len < 0) {
               fprintf(stderr, "Error while decoding\n");
               __android_log_print(ANDROID_LOG_INFO, DEBUG_TAG, " failed length =%d",errno);

               exit(1);
           }
           if (out_size > 0) {
               /* if a frame has been decoded, output it */
               jbyte *bytes = (*env)->GetByteArrayElements(env, array, NULL);
               memcpy(bytes, outbuf, out_size); //
               (*env)->ReleaseByteArrayElements(env, array, bytes, 0);
               (*env)->CallVoidMethod(env, obj, play, array, out_size);

           }
           avpkt.size -= len;
           avpkt.data += len;
           if (avpkt.size < AUDIO_REFILL_THRESH) {
               /* Refill the input buffer, to avoid trying to decode
                * incomplete frames. Instead of this, one could also use
                * a parser, or use a proper container format through
                * libavformat. */
               memmove(inbuf, avpkt.data, avpkt.size);
               avpkt.data = inbuf;
               len = fread(avpkt.data + avpkt.size, 1,
                           AUDIO_INBUF_SIZE - avpkt.size, f);
               if (len > 0)
                   avpkt.size += len;
           }
       }

       fclose(f);
       free(outbuf);

       avcodec_close(c);
       av_free(c);
    }

    i am getting the len = - 1 in

    len = avcodec_decode_audio3(c, (short *)outbuf, &out_size, &avpkt);

    what am i doing wrong ??

    please help

  • AAC encoder : fix assertion error re SF differences

    12 octobre 2015, par Claudio Freire
    AAC encoder : fix assertion error re SF differences
    

    Intermediate results can indeed violate SF delta. Instead of asserting
    there, just make the code safe, and assert on the final result.

    Also re-clamp SFs more often in short windows (which tend to violate
    the restriction when encoding the switch from one window to the other)

    • [DH] libavcodec/aaccoder_twoloop.h
  • Merge commit ’0c082565965258dca143767cc6cb25e38b6e9ea3’

    12 février 2014, par Michael Niedermayer
    Merge commit ’0c082565965258dca143767cc6cb25e38b6e9ea3’
    

    * commit ’0c082565965258dca143767cc6cb25e38b6e9ea3’ :
    asfdec : short-circuit seeking to the start of stream

    Conflicts :
    libavformat/asfdec.c

    Merged-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavformat/asfdec.c