Recherche avancée

Médias (1)

Mot : - Tags -/copyleft

Autres articles (77)

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

  • 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" ;

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

Sur d’autres sites (5333)

  • How do I convert this ffmpeg command to be used in ffmpy ?

    8 janvier 2017, par user7389159

    I have a gif that I am taking apart frame by frame in order to write text onto it. I used ffmpeg to put the frames (saved as individual .png files) back together and it worked nicely. This is the code I used :

    ffmpeg -f image2 -i newimg%d.png out.gif

    But now I want to use the python wrapper ffmpy. Following the docs, I tried a variety of things but I keep getting syntax errors.

    Here is one instance of my efforts :

    ff = ffmpy(FFmpeg(inputs = {ffmpeg -f image2 -i "newimg%d.png"}, outputs = {"gif_with_text.gif"}))
    ff.run()

    In this attempt, the syntax error points to the "2" in image2. Could someone help me out ? Note - I’m new to python, let alone ffmpeg and ffmpy.

  • Socket code Python code at the end influences code in the beginning

    21 décembre 2019, par Samy Smart

    So basically i am trying to do the following things : Client sends project file, Server receives Project file, Server generates Video file, Server sends video File, Client receives Video File. Everything works up until sending the Video back. The Thing is when i include my code for sending the Video, not even the Things that worked before work anymore.
    The commented code in the code is the code that should send the Video back

    Client :

    import socket

    s = socket.socket()
    ip = socket.gethostname()
    file = "testae.aep"
    s.connect((ip, 1234))

    f = open(file, "rb")
    txt = f.read(1024)
    while txt:
       s.send(txt)
       print(f"Sending... {txt}")
       txt = f.read(1024)
    f.close()
    #f2 = open("final_output.mp4", "wb")
    #txt2 = s.recv(1024)
    #while txt2:
    #    f2.write(txt2)
    #    txt2 = s.recv(1024)
    #f2.close()
    print("received final output")
    s.close()

    Server :

    import os
    import socket

    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    s.bind((socket.gethostname(), 1234))
    counter = 0
    s.listen(5)
    aerpath = "C:/aerender.lnk"
    ffmpegpath = '"C:/Program Files/ffmpeg/bin/ffmpeg.exe"'

    while True:
       c, addr = s.accept()
       print("Client Connected")
       print(addr)
       f = open(f"ae_render_file{counter}.aep", "wb")
       txt = c.recv(1024)
       while txt:
           f.write(txt)
           print(f"Receiving... {txt}")
           txt = c.recv(1024)
       print("Out of WHILE")
       f.close()
       print("received file")
       os.system(aerpath + " -project " + f"C:/Users/weilu/PycharmProjects/localAERF/ae_render_file{counter}.aep "
                 + '-comp "Comp 1" ' + f"-output C:/Users/weilu/PycharmProjects/localAERF/output/output{counter}")
       os.system(ffmpegpath + " -i " + f"output/output{counter}.avi -f mp4 -vcodec libx264 -preset slow -profile:v main "
                                       f"-pix_fmt yuv420p -acodec aac -hide_banner output/outputr{counter}.mp4")
       #f2 = open(f"output/outputr{counter}.mp4","rb")
       #txt2 = f2.read(1024)
       #while txt2:
       #    c.send(txt2)
       #    print("Sending...")
       #    txt2 = f.read(1024)
       #f2.close()
       c.close()
       counter += 1
  • avformat/hls : avoid floating point arithmetic

    22 juillet 2013, par Michael Niedermayer
    avformat/hls : avoid floating point arithmetic
    

    Should make things more reproducable across platforms

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavformat/hls.c