Recherche avancée

Médias (17)

Mot : - Tags -/wired

Autres articles (112)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (11061)

  • Difficulty getting the expected output for .avi conversions to .mp4 using FFMPEG [closed]

    25 avril 2024, par Ericel

    I am trying to write a video converting script that converts an input video file to .mp4 output. I am using ffmpeg libx264 encoder. Unfortunately, when I convert from .avi to .mp4, the output video is not smooth, a little skippy. Here is how I set up the encoder code :

    


    AVCodecContext *Video::setupVideoEncoder(const AVCodec *encoder, AVStream *inVideoStream, AVFormatContext *outFormatCtx)&#xA;{&#xA;    AVCodecContext *codecCtx = avcodec_alloc_context3(encoder);&#xA;    if (!codecCtx)&#xA;    {&#xA;        std::cerr &lt;&lt; "Failed to allocate the video codec context." &lt;&lt; std::endl;&#xA;        return nullptr;&#xA;    }&#xA;&#xA;    if (avcodec_parameters_to_context(codecCtx, inVideoStream->codecpar) &lt; 0)&#xA;    {&#xA;        std::cerr &lt;&lt; "Failed to copy codec parameters to encoder context." &lt;&lt; std::endl;&#xA;        avcodec_free_context(&amp;codecCtx);&#xA;        return nullptr;&#xA;    }&#xA;&#xA;    // Correctly assign pixel format based on encoder support&#xA;    if (!check_pix_fmt(encoder, inVideoStream->codecpar->format))&#xA;    {&#xA;        codecCtx->pix_fmt = encoder->pix_fmts[0];&#xA;    }&#xA;    else&#xA;    {&#xA;        codecCtx->pix_fmt = static_cast<avpixelformat>(inVideoStream->codecpar->format);&#xA;    }&#xA;    codecCtx->width = inVideoStream->codecpar->width;&#xA;    codecCtx->height = inVideoStream->codecpar->height;&#xA;    codecCtx->bit_rate = 2000000; // 2 Mbps&#xA;    codecCtx->gop_size = 12;&#xA;    codecCtx->max_b_frames = 3;&#xA;&#xA;    // Setting frame rate and time base using guessed values&#xA;    AVRational framerate = av_guess_frame_rate(outFormatCtx, inVideoStream, nullptr);&#xA;    codecCtx->framerate = framerate;&#xA;    codecCtx->time_base = av_inv_q(framerate);&#xA;&#xA;    AVDictionary *opts = nullptr;&#xA;    av_dict_set(&amp;opts, "x264-params", "keyint=25:min-keyint=25:no-scenecut=1", 0);&#xA;&#xA;    if (outFormatCtx->oformat->flags &amp; AVFMT_GLOBALHEADER)&#xA;    {&#xA;        codecCtx->flags |= AV_CODEC_FLAG_GLOBAL_HEADER;&#xA;    }&#xA;&#xA;    if (avcodec_open2(codecCtx, encoder, &amp;opts) &lt; 0)&#xA;    {&#xA;        std::cerr &lt;&lt; "Failed to open the video encoder." &lt;&lt; std::endl;&#xA;        avcodec_free_context(&amp;codecCtx);&#xA;        av_dict_free(&amp;opts);&#xA;        return nullptr;&#xA;    }&#xA;&#xA;    av_dict_free(&amp;opts);&#xA;    return codecCtx;&#xA;} &#xA;</avpixelformat>

    &#xA;

    I can only thing the configurations here are the problem, because if I converted a .mov to .mp4, I get the expected output.

    &#xA;

  • postproc : add basic deblock filter visualization support

    19 septembre 2014, par Michael Niedermayer
    postproc : add basic deblock filter visualization support
    

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

    • [DH] doc/APIchanges
    • [DH] libpostproc/postprocess.c
    • [DH] libpostproc/postprocess_internal.h
    • [DH] libpostproc/postprocess_template.c
    • [DH] libpostproc/version.h
  • avcodec/mpeg12enc : Basic support for encoding non even QPs for -non_linear_quant 1

    18 septembre 2015, par Michael Niedermayer
    avcodec/mpeg12enc : Basic support for encoding non even QPs for -non_linear_quant 1
    

    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavcodec/mpeg12enc.c
    • [DH] libavcodec/mpegvideo.c
    • [DH] libavcodec/mpegvideo_enc.c
    • [DH] libavcodec/x86/mpegvideo.c