Recherche avancée

Médias (0)

Mot : - Tags -/diogene

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

Autres articles (108)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Librairies et logiciels spécifiques aux médias

    10 décembre 2010, par

    Pour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
    Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...)

Sur d’autres sites (9341)

  • Batch overlay logo to directory of video files with scale watermark in percentage of video resolution

    28 septembre 2017, par Aariyan mind

    help me how to add auto scale watermark in percentage of video resolution code in this ?

    for %%I in ("C:\Users\demo\*.mp4") do ffmpeg.exe -i "%%I"  -filter_complex "movie=180n.png[watermark];[watermark][0]scale2ref=350*iw/2140:42*iw/2140[wm][v];[wm]setsar=1[logo];[v][logo] overlay=10:10:enable=not(between'(t,30,210)')[watermark]" -map "[watermark]" -map 0:a -codec:v libx264 -codec:a copy "C:\Users\files\%%~nI.mp4"
    pause
  • Get RGB values from AVPicture and change to grey-scale in FFMPEG

    22 octobre 2014, par user2742299

    The main motive of my code is to change the RGB values from the AVPicture in FFMPEG.

    I have been able to get the image data "data[0]" by following the article : http://blog.tomaka17.com/2012/03/libavcodeclibavformat-tutorial/

    I would like to know that how can I access the 3 bytes of pic.data[0] which is in RGB format. I have been trying to access the pic.data[i][j] via for-loop in 2D matrix fashion but jth element>3.

    Any guidance in this regard will be helpful.

    Code is here :

    AVPicture pic;
           avpicture_alloc(&pic, PIX_FMT_RGB24, mpAVFrameInput->width,mpAVFrameInput->height);
           auto ctxt = sws_getContext(mpAVFrameInput->width,mpAVFrameInput->height,static_cast<pixelformat>(mpAVFrameInput->format),
               mpAVFrameInput->width, mpAVFrameInput->height, PIX_FMT_RGB24, SWS_BILINEAR, nullptr, nullptr, nullptr);

           if (ctxt == nullptr)
               throw std::runtime_error("Error while calling sws_getContext");
           sws_scale(ctxt, mpAVFrameInput->data, mpAVFrameInput->linesize, 0, mpAVFrameInput->height, pic.data,
               pic.linesize);


       for (int i = 0; i &lt; (mpAVFrameInput->height-1); i++) {

           for (int j = 0;  j &lt; (mpAVFrameInput->width-1); j++) {
           printf("\n value: %d",pic.data[0][j]);

           }

       }
    </pixelformat>

    Pseudo code which is in my mind is :

    For each pixel in image {
    Red = pic.data[i][j].pixel.RED;
    Green = pic.data[i][j].pixel.GREEN;
    Blue = pic.data[i][j].pixel.BLUE;
    GRAY = (Red+Green+Blue)/3;
    Red = GRAY;
    Green = GRAY;
    Blue = GRAY;
    Save Frame;}

    I am quite new to FFMPEG therefore any guidance and help will be highly appreciable.

    Many Thanks

  • avfilter/av_biquads : scale a0 too

    6 janvier 2018, par Paul B Mahol
    avfilter/av_biquads : scale a0 too
    

    Fixes bug when using commands to alter coefficients.

    Signed-off-by : Paul B Mahol <onemda@gmail.com>

    • [DH] libavfilter/af_biquads.c