Advanced search

Medias (1)

Tag: - Tags -/publicité

Other articles (59)

  • MediaSPIP 0.1 Beta version

    25 April 2011, by

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • MediaSPIP version 0.1 Beta

    16 April 2011, by

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Amélioration de la version de base

    13 September 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

On other websites (7432)

  • Evolution #2923 (Fermé): Remplacement d’un document et date du document

    12 May 2013, by cedric -

    si c’est la date du document que tu veux afficher (et pas sa date de publication) il faut simplement afficher
    [(#VAL{Y-m-d H:i:s}|date{#FICHIER|filemtime}|affdate)]
    Ça n’a pas vraiment de sens de stocker en base une date identique à celle du fichier sur le disque.

    Alternativement, la solution par plugin me semble le mieux, car cela correspond ici à un usage non générique de la date.

  • Convert video with FFMPEG Library in android

    27 September 2012, by Sanat Pandey

    I have a problem that I received a video foile from the server which can not be played throgh video view from the app I am making. I don't know what the actaul problem is because all videos are played through same video view but the video received from the server side is not played. So, I think that I have to integrate FFMPEG in our android app, so I can play every video at a runtime conversion. For this I have read much more about FFMPEG Library integration with android through many sites as:

    http://www.roman10.net/how-to-build-android-applications-based-on-ffmpeg-by-an-example/

    Downloaded some projects from GitHUb (https://github.com/appunite/AndroidFFmpeg) but unable to succeed for building the Library through NDK. Some thing I missed and I am working on Windows machine, probably this might be a problem. I want the exact solution regarding this, means step by step solution for building the android project with FFMPEG Library. If you have some useful suggestion then please share with me.

    Thanks in advance.

  • How to reconnect using avformat_open_input without having to alloc the decoder again?

    26 September 2012, by Jona

    Currently, I have a code based on ffplay to stream live content.

    One thing I'm looking to do is be able to reconnect upon loosing a connection without having to shutdown the whole decoding process.

    To me the solution is alloc the decoder myself once and keep using it across reconnections. I can't seem to figure out how to setup a decoder without having to depend on the AVFormatContext. Right now my code is failing when trying to use my own allocated AVCodecContext to decode. But it doesn't fail if I use the AVCodecContext given by AVFormatContext.

    This is part of my initial code:

    // attempt to find more information about the codec
    // also it will open the codecs needed.
    fferror = avformat_find_stream_info(ic, NULL);
    if (0 > fferror)
    {
       // TODO verify type of error to better map it to our errors
       error = ERROR_FAIL_TO_CONNECT;
       LOGE("download() -> avformat_find_stream_info failed! fferror:%d, error:%d", fferror, error);
       goto fail;
    }

    AVCodec *dec;
    // select the audio stream
    int ret = av_find_best_stream(ic, AVMEDIA_TYPE_AUDIO, -1, -1, &dec, 0);
    if (0 > ret) {
       error = ERROR_UNEXPECTED_ERROR;
       LOGE("download() -> av_find_best_stream failed! ret:%d, error:%d", ret, error);
       goto fail;
    }

    LOGI("download() -> STREAM: nb_streams:%d", ic->nb_streams);
    LOGI("download() -> STREAM: audio format:%s", ic->iformat->name);
    LOGI("download() -> STREAM: audio bitrate:%d", ic->bit_rate);


    // save the audio stream index and source
    is->audio_stream_index = ret;
    is->audio_st = ic->streams[is->audio_stream_index];
    is->audio_buf_size = 0;
    is->audio_buf_index = 0;

    is->audio_st->discard = AVDISCARD_DEFAULT;

    if(ic->pb) {
       ic->pb->eof_reached= 0; //FIXME hack, ffplay maybe should not use url_feof() to test for the end
    }

    if (show_status) {
           av_dump_format(ic, 0, is->filename, 0);
       }

    // open codec
       error = open_decoder(is->audio_st->codec, dec);
       if (ERROR_NO_ERROR != error) {
           LOGE("receive_thread() -> open_decoder failed! error:%d", error);
           goto fail;
       }

    And this is the funtion that initializes the decoder.

    static int open_decoder (AVCodecContext *avctx, AVCodec *codec)
    {
       int fferror         = 0;
       AVCodecContext *c   = NULL;

       if (smDecoder.open) {
           LOGW("open_decoder() -> decoder is already open!");
           return ERROR_NO_ERROR;
       }

       // find the decoder
       if (!codec)
       {
           codec = avcodec_find_decoder(avctx->codec_id);
           if (!codec)
           {
               LOGE("open_decoder() -> avcodec_find_decoder failed!");
               return ERROR_UNEXPECTED_ERROR;
           }
       }

       // allocate the decoder av context
       c = avcodec_alloc_context3(codec);
       if (NULL == c) {
           LOGE("open_decoder() -> avcodec_alloc_context3 failed! Out of memory?");
           return ERROR_UNEXPECTED_ERROR;
       }

       // check if the type of codec we support
       if (AVMEDIA_TYPE_AUDIO != c->codec_type)
       {
           LOGE("open_decoder() -> codec_type not supported! codec_type:%d",c->codec_type);
           return ERROR_UNEXPECTED_ERROR;
       }

       // set the proper channels if not properly set
       if (c->channels > 0) {
           c->request_channels = FFMIN(2, c->channels);
       } else {
           c->request_channels = 2;
       }

       c->debug_mv = 0;
       c->debug = 0;
       c->workaround_bugs = workaround_bugs;
       c->idct_algo= idct;
       if(fast) c->flags2 |= CODEC_FLAG2_FAST;
       c->error_concealment= error_concealment;
       c->thread_count = thread_count;

       // open the decoder
       fferror = avcodec_open2(avctx, codec, NULL);
       if (fferror < 0)
       {
           LOGE("open_decoder() -> avcodec_open2 failed! fferror:%d", fferror);
           return ERROR_UNEXPECTED_ERROR;
       }

       // clean up our reusable packet
       memset(&smDecoder.audio_pkt, 0, sizeof(smDecoder.audio_pkt));

       smDecoder.open = 1;
       smDecoder.codec = codec;
       smDecoder.avctx = c;

       return ERROR_NO_ERROR;
    }