Recherche avancée

Médias (1)

Mot : - Tags -/karaoke

Autres articles (55)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (6824)

  • tools/target_swr_fuzzer : do not use negative numbers of samples

    30 novembre 2024, par Michael Niedermayer
    tools/target_swr_fuzzer : do not use negative numbers of samples
    

    Fixes : signed integer overflow : -277109688 * 8 cannot be represented in type 'int'
    Fixes : 376118159/clusterfuzz-testcase-minimized-ffmpeg_SWR_fuzzer-5884436320681984

    Found-by : continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] tools/target_swr_fuzzer.c
  • Decoding the h.264 stream from a serial 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;

  • How to create video by stitching together images (.png) where the serial on each image file increases by 6

    10 avril 2024, par DataStatsExplorer

    I am trying to create a video (preferably mp4) from a series of png images. However, the name of each image file increases by 6 every frame. For example, I would have depthframe_0000 as the first frame, and depthframe_0001 for the next frame.

    &#xA;

    There are a few answers that have answered a similar question but I am unable to process the video when the image files are not increasing by 1.

    &#xA;

    I would like to keep the fps at 5. I am using ffmpeg as the suggested in the answers above but am open to any other suggestion.

    &#xA;

    The collab code that I have put together is as follows :

    &#xA;

    import subprocess&#xA;&#xA;# Define the frame rate and the input/output paths&#xA;output_fps = 5&#xA;input_path = "/content/drive/MyDrive/depth/depthframe_%04d.png"&#xA;output_path = "/content/drive/MyDrive/depth.mp4"&#xA;&#xA;# Create a list of the frames&#xA;frames = [input_path % i for i in range(0, 2671, 6)]  # Update range as needed&#xA;&#xA;# Write the list of frames to a temporary text file&#xA;with open(&#x27;frames.txt&#x27;, &#x27;w&#x27;) as f:&#xA;    for frame in frames:&#xA;        f.write(f"file &#x27;{frame}&#x27;\n")&#xA;&#xA;# Create the command&#xA;command = [&#xA;    "ffmpeg",&#xA;    "-f", "concat",&#xA;    "-safe", "0",&#xA;    "-i", "frames.txt",&#xA;    "-c:v", "libx264",&#xA;    "-pix_fmt", "yuv420p",&#xA;    output_path&#xA;]&#xA;&#xA;# Run the command&#xA;subprocess.run(command, check=True)&#xA;

    &#xA;