Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (62)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Changer son thème graphique

    22 février 2011, par

    Le thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
    Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
    Modifier le thème graphique utilisé
    Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
    Il suffit ensuite de se rendre dans l’espace de configuration du (...)

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

Sur d’autres sites (13215)

  • avfilter/vf_showinfo : Fix erroneous results for mean and stdev with pixel bits >8

    6 janvier 2020, par Limin Wang
    avfilter/vf_showinfo : Fix erroneous results for mean and stdev with pixel bits >8
    

    Have tested with be and le pixel format on be and le system for >8bit.
    System :
    lmwang@ubuntu : /ffmpeg.git.mips$ grep HAVE_BIGENDIAN config.h
    ffmpeg.git git :(showinfo) ✗ grep HAVE_BIGENDIAN config.h

    Test result :
    1, yuv420p
    ./ffmpeg -f lavfi -i color=black:duration=1:r=1:size=1280x720,format=yuv420p,showinfo
    Master :
    mean :[16 128 128] stdev :[0.0 0.0 0.0]
    After applied the patch :
    mean :[16 128 128] stdev :[0.0 0.0 0.0]

    2, yuv420p10le
    ./ffmpeg -f lavfi -i color=black:duration=1:r=1:size=1280x720,format=yuv420p10le,showinfo
    Master :
    mean :[32 1 1] stdev :[32.0 1.0 1.0]
    After applied the patch :
    mean :[64 512 512] stdev :[0.0 0.0 0.0]

    3, yuv420p10be
    ./ffmpeg -f lavfi -i color=black:duration=1:r=1:size=1280x720,format=yuv420p10be,showinfo
    Master :
    mean :[32 1 1] stdev :[32.0 1.0 1.0]
    After applied the patch :
    mean :[64 512 512] stdev :[0.0 0.0 0.0]

    Signed-off-by : Limin Wang <lance.lmwang@gmail.com>
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavfilter/vf_showinfo.c
  • ffmpeg filters order rotate scale with overlay

    13 décembre 2017, par Sebastián Márquez Lutfy

    I’m trying to render an image over a video. I use the following command after some research

    ffmpeg -y  -i "my_video.mp4" -i "my_image.jpg" -filter_complex "color=color=blue:size=711x400:rate=25[container];[0:v]scale=w=400:h=400,setpts=expr=PTS-STARTPTS[vidscaled];[container][vidscaled]overlay=eval=init:shortest=1:x=155:y=0[overlay0];[1:v]scale=w=123:h=123,rotate=a=323.7*PI/180:c=black@0:oh='roth(323.7*PI/180)':ow='rotw(323.7*PI/180)':bilinear=1[imgproc];[overlay0][imgproc]overlay=eval=init:x=18:y='237-abs(123*sin(323.7*PI/180))'[overlay1]" -map "[overlay1]" -map 0:a -strict -2 -preset ultrafast -g 120 output.mp4

    The problem with this approach is a low image’s quality since scaling is applied before rotate. So i tried to apply the rotation before scaling, (see next command)

    ffmpeg -y  -i "my_video.mp4" -i "my_image.jpg" -filter_complex "color=color=blue:size=711x400:rate=25[container];[0:v]scale=w=400:h=400,setpts=expr=PTS-STARTPTS[vidscaled];[container][vidscaled]overlay=eval=init:shortest=1:x=155:y=0[overlay0];[1:v]rotate=a=323.7*PI/180:c=black@0:oh='roth(323.7*PI/180)':ow='rotw(323.7*PI/180)':bilinear=1,scale=w=173:h=173[imgproc];[overlay0][imgproc]overlay=eval=init:x=18:y='237-abs(123*sin(323.7*PI/180))'[overlay1]" -map "[overlay1]" -map 0:a -strict -2 -preset ultrafast -g 120 output.mp4

    And the problem : c=black@0 is not working anymore, the bounding box around the rotated image is not transparent.

    Anyone please help this soul.

    pd : Using c=none doesn’t work too, got a green background

  • Add text to video using FFMPEG(c# application)

    3 février 2020, par uzura

    Trying to add text to video using FFMPEG via c# script using the following command

    ffmpeg -i input.mp4 -vf drawtext="\text='Stack Overflow': fontcolor=white: fontsize=24: box=1: boxcolor=black@0.5: x=w-tw-10:y=h-th-10" -codec:a copy output.mp4

    This works when run it from cmd but when I implement it here :

       public void AddNewLabel(string label)
       {
           //string video = "input.mp4";
           string filter = "input.mp4 -vf drawtext=\"\text='sampletext': fontcolor=white: fontsize=24: box=1: boxcolor=black: x=w-tw-10:y=h-th-10\"";//problemm is this line

           string args = $"/c ffmpeg -i {filter} -codec:a copy output.mp4";

           ProcessStartInfo startInfo = new ProcessStartInfo
           {
               CreateNoWindow = false,
               FileName = "cmd.exe",
               WorkingDirectory = outputpath,
               Arguments = args
           };

           using (Process exeProcess = Process.Start(startInfo))
           {
               exeProcess.WaitForExit();
           }
       }

    The output is a 0kb mp4 file that cant be opened. When i remove everything after input.mp4 in filter, the output is fine. What could I be doing wrong ?