Recherche avancée

Médias (10)

Mot : - Tags -/wav

Autres articles (65)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

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

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

Sur d’autres sites (3615)

  • Ffmpeg error : Rotate thumbnail image of video

    9 septembre 2016, par user3418135

    Iam using ffmpeg to generate thumbnail image from a video .mov (uploaded from iPhone)

    This is PHP code on live server to generate :

    public static function generateThumbnail($inputUrl, $outputUrl) {
       $cmd = "ffmpeg -i ".$inputUrl." -ss 00:00:01 -vframes 1 -s 200x200 ".$outputUrl;
       exec($cmd);
    }

    On live server (CentOS 6.5) : If I run this cmd in terminal, it working. But if I run by calling above function php then thumbnail image will be rotated -90 degrees.

    If i run two cases on localhost (LinuxMint 17.2) then all ok.

    Thanks all.

  • Running matplotlib animation on Mac using Spyder : says to install ffmpeg

    28 avril 2017, par Addem

    I installed Anaconda on a new Mac, made a simple animation with matplotlib like

    import numpy as np
    from matplotlib import pyplot as plt
    from matplotlib import animation

    fig = plt.figure()
    ax = plt.axes(xlim=(0, 2), ylim=(-2, 2))
    line, = ax.plot([], [], lw=2)

    def init():
       line.set_data([], [])
       return line,

    def animate(i):
       x = np.linspace(0, 2, 1000)
       y = np.sin(2 * np.pi * (x - 0.01 * i))
       line.set_data(x, y)
       return line,

    anim = animation.FuncAnimation(fig, animate, init_func=init,
                                  frames=200, interval=20, blit=True)


    anim.save('basic_animation.mp4', fps=30, extra_args=['-vcodec', 'libx264'])

    plt.show()

    When I run it, it tells me to install ffmpeg. I tried using these instructions : http://stephenjungels.com/jungels.net/articles/ffmpeg-howto.html But the instructions were unclear about what I was supposed to download, especially when it got to the part about a "patch". This also just feels insanely complicated for something that seems like it should be much simpler. I also tried following some instructions for installing ffmpeg using Homebrew but the instructions were again poorly written so that some of the buttons it said should be there weren’t. I tried to figure it out by guessing what I should do, and it seemed to work but with a lot of warning messages. By the end of the process, when I type into a terminal

    which ffmpeg

    it returns /usr/local/bin/ffmpeg. However, even after restarting Spyder and re-running the code, it still tells me to install ffmpeg. I also navigated to /usr/local/bin and it doesn’t have a folder ffmpeg. So my guess is that ffmpeg didn’t install.

    I read in the matplotlib documentation that Anaconda doesn’t give a build for Python that is appropriate, something about a "framework" build (http://matplotlib.org/faq/osx_framework.html). But it says that in Anaconda you can install it easily by running conda install python.app which I did and it worked. It then says to use pythonw rather than python. I’m not really sure what this means, because in Spyder I don’t run scripts from the terminal. I tried navigating to the file anyway and running it with

    pythonw anim.py

    and it mysteriously gave me an I/O error.

    Do I really need to install ffmpeg or is there some simpler fix ?

    If I do need to install ffmpeg, where get I get up-to-date instructions that make the process clear ?

  • Running FFMPEG and FFserver from Glassfish Java Servlet

    6 mai 2015, par Ivan Ling

    I’m planning to design a web interface to control my FFserver remotely. The question is, is it possible to start/stop the FFserver running on my Linux server using a Servlet running on the same machine ?

    I’m using Glassfish server and Java EE 7 for my web application. Currently I managed to get my web app to obtain http streams (which are started manually in terminal with predefined config file) and play them on the web. However, now I want to find a way to stop the streams and start the streams on demand.

    Is it possible for me to run a Bash script via the servlet ? Or are there any better solutions which allows Servlets to run linux commands in the servlet ?