Recherche avancée

Médias (1)

Mot : - Tags -/livre électronique

Autres articles (81)

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

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (3121)

  • Révision 18409 : Ferme #2267 : déclarer les jointures pour permettre

    31 août 2011, par cedric -

    Profondeur #ID_RUBRIQUE :#PROFONDEUR :#TITRE Articles et enfants #ID_RUBRIQUE :#PROFONDEUR :#ID_ARTICLE :#TITRE Articles et parents #ID_RUBRIQUE :#PROFONDEUR :#ID_ARTICLE :#TITRE

  • Cannot run ffmpeg in subproces.call

    27 juin 2012, par Richard Knop

    So, I have a simple class where I am trying to save a string response from a terminal ffmpeg command into an object property :

    import os
    import subprocess

    class Movie(object):

       absolute_path = None
       movie_info = None

       def __init__(self, path):
           self.absolute_path = "%s/%s" % (os.getcwd(), path)
           if(os.path.exists(self.absolute_path) is False):
               raise IOError("File does not exist")

       def get_movie_info(self):
           ffmpeg_command = "ffmpeg -i %s" % self.absolute_path
           self.movie_info = subprocess.call(ffmpeg_command)
           print self.movie_info

    When I then run this command in cmd :

    import os
    import sys
    sys.path.append(os.getcwd())

    from Encode.Movie import Movie

    try:
       movie = Movie("tests/test_1.mpg")
       movie.get_movie_info()
    except IOError as e:
       print e

    I get this exception :

    richard@richard-desktop:~/projects/hello-python$ python main.py
    Traceback (most recent call last):
     File "main.py", line 9, in <module>
       movie.get_movie_info()
     File "/home/richard/projects/hello-python/Encode/Movie.py", line 16, in get_movie_info
       self.movie_info = subprocess.call(ffmpeg_command)
     File "/usr/lib/python2.7/subprocess.py", line 493, in call
       return Popen(*popenargs, **kwargs).wait()
     File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
       errread, errwrite)
     File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
       raise child_exception
    OSError: [Errno 2] No such file or directory
    </module>

    The path is correct because when I do print self.absolute_path before subprocess.call(), I get :

    /home/richard/projects/hello-python/tests/test_1.mpg

    And this file exists.

  • How do you compile FFmpeg for Windows (x86 and x64) using GCC/Clang for Windows ?

    31 juillet 2019, par cdlvcdlv

    There’s an in passing mention to GCC/Clang in the FFmpeg compiling guide.

    • If using GCC/Clang, consider adding -march=native to --extra-cflags to make slightly better use of your hardware.
      Alternatively, for a more general solution, examine the --arch and
      --cpu options. Gains are variable, and usually quite small. However,
      this is usually even more safe than the above, and is thus listed
      here.

    I found a guide to compile FFmpeg 4.0 for Android, for example, but none devoted to Windows builds.

    I’m interested in detailed answers explaining how you get to compile FFmpeg Windows builds for x86 and x64 using GCC/Clang for Windows or a successfully tested guide to it (which I didn’t find).

    Please include the way you must install every software needed. Needless to say, any other useful information should be in comments.