Recherche avancée

Médias (91)

Autres articles (40)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

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

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (11746)

  • Warning in converting YUV color format to RGB in FFmpeg

    9 janvier 2015, par deepak

    I have YUV420P to RGB format conversion algorithm (given below), but this is giving
    following warning while compiling.. Also showing memory leaks in valgrind..

    warning : ‘SwsContext* sws_getContext(int, int, PixelFormat, int, int, PixelFormat, int, SwsFilter*, SwsFilter*, const double*)’ is deprecated (declared at /opt/ffmpeg.h264/include/libswscale/swscale.h:191)

    void YUV2RGB(const IplImage *yuvImg, IplImage *rgbImg) const
    {
     //code
     struct SwsContext *img_convert_ctx = sws_getContext(w, h, PIX_FMT_YUV420P,
                                                          w, h, PIX_FMT_BGR24,
                                                          SWS_BICUBIC,NULL, NULL, NULL);
     //code


    }

    Can anybody tell how to correct the memory leak and remove the warning

  • FFMPEG : Fill/Change (part of) audio waveform color as per actual progress with respect to time progress

    13 août 2018, par Software Development Consultan

    I am trying to make command which is generating waveform from mp3 file and show on background image and play audio.
    Togethr with this, I want to change waveform color left to right (something like progressbar) as per overall video time elapses.

    I have created following command which shows progress bar using drawbox to fill box color as per current time position.

    ffmpeg -y -loop 1 -threads 0 -i sample_background.png -i input.mp3 -filter_complex "color=red@0.5:s=1280x100[Color] ;[0:v]drawbox=0:155:1280:100:gray@1:t=fill[baserect] ;[1:a]aformat=channel_layouts=mono,showwaves=s=1280x100:rate=7:mode=cline:scale=sqrt:colors=0xffffff[waveform] ; [baserect][waveform] overlay=0:155 [v1] ;[v1][Color] overlay=x=’if(gte(t,0), -W+(t)*64, NAN)’:y=155:format=yuv444[v2]" -map "[v2]" -map 1:a -c:v libx264 -crf 35 -ss 0 -t 20 -c:a copy -shortest -pix_fmt yuv420p -threads 0 output_withwave_and_progresbar.mp4

    enter image description here

    But I want to show progress inside generated audio waveform instead of making / filling rectangle using drawbox.

    So I have tried to make 2 waveform of 2 different color and overlay on each other and I wanted to show such a way that top waveform should display only part from x position (left) respective to current time.

    ffmpeg -y -loop 1 -threads 0 -i sample_background.png -i input.mp3 -filter_complex "[0:v]drawbox=0:155:1280:100:gray@1:t=fill[baserect] ;[1:a]aformat=channel_layouts=mono,showwaves=s=1280x100:rate=7:mode=cline:scale=sqrt:colors=0xff0000[waveform] ;[1:a]aformat=channel_layouts=mono,showwaves=s=1280x100:rate=7:mode=cline:scale=sqrt:colors=0xffffff[waveform2] ; [baserect][waveform] overlay=0:155 [v1] ;[v1][waveform2] overlay=x=’if(gte(t,0), -W+(t)*64, NAN)’:y=155:format=yuv444[v2]" -map "[v2]" -map 1:a -c:v libx264 -crf 35 -ss 0 -t 20 -c:a copy -shortest -pix_fmt yuv420p -threads 0 test.mp4

    But I am not able to find way to do Wipe effect from left to right, currently it is sliding (as I am changing x of overlay)
    It might be done using alpha merge and setting all other pixel to transparent and only show pixels which are less than x pos.
    but I am not able to find how to do this.

    Background image :
    enter image description here

    we can use any mp3 file file, currently I have set 20 sec duration.

    Can someone please guide how we can do this ?

    Thanks.

  • Revert "avcodec/proresenc_anatoliy : support for more color matrix for proresenc"

    3 mai 2020, par Limin Wang
    Revert "avcodec/proresenc_anatoliy : support for more color matrix for proresenc"
    

    This reverts commit e0eed1fd523ec5d0cc390a08c468dbc57316378a.

    • [DH] libavcodec/proresenc_anatoliy.c