Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP

Autres articles (45)

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

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

Sur d’autres sites (10358)

  • Revision 9aa76fdb69 : Adds a copy mode experiment Experiment to copy motion and mode from block neigh

    16 décembre 2014, par Deb Mukherjee

    Changed Paths :
     Modify /configure


     Modify /vp9/common/vp9_blockd.h


     Modify /vp9/common/vp9_entropymode.c


     Modify /vp9/common/vp9_entropymode.h


     Modify /vp9/common/vp9_mvref_common.c


     Modify /vp9/common/vp9_mvref_common.h


     Modify /vp9/common/vp9_pred_common.c


     Modify /vp9/common/vp9_pred_common.h


     Modify /vp9/decoder/vp9_decodeframe.c


     Modify /vp9/decoder/vp9_decodemv.c


     Modify /vp9/encoder/vp9_bitstream.c


     Modify /vp9/encoder/vp9_encodeframe.c


     Modify /vp9/encoder/vp9_encoder.h


     Modify /vp9/encoder/vp9_rd.c


     Modify /vp9/encoder/vp9_rdopt.c



    Adds a copy mode experiment

    Experiment to copy motion and mode from block neighbors.

    Results :


    — enable-experimental —enable-copy-mode :
    derflr : +0.727%

    With other expts :
    — enable-experimental —enable-copy-mode —enable-supertx
    — enable-ext-tx —enable-filterintra —enable-tx-skip —enable-tx64x64
    derflr : +3.43%

    Change-Id : Iae74b9a855a1a690bf76131b42d247bbc54dec17

  • How to make high smooth, high resolution particle motion animations

    5 décembre 2019, par algae

    For some time I have been having trouble with producing short movies/animations/gifs which are of sufficiently high resolution. I’m going to use R to generate some frames as a random example, but if there is somewhere else I should be creating frames from to give better results I would be interested in that too.

    Creating frames

    The kinds of animations I’m interested involve some cloud of ’particles’ moving about the page. There are usually a large number of particles and I would like their motion be as smooth as possible. As a random example, consider the R code (using base graphics and not ggplot2 as it is far quicker for saving a large number of frames)

    N <- 500
    nFrames <- 250
    points <- pracma::randp(n=N, r=1)
    rot <- function(p, a) { return(cbind(p[,1]*cos(a) - p[,2]*sin(a), p[,1]*sin(a) + p[,2]*cos(a))) }
    cols <- colorRampPalette(c("red", "green", "blue"))(nFrames)
    ang <- seq(0, pi, length=N)

    # Save frames
    png(filename="%d.png")
    par(mar=c(0,0,0,0))
    for (i in seq(1,N,length=nFrames))
           plot(sqrt(i)*rot(points, ang[i]), xlim=sqrt(N)*c(-1,1),  ylim=sqrt(N)*c(-1,1), cex=0.5, pch=19, col=cols[i], asp=1, xaxs="i")

    dev.off()

    Frames to animation

    There are a number of tools available to chain each frame together into an animation (in R there are also things like gganimate which I have tried but did not find convenient or better than the following). I also don’t have any requirements for the resulting file size or time taken to get everything looking as crisp as possible.

    convert

    For short gif style animations a common solution is to do something like convert -delay 1 -loop 0 *.png g.gif which gives

    enter image description here

    gifski

    Running gifski -o g.gif *.png produces

    boring_gif

    There is an annoying amount of ’jitter’ happening in the transition between frames in both of the above (though less noticeable with gifski).

    ffmpeg

    Being gifs, the above will be have limited options for tweaking so I suspect part of the solution lies in using ffmpeg. All I would like to know is how to make the animation appear totally smooth without any kind of noticeable blurriness. Here the resulting movies tend to be quite smooth, but resolution is lacking.. e.g. after setting height=1080 and width=1080 in png() of the above code we can run

    fmpeg -i %d.png -s 1080x1080 -c:v libx264 -vf fps=250 -pix_fmt yuv444p out.mp4

    If the particles move on a time/space scale smaller than is visible to the naked eye, and we set the frames per second to be the total number of frames, the transition between frames should be seamless, right ? At around the 2 second mark in out.mp4 you will see some kind of frame drop and similarly right at the beginning. Why does this happen ?

    Questions

    1. Is there a standard documented approach to generating high quality animations/movies involving large numbers of ’point-like’ particles ? Do we need more an more frames ?
    2. How to improve resolution of movies using ffmpeg ? Should I change from .png format to something vectorised (if so, how) ?

    Running Fedora v31.

  • Load first generated dynamic control then load next

    13 juillet 2015, par prasanas
           private void AddControls(int ControlNumber) {
           HtmlGenericControl divContent = new HtmlGenericControl("div");
           divContent.ID = "Panel";
           divContent.Attributes.Add("class", "div");
           UpdatePanel1.ContentTemplateContainer.Controls.Add(divContent);
           System.Threading.Thread.Sleep(1000);
           }

    Why i am adding system.thread because instead of wait command we are using ffmpeg convertor to generate thumnails of video’s it takes around 2 seconds for each video file.

    Consider there are 5 video files. The div takes 10 seconds to load. The whole page gets stucked and after loading all 5 videos we can see it.

    Is there a way like updatepanel or some other to load each file and load next.

       

       <contenttemplate>
           
       </contenttemplate>

    c# Code :

       public List<string> DynamicControls {
           get { return (List<string>)Session["DynamicControls"]; }
           set { Session["DynamicControls"] = value; }
           }

       protected void Page_Init(object sender, EventArgs e) {
           if (!IsPostBack) {
               DynamicControls = new List<string>();
               DynamicControls.Add(AddControls(NextControl));
               }
           else {
               for (int i = 0; i &lt; 5; i++) {
                   AddControls(i);
                   }
               }
           }

       protected void Page_Load(object sender, EventArgs e) { }
       protected void btnAddNext_Command(object sender, CommandEventArgs e) { }

       public int NextControl {
           get { return ViewState["NextControl"] == null ? 0 : (int)ViewState["NextControl"]; }
           set { ViewState["NextControl"] = value; }
           }

       private string AddControls(int ControlNumber) {
           //add textbox
           TextBox txtValue = new TextBox();
           txtValue.ID = "txtValue" + ControlNumber;
           PlaceholderControls.Controls.Add(txtValue);

           //add button
           Button btnAddNext = new Button();
           btnAddNext.Text = "Add Control " + ControlNumber;
           btnAddNext.ID = "btnAddNext" + ControlNumber;
           int NextControl = ControlNumber + 1;
           btnAddNext.CommandArgument = NextControl.ToString();

           btnAddNext.Command += new CommandEventHandler(btnAddNext_Command);
           PlaceholderControls.Controls.Add(btnAddNext);

           //add a line break
           PlaceholderControls.Controls.Add(new LiteralControl("<br />"));
           System.Threading.Thread.Sleep(1000);
           return btnAddNext.UniqueID;
           }
    </string></string></string>

    For above code is sample it loads after 5 seconds loading all 5 elements. I want to load like 1sec- 1 element then 2Seconds load 2nd like this..at 5th second load 5 element.