Recherche avancée

Médias (91)

Autres articles (78)

  • Qu’est ce qu’un éditorial

    21 juin 2013, par

    Ecrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
    Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
    Vous pouvez personnaliser le formulaire de création d’un éditorial.
    Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...)

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

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

Sur d’autres sites (12405)

  • avcodec/dca_parser : improve frame end search

    13 mai 2016, par foo86
    avcodec/dca_parser : improve frame end search
    

    Parse core frame size directly when searching for frame end instead of
    using value extracted from previous frame.

    Account for unused bits when calculating sync word distance for 14-bit
    streams to avoid alias sync detection.

    Parse EXSS frame size and skip over EXSS frame to avoid alias sync
    detection.

    Signed-off-by : James Almer <jamrial@gmail.com>

    • [DH] libavcodec/dca_parser.c
  • Running a 2-pass video conversion using Python's subprocess module and ffmpeg

    22 novembre 2012, par ensnare

    I'm trying to convert a bunch of videos to play on my iPad. I'm using the subprocess module, which from what I understand launches a binary in a separate process from my script. I'm not sure how to handle 2-pass encoding which requires that the first process terminate before the second begin.

    Here is my code :

    def convert(filename):
     extension = filename[-3:]

     destination_filename_720 = filename[-4:] + &#39;-a720p&#39; + &#39;.mp4&#39;
     destination_filename_1080 = filename[-4:] + &#39;-a1080p&#39; + &#39;.mp4&#39;

     p = subprocess.Popen([&#39;ffmpeg&#39;,&#39;-i&#39;, str(filename) ,
                           &#39;-acodec&#39; , &#39;aac&#39; ,
                           &#39;-ab&#39; , &#39;160k&#39; ,
                           &#39;-ac&#39; , &#39;2&#39; ,
                           &#39;-vcodec&#39; , &#39;libx264&#39; ,
                           &#39;-strict&#39; , &#39;-2&#39; ,
                           &#39;-vpre&#39; , &#39;ipod640&#39; ,
                           &#39;-threads&#39; , &#39;8&#39; ,
                           &#39;-s&#39; , &#39;1280x720&#39; ,
                           &#39;-b:v&#39; , &#39;2000k&#39; ,
                           &#39;-pass&#39; , &#39;1&#39; ,
                           &#39;-y&#39; ,
                           destination_filename_720])

     p = subprocess.Popen([&#39;ffmpeg&#39;,&#39;-i&#39;, str(filename) ,
                           &#39;-acodec&#39; , &#39;aac&#39; ,
                           &#39;-ab&#39; , &#39;160k&#39; ,
                           &#39;-ac&#39; , &#39;2&#39; ,
                           &#39;-vcodec&#39; , &#39;libx264&#39; ,
                           &#39;-strict&#39; , &#39;-2&#39; ,
                           &#39;-vpre&#39; , &#39;ipod640&#39; ,
                           &#39;-threads&#39; , &#39;8&#39; ,
                           &#39;-s&#39; , &#39;1280x720&#39; ,
                           &#39;-b:v&#39; , &#39;2000k&#39; ,
                           &#39;-pass&#39; , &#39;2&#39; ,
                           &#39;-y&#39; ,
                           destination_filename_720])

    As soon as the convert() function is called, both processes are spawned immediately.

    The second process fails because the first process hasn't yet finished.

    How can I fix this ? Or, is there a better way ?

  • Can I pass a list of image into the input method of ffmpeg-python

    31 janvier 2023, par se7en

    My task involves using ffmpeg to create video from image sequence.&#xA;the code belows solves the problem.

    &#xA;

    import ffmpeg&#xA;&#xA;video = ffmpeg.input(&#x27;/path/to/images/*.jpg&#x27;, pattern_type=&#x27;glob&#x27;,framerate=20).output(video.mp4).run()&#xA;

    &#xA;

    However since the image data we are getting follows the pattern

    &#xA;

    1.jpg,&#xA;2.jpg,&#xA;3.jpg&#xA;.&#xA;.&#xA;20.jpg&#xA;.&#xA;.&#xA;100.jpg&#xA;

    &#xA;

    the video get created with the glob pattern 1.jpg, 100.jpg, 11.jpg, 12.jpg, ... 2.jpg, 20.jpg, 21.jpg ... which is very unpleasant to watch.

    &#xA;

    Is there anyway I can pass a list or anything else aside a path/glob pattern where the images are sorted in order.&#xA;Also as a bonus I will be happy if I can choose which files to add as an the input method input()

    &#xA;