Recherche avancée

Médias (91)

Autres articles (98)

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

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

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

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

Sur d’autres sites (7724)

  • 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;

  • A basic query about video editing libraries and algorithms

    8 janvier 2021, par Education 4Fun

    I'm working with FFmpeg for a project so as per our college guidelines we need to write one research paper so I was confused about what to write&#xA;so I thought of writing a comparison of different video editing libraries as per my knowledge I just found FFmpeg if u know any other libraries/algorithms&#xA;or any suggestions for writing a research paper on ffmpeg&#xA;please let me know&#xA;sorry for asking here&#xA;Thank you

    &#xA;

  • Set up basic Batch or Node.JS prompts for FFMPEG ?

    18 août 2016, par ErraticFox

    I have some game clips from Nvidia shadow play that I like to casually shorten and / or turn them into webms or keep them as mp4s. I use the same ffmpeg line for them. I do slightly change the line because of the input file, start time, and output file.

    How could I set up something like a batch file (I was thinking maybe node as well) where it just asks for the input file, start time, and output file ?

    The current ffmpeg command line I use is like this :
    ffmpeg -i desktop.mp4 -ss 00:01:50 -b 900000 -vf scale=640:trunc(ow/a/2)*2 output.webm