Recherche avancée

Médias (0)

Mot : - Tags -/clipboard

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

Autres articles (74)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    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 septembre 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 (...)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

Sur d’autres sites (12498)

  • ffmpeg libx264 AVCodecContext settings

    21 mai 2014, par integra753

    I am using a recent windows (Jan 2011) ffmpeg build and trying to record video in H264. It is recording fine in MPEG4 using the following settings :

    c->codec_id = CODEC_ID_MPEG4;
    c->codec_type = AVMEDIA_TYPE_VIDEO;
    c->width = VIDEO_WIDTH;
    c->height = VIDEO_HEIGHT;
    c->bit_rate = c->width * c->height * 4;
    c->time_base.den = FRAME_RATE;
    c->time_base.num = 1;
    c->gop_size = 12;
    c->pix_fmt = PIX_FMT_YUV420P;

    Simply changing CODEC Id to H264 causes avcodec_open() to fail (-1). I found a list of possible settings Encoding h.264 with libavcodec/x264. I have tried these, without setting pix_fmt, avcodec_open() still fails but if I additionally set c->pix_fmt = PIX_FMT_YUV420P ; then I get a divide by zero exception.

    I then came across a few posts on here that say I should set nothing (with exception of code_id, codec_type, width, height and perhaps bit_rate and pix_fmt) as the library now chooses the best settings itself. I have tried various combinations, still avcode_open() fails.

    Does anyone have some advice on what to do or some settings that are current ?

    Thanks.

    Here are one set of H264 settings which give the issue I describe :

    static AVStream* AddVideoStream(AVFormatContext *pOutputFmtCtx,
    int frameWidth, int frameHeight, int fps)
    {
    AVCodecContext* ctx;
    AVStream* stream;

    stream = av_new_stream(pOutputFmtCtx, 0);
    if (!stream)
    {
       return NULL;
    }

    ctx = stream->codec;

    ctx->codec_id = pOutputFmtCtx->oformat->video_codec; //CODEC_ID_H264
    ctx->codec_type = AVMEDIA_TYPE_VIDEO;
    ctx->width = frameWidth;             //704
    ctx->height = frameHeight;           //576
    ctx->bit_rate = frameWidth * frameHeight * 4;

    ctx->coder_type = 1;  // coder = 1
    ctx->flags|=CODEC_FLAG_LOOP_FILTER;   // flags=+loop
    ctx->me_cmp|= 1;  // cmp=+chroma, where CHROMA = 1
    ctx->partitions|=X264_PART_I8X8+X264_PART_I4X4+X264_PART_P8X8+X264_PART_B8X8; // partitions=+parti8x8+parti4x4+partp8x8+partb8x8
    ctx->me_method=ME_HEX;    // me_method=hex
    ctx->me_subpel_quality = 7;   // subq=7
    ctx->me_range = 16;   // me_range=16
    ctx->gop_size = 250;  // g=250
    ctx->keyint_min = 25; // keyint_min=25
    ctx->scenechange_threshold = 40;  // sc_threshold=40
    ctx->i_quant_factor = 0.71; // i_qfactor=0.71
    ctx->b_frame_strategy = 1;  // b_strategy=1
    ctx->qcompress = 0.6; // qcomp=0.6
    ctx->qmin = 10;   // qmin=10
    ctx->qmax = 51;   // qmax=51
    ctx->max_qdiff = 4;   // qdiff=4
    ctx->max_b_frames = 3;    // bf=3
    ctx->refs = 3;    // refs=3
    ctx->directpred = 1;  // directpred=1
    ctx->trellis = 1; // trellis=1
          ctx->flags2|=CODEC_FLAG2_BPYRAMID+CODEC_FLAG2_MIXED_REFS+CODEC_FLAG2_WPRED+CODEC_FLAG2_8X8DCT+CODEC_FLAG2_FASTPSKIP;  // flags2=+bpyramid+mixed_refs+wpred+dct8x8+fastpskip
    ctx->weighted_p_pred = 2; // wpredp=2
    // libx264-main.ffpreset preset
    ctx->flags2|=CODEC_FLAG2_8X8DCT;
    ctx->flags2^=CODEC_FLAG2_8X8DCT;    // flags2=-dct8x8

    // if set this get divide by 0 error on avcodec_open()
    // if don't set it get -1 error on avcodec_open()
    //ctx->pix_fmt = PIX_FMT_YUV420P;

    return stream;

    }

  • ffmpeg libx264 AVCodecContext settings

    21 mai 2014, par integra753

    I am using a recent windows (Jan 2011) ffmpeg build and trying to record video in H264. It is recording fine in MPEG4 using the following settings :

    c->codec_id = CODEC_ID_MPEG4;
    c->codec_type = AVMEDIA_TYPE_VIDEO;
    c->width = VIDEO_WIDTH;
    c->height = VIDEO_HEIGHT;
    c->bit_rate = c->width * c->height * 4;
    c->time_base.den = FRAME_RATE;
    c->time_base.num = 1;
    c->gop_size = 12;
    c->pix_fmt = PIX_FMT_YUV420P;

    Simply changing CODEC Id to H264 causes avcodec_open() to fail (-1). I found a list of possible settings Encoding h.264 with libavcodec/x264. I have tried these, without setting pix_fmt, avcodec_open() still fails but if I additionally set c->pix_fmt = PIX_FMT_YUV420P ; then I get a divide by zero exception.

    I then came across a few posts on here that say I should set nothing (with exception of code_id, codec_type, width, height and perhaps bit_rate and pix_fmt) as the library now chooses the best settings itself. I have tried various combinations, still avcode_open() fails.

    Does anyone have some advice on what to do or some settings that are current ?

    Thanks.

    Here are one set of H264 settings which give the issue I describe :

    static AVStream* AddVideoStream(AVFormatContext *pOutputFmtCtx,
    int frameWidth, int frameHeight, int fps)
    {
    AVCodecContext* ctx;
    AVStream* stream;

    stream = av_new_stream(pOutputFmtCtx, 0);
    if (!stream)
    {
       return NULL;
    }

    ctx = stream->codec;

    ctx->codec_id = pOutputFmtCtx->oformat->video_codec; //CODEC_ID_H264
    ctx->codec_type = AVMEDIA_TYPE_VIDEO;
    ctx->width = frameWidth;             //704
    ctx->height = frameHeight;           //576
    ctx->bit_rate = frameWidth * frameHeight * 4;

    ctx->coder_type = 1;  // coder = 1
    ctx->flags|=CODEC_FLAG_LOOP_FILTER;   // flags=+loop
    ctx->me_cmp|= 1;  // cmp=+chroma, where CHROMA = 1
    ctx->partitions|=X264_PART_I8X8+X264_PART_I4X4+X264_PART_P8X8+X264_PART_B8X8; // partitions=+parti8x8+parti4x4+partp8x8+partb8x8
    ctx->me_method=ME_HEX;    // me_method=hex
    ctx->me_subpel_quality = 7;   // subq=7
    ctx->me_range = 16;   // me_range=16
    ctx->gop_size = 250;  // g=250
    ctx->keyint_min = 25; // keyint_min=25
    ctx->scenechange_threshold = 40;  // sc_threshold=40
    ctx->i_quant_factor = 0.71; // i_qfactor=0.71
    ctx->b_frame_strategy = 1;  // b_strategy=1
    ctx->qcompress = 0.6; // qcomp=0.6
    ctx->qmin = 10;   // qmin=10
    ctx->qmax = 51;   // qmax=51
    ctx->max_qdiff = 4;   // qdiff=4
    ctx->max_b_frames = 3;    // bf=3
    ctx->refs = 3;    // refs=3
    ctx->directpred = 1;  // directpred=1
    ctx->trellis = 1; // trellis=1
          ctx->flags2|=CODEC_FLAG2_BPYRAMID+CODEC_FLAG2_MIXED_REFS+CODEC_FLAG2_WPRED+CODEC_FLAG2_8X8DCT+CODEC_FLAG2_FASTPSKIP;  // flags2=+bpyramid+mixed_refs+wpred+dct8x8+fastpskip
    ctx->weighted_p_pred = 2; // wpredp=2
    // libx264-main.ffpreset preset
    ctx->flags2|=CODEC_FLAG2_8X8DCT;
    ctx->flags2^=CODEC_FLAG2_8X8DCT;    // flags2=-dct8x8

    // if set this get divide by 0 error on avcodec_open()
    // if don't set it get -1 error on avcodec_open()
    //ctx->pix_fmt = PIX_FMT_YUV420P;

    return stream;

    }

  • How to link Eclipse Indigo in Ubuntu 11 to FFMPEG 8 for C++

    16 octobre 2013, par AMB0027

    I have tried everything in the book and EVERYTHING I could find on how to do this and reinstalled and reconfigured and rebuilt several times to no avail. This is what I have. I've made FFMPEG on my Ubuntu VM and have the following code written :

    #include "libavcodec/avcodec.h"
    #include "libavformat/avformat.h"

    #include
    #include <iostream>

    using namespace std;

    int main( int argc, char* argv[] ) {

       avcodec_register_all();

       return 0;
    }
    </iostream>

    This errors and says :

    /home/adam/workspace/MP4 Tools/Debug/../testDriver.cpp:19: undefined reference to     `avcodec_register_all()&#39;
    collect2: ld returned 1 exit status

    I have included the libavcodec.a file. Project->Properties->GCC C++ Linker->Libraries->add "avcodec"

    Can anyone think of something I'm not doing or overlooking ? Thanks so much.