Recherche avancée

Médias (1)

Mot : - Tags -/getid3

Autres articles (105)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

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

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

Sur d’autres sites (4949)

  • Decoding the h.264 stream from a COM port

    18 mars, par Peter

    I would like to know if there is a reliable way to decode an H.264 NAL stream coming through a serial port using software.

    &#xA;

    So far, I have managed to decode a single frame using a python script. In this script, I first write the incoming data to a file, and when the end-of-frame marker 00_00_00_01 appears, I display the frame using ffplay.

    &#xA;

    import serial&#xA;import subprocess&#xA;import os&#xA;import time&#xA;&#xA;ser = serial.Serial(&#x27;COM3&#x27;, 115200, timeout=1)&#xA;output_file = "output.264"&#xA;&#xA;# Variable to store the ffplay process&#xA;ffplay_process = None&#xA;&#xA;# Open the file for writing in binary mode&#xA;with open(output_file, "wb") as file:&#xA;&#xA;    print("Writing bytes to output.264. Waiting for the end-of-frame marker 0x00000001.")&#xA;&#xA;    buffer = bytearray()&#xA;    marker = b&#x27;\x00\x00\x00\x01&#x27;&#xA;&#xA;    try:&#xA;        while True:&#xA;            if ser.in_waiting:  # If there is data in the buffer&#xA;                data = ser.read(ser.in_waiting)  # Read all available bytes&#xA;                buffer.extend(data)&#xA;&#xA;                # Check if the end-of-frame marker is in the buffer&#xA;                while marker in buffer:&#xA;                    index = buffer.index(marker) &#x2B; len(marker)  # Position after the marker&#xA;                    frame = buffer[:index]  # Extract the frame&#xA;                    buffer = buffer[index:]  # Keep the remaining data&#xA;&#xA;                    print(f"Frame recorded: {len(frame)} bytes")&#xA;                    file.write(frame)  # Write the frame to the file&#xA;                    file.flush()  # Force writing to disk&#xA;&#xA;                    # Close the ffplay window if it is already open&#xA;                    if ffplay_process and ffplay_process.poll() is None:&#xA;                        ffplay_process.terminate()&#xA;                        ffplay_process.wait()  # Wait for the process to terminate&#xA;&#xA;                    # Play the recorded frame, reopening the window&#xA;                    ffplay_process = subprocess.Popen(["ffplay", "-f", "h264", "-i", output_file])&#xA;&#xA;    except KeyboardInterrupt:&#xA;        print("\nRecording stopped.")&#xA;    finally:&#xA;        # Close the serial port and the ffplay process&#xA;        ser.close()&#xA;

    &#xA;

    However, each time a new end-of-frame marker is detected, the ffplay window closes and reopens to show the next frame. It will flicker when transferring the video. Is there a way to display the frames in the same window for seamless playback when streaming video ?

    &#xA;

    Or is there a better approach or software that is more suited for this task ? I do not know where to start, so I will be glad for any hints.

    &#xA;

  • Revision 29902 : - mise à jour de l’appel des #SAISIE (celles qui risquent un plantage en ...

    16 juillet 2009, par marcimat@… — Log

    - mise à jour de l’appel des #SAISIE (celles qui risquent un plantage en priorité)
    - mise à jour du plugin.xml

  • Revision 34313 : textebrut sur le #NOM_SITE_SPIP

    8 janvier 2010, par fil@… — Log

    textebrut sur le #NOM_SITE_SPIP