Recherche avancée

Médias (91)

Autres articles (111)

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

  • django upload and convert and save

    31 août 2015, par hessam zaheri

    I have a form in django that I upload an avi movie and I want to convert to mp4 and save in media root and save path in database record :

    class Content(models.Model):
       content_title_en = models.CharField(max_length=255)
       content_movie = models.FileField(verbose_name='movie')

       def save(self, *args, **kwargs):
           if self.content_movie:
               os.popen("ffmpeg -i C:/new/Wildlife.wmv video.mp4")
           super(Content, self).save(*args, **kwargs)

    and I convert file but I don’t know how save in file and my database record.

  • FTP Video Upload and Thumbnail Rotation Issue

    25 juin 2018, par Bits Please

    I am uploading video using ffmpeg command. I am then creating then thumbnail. I want to rotate video, how can I achieve this ?

    Here is my Code :

       $thumbnail_name =  preg_replace('"\.(mp4|avi|flv|vob|oggg)$"', '.jpg', $newfilename);

    $movie = "/home/foldername/public_html/master/assets/user_videos/".$newfilename;

    $thumbnail = "/home/foldername/public_html/master/assets/user_videos/".$thumbnail_name;

    $command = '/usr/bin/ffmpeg -y -ss 00:00:01 -i '.$movie.' -f image2 -vframes 1 '.$thumbnail.' 2>&1';
  • Calling ffmpeg from subprocess.run and refering to specific directory

    27 décembre 2018, par Akalyn

    I’m trying to compile images contained in a given directory D into an mp4 video from a python script. I decided to use ffmpeg and hence called it through
    subprocess.run().

    When I issue the following command from another directory than D :

    ffmpeg -framerate 30 -pattern_type glob -i 'path/to/D/*.jpg' -vcodec libx264 -y movie.mp4

    it works fine.

    The same thing happens when I issue the command from the python script with the shell=True option :

    subprocess.run(" ".join(["ffmpeg", "-framerate", "30", "-pattern_type", "glob", "-i", "'path/to/D/*.jpg'", "-vcodec", "libx264", "-y", "movie.mp4"]), shell=True)

    However I know that relying on shell=True is not recommended. I tried using subprocess.run without that option :

    subprocess.run(["ffmpeg", "-framerate", "30", "-pattern_type", "glob", "-i", "'path/to/D/*.jpg'", "-vcodec", "libx264", "-y", "movie.mp4"])

    but it resulted in the following error :

    'path/to/D/*.jpg': No such file or directory.


    Why does the call to ffmpeg fail when calling it through subprocess.run with shell=False option ?