Recherche avancée

Médias (1)

Mot : - Tags -/illustrator

Autres articles (102)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (11411)

  • how play ogg/ape/wv/wma using ffmpeg

    25 novembre 2013, par user2361120

    I'm trying decode ogg,ape,wma,wv file formats
    I have posted the code below, but I'm having too much noise at the output

    av_init_packet(&packet);
           fmt_ctx = avformat_alloc_context();

           if ((ret = avformat_open_input(&fmt_ctx, szfile, NULL, NULL)) < 0)
           {
               LOGE("Cannot open input file\n");
           }
           if ((ret = avformat_find_stream_info(fmt_ctx, NULL)) < 0)
           {
               LOGE("Cannot find stream information\n");
           }

           /* select the audio stream */
           ret = av_find_best_stream(fmt_ctx, AVMEDIA_TYPE_AUDIO, -1, -1, &dec, 0);
           if (ret < 0)
           {
               LOGE("Cannot find a audio stream in the input file\n");
           }

           audio_stream_index = ret;
           dec_ctx = fmt_ctx->streams[audio_stream_index]->codec;

           LOGE(" ogg code %d codec id%d\n",AV_CODEC_ID_VORBIS,dec_ctx->codec_id);

           LOGE("avcodec_find_decoder\n");


           dec = avcodec_find_decoder(dec_ctx->codec_id);
                           if (!dec) {

                 __android_log_print(ANDROID_LOG_INFO, "BroovPlayer", "avcodec_find_decoder failed %d Name:%s\n", dec_ctx->codec_id, dec_ctx->codec_name);


                           }


           if ((ret = avcodec_open2(dec_ctx, dec, NULL)) < 0)
           {
               LOGE("Cannot open audio decoder\n");
           }




           //dec_ctx->sample_fmt = AV_SAMPLE_FMT_S16P;
           LOGS("Stage 5 sample fmt %d",dec_ctx->sample_fmt);
           LOGE("Stage 5");
           LOGD("........%d", packet.size);
           while (1)
           {

                  if ((ret = av_read_frame(fmt_ctx, &packet)) < 0)
                  {
                      //LOGE("Stage........... %d",ret);
                      break;
                  }
                  if (packet.stream_index == audio_stream_index)
                  {
                          avcodec_get_frame_defaults(frame);
                          got_frame = 0;
                         // LOGE("file size=%d packet_index=%d",packet.size,packet.dts);


                          ret = avcodec_decode_audio4(dec_ctx, frame, &got_frame, &packet);
                        //  LOGE("len=%d",ret);
                          if (ret < 0)
                          {
                              LOGE("Error decoding audio\n");
                              continue;
                          }

                          if (!got_frame) {
                                       /* stop sending empty packets if the decoder is finished */
                                       if (!packet.data && dec->capabilities & CODEC_CAP_DELAY)
                                           //flush_complete = 1;
                                       continue;
                                   }

                          if (got_frame)
                          {
                              // LOGE("begin frame decode\n");
                               int data_size = av_samples_get_buffer_size(NULL, dec_ctx->channels,frame->nb_samples,dec_ctx->sample_fmt, 1);
                              // LOGE("after frame decode\n");

                               jbyte *bytes = (*env)->GetByteArrayElements(env, array, NULL);
                               memcpy(bytes, frame->data[0], data_size); //
                               (*env)->ReleaseByteArrayElements(env, array, bytes, 0);
                               (*env)->CallVoidMethod(env, obj,play, array, data_size);

                          }
                          packet.size -= ret;
                          packet.data += ret;
                          packet.pts = AV_NOPTS_VALUE;


                    }
             }

                  av_free_packet(&packet);



               when ,i am playing ogg/ape/wv audio file format .



             please help me to minimize the noise, as less as possible

    or if any other approach is there to decode these file formats then please let me know

    thanks

  • How to effectively kill a frozen subprocess in Python ?

    2 janvier 2014, par Konos5

    I am dealing with a rather odd issue.

    I've written a Python wrapper (in Python 2.6.6) for a year old version of ffmpeg. The problem is that given a very particular video, ffmpeg stops working normally (clunky output, full cpu usage, no end stage etc) and takes the python interpreter down with it.

    Now, if I run ffmpeg with my encoding options directly from a terminal and the problematic video as input, ffmpeg won't immediately respond to Ctrl-c. I'll have to wait for a hefty of 10 seconds or more before it exits and gives me back the prompt. However if I use a 'healthy' video instead, it will simply print Received signal 2: terminating. and gracefully exit.

    In the python wrapper I use p.kill() to no effect. The behavior is exactly the same a.k.a I have to wait 10 sec before the program exits. How can I immediately stop ffmpeg when it freezes with some problematic video ?

    Note that if I do a double Ctrl-c I get the prompt back immediately no matter what.

  • Revision fe776ce61f : add range_check for fdct in vp10 Unify the style of fdct4() fdct8() fdct16() Ad

    29 août 2015, par Angie Chiang

    Changed Paths :
     Modify /test/test.mk


     Add /test/vp10_dct_test.cc


     Modify /vp10/encoder/dct.c



    add range_check for fdct in vp10

    Unify the style of fdct4() fdct8() fdct16()
    Add fdct32()
    Add range_check() at each stage
    Add unit test at ../../test/vp10_dct_test.cc

    Change-Id : I13f76d9046c3ea473c82024b09a5bc8662e2c28e