Recherche avancée

Médias (3)

Mot : - Tags -/collection

Autres articles (96)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

  • Sélection de projets utilisant MediaSPIP

    29 avril 2011, par

    Les exemples cités ci-dessous sont des éléments représentatifs d’usages spécifiques de MediaSPIP pour certains projets.
    Vous pensez avoir un site "remarquable" réalisé avec MediaSPIP ? Faites le nous savoir ici.
    Ferme MediaSPIP @ Infini
    L’Association Infini développe des activités d’accueil, de point d’accès internet, de formation, de conduite de projets innovants dans le domaine des Technologies de l’Information et de la Communication, et l’hébergement de sites. Elle joue en la matière un rôle unique (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

Sur d’autres sites (6236)

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

  • ffmpeg compilation issue on Windows phone 8.1

    24 février 2017, par Mirko Puliafito

    Taking a look at Build ffmpeg for windows phone 8
    I was able to compile ffmpeg on Windows phone 8using these steps :

    My configuration

    OS : Windows 8.1 VS : Ultimate 2013 Update 3 (If armasm fails, msvcdis110.dll missing download it from dllsearch ) Mingw (be sure that "link" and "cl" commands point to MS "link" and "cl") FFmpeg 2.1.5

    Follow prerequisites listed here : https://ffmpeg.org/platform.html#Microsoft-Visual-C_002b_002b-or-Intel-C_002b_002b-Compiler-for-Windows

    -) Download c99toc89 : https://github.com/libav/c99-to-c89/downloads/. Be sure all files from c99toc89 are in Mingw PATH (copy in /bin)

    -) FFMPEG requires stdint.h and inttypes.h headers standardized as a part of C99. Unfortunately, Visual Studio does not include these files. Fortunately, there is a project that fixes this issue. Download the latest version and unpack it to Visual Studio includes (C :\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include).

    -) Launch cmd and "c :\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat x86_arm" and then msys

    -) configure :

    ./configure --toolchain=msvc \
    --disable-programs \
    --disable-network \
    --disable-protocols \
    --extra-cflags="-D_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE -D_M_ARM -D_WINAPI_FAMILY=WINAPIFAMILY_APP" \
    --enable-cross-compile \
    --target-os=win32 \
    --arch=arm \
    --as=armasm \
    --cpu=armv7 \
    --disable-yasm \
    --extra-ldflags="-MACHINE:ARM" \
    --disable-dxva2 \
    --disable-asm \
    --disable-doc

    I was able to get .a static libs but I wasn’t able to generate an app using it. I have problems while linking for kernel32.lib and libcmt.lib misses.

    Anyone ?

  • The video after editing with ffmpeg in not showing in the phone gallery

    23 novembre 2019, par corgiwooer

    I am working on a video editor app. The app works fine and edits the video. But the problem is the edited video is not showing in the phone gallery. I don’t the problem. I also added the Media Scanner in the end but I didn’t work out for me.

    This is my video editor method

    private void executeCutVideoCommand(int startMs, int endMs) {
           File moviesDir = Environment.getExternalStoragePublicDirectory(
                   Environment.DIRECTORY_MOVIES
           );

           String filePrefix = "cut_video";
           String fileExtn = ".mp4";
           String yourRealPath = getPath(VideoCutterActivity.this, selectedVideoUri);
           File dest = new File(moviesDir, filePrefix + fileExtn);
           int fileNo = 0;
           while (dest.exists()) {
               fileNo++;
               dest = new File(moviesDir, filePrefix + fileNo + fileExtn);
           }

           filePath = dest.getAbsolutePath();
           String[] complexCommand = {"-ss", "" + startMs / 1000, "-y", "-i", yourRealPath, "-t", "" + (endMs - startMs) / 1000,"-vcodec", "mpeg4", "-b:v", "2097152", "-b:a", "48000", "-ac", "2", "-ar", "22050", filePath};

           execFFmpegBinary(complexCommand);
           MediaScannerConnection.scanFile(VideoCutterActivity.this,
                   new String[] { Environment.getExternalStorageDirectory().toString() },
                   null,
                   new MediaScannerConnection.OnScanCompletedListener() {

                       public void onScanCompleted(String path, Uri uri) {

                           Log.i("ExternalStorage", "Scanned " + path + ":");
                           Log.i("ExternalStorage", "-> uri=" + uri);
                       }
                   });

       }

    I just to show the edited video in phone gallery. I don’t know what to do now. Help is much is appreciated