Recherche avancée

Médias (2)

Mot : - Tags -/map

Autres articles (67)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

Sur d’autres sites (12704)

  • Inputting files in different folders as arguments to ffmpeg in Python

    20 janvier 2016, par John Stanford

    I’m working on a program using ffmpeg in Python and I’m trying to stack a bunch of PNG images into a video. I want to keep the code on my Dropbox but use the local hard drive to do the work, so I when I input the files as arguments, I want to include the directory. The code below makes the raw input file just fine, but when I try to begin a pipe with ffmpeg, it tells me it can’t find the input file. Is there some special way to format this if the input file is in a different directory ? I’ve had similar code work fine with the files all located in the same folder. Thanks !

    import subprocess as sp

    import numpy as np
    import matplotlib.pyplot as plt

    import os
    import shutil

    import tkinter.filedialog as tkFileDialog

    FFMPEG_BIN = 'ffmpeg.exe'

    def readImages(pathToImages):
       filenames = os.listdir(path=pathToImages)
       f = open("C:\\Users\johnwstanford\Desktop\outputfile.raw", "wb")

       for file in filenames:
           print(file)
           image = plt.imread(pathToImages + '/' + file)
           image = np.delete(image, 3, 2)*255

           f.write(image.tobytes())
       f.close()

    readImages(tkFileDialog.askdirectory())

    command2 = [FFMPEG_BIN,
              '-y',
              '-f', 'rawvideo',
              '-vcodec', 'rawvideo',
              '-s', '1600x1200',
              '-pix_fmt', 'rgb24',
              '-r', '25',
              '-i', "C:\\Users\johnwstanford\Desktop\outputfile.raw",
              "C:\\Users\johnwstanford\Desktop\output.mp4"]

    pipe2 = sp.Popen(command2, stdin = sp.PIPE, stderr=sp.PIPE)
    print(pipe2.communicate()[1])
    pipe2.kill()
    os.remove("C:\\Users\johnwstanford\Desktop\outputfile.raw")
  • Packet Corruption : Why sometimes ffmpeg .bat batch video editing makes my computer unstable unable to restart ?

    13 juin 2022, par principal-ideal-domain

    I'm doing very time consuming ffmpeg video editing. That's why I put my commands into a .bat batch file and run them over night. Usually that works fine, but from time to time when I look the next moring I see an error message of this kind :

    


    enter image description here

    


    From that state on, I didn't find any good way to close the console. When I press the [x] button in the top right corner, it freezes. When I try to kill the application using the task manager nothing happens. Even explorer.exe cannot be closed using the task manager. A shutdown won't do anything. During the last month I had this problem about three times and the only way I could close it was to long press the power button of the computer until it was turned off "the bad way".

    


    Any ideas what to in such situations ?
    
Or even better : How to prevent those situations ?
What can the reason(s) be for the error ?
Do you understand the message ?

    


    When the computer is started again the next morining and I run the same .bat file again everything works fine. So the same error does not repeat and the video is edited nicely !

    


    Edit : Now, about one week after posting this question the problem occurred many more times ! It is very annoying. I guess it has to do with the external hard drive connected by USB. Sometimes it randomly interrupts the connection ! That might be the reason for the behavior. Whatever its causing the error, I want to learn a solution how to deal with this in future. I don't want to always push the reset button of my computer. I want a proper way to be able to shut it down.

    


  • lavf/qtpalette : Treat 1-bit video as palettized

    29 décembre 2015, par Mats Peterson
    lavf/qtpalette : Treat 1-bit video as palettized
    

    This commit for qtpalette.c and qtpalette.h adds 1-bit video to the
    "palettized video" category, since if the video sample description
    contains a palette, the two colors in the palette can be any color, not
    necessarily black & white.

    Unfortunately, I’ve noticed that the qtrle (QuickTime Animation) decoder
    blindly assumes that 1-bit video is black & white. I don’t have enough
    knowledge about the decoder to fix this, though.

    Below is a link to a sample 1-bit QuickTime Animation clip of a rotating
    earth that uses blueish colors, and they will be correctly rendered in
    QuickTime, but not in FFmpeg (which will use black & white).

    https://drive.google.com/open?id=0B3_pEBoLs0faUlItWm9KaGJSTEE

    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavformat/qtpalette.c
    • [DH] libavformat/qtpalette.h