Recherche avancée

Médias (0)

Mot : - Tags -/tags

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (68)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • 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 tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

Sur d’autres sites (6721)

  • What is the equivalent of ImageMagick's -liquid-rescale in FFMPEG

    22 février 2024, par Mouaad Abdelghafour AITALI

    I'm interested in the Content-Aware Scale effect. So far, the only way to achieve it is by using ImageMagick (distortion algorithm)

    


    enter image description here

    


    cmd = f"magick {curFramePath}\

-liquid-rescale {100-DISTORT_PERCENTAGE}x{100-DISTORT_PERCENTAGE}%!\

-resize {videoSize[0]}x{videoSize[1]}\! {resFramePath}"


    


    I would love to achieve comparable results using only FFMPEG.

    


    Thank you for your help

    


  • avfilter/x86/f_ebur128 : replace AVX2 instruction with AVX equivalent

    22 juin, par James Almer
    avfilter/x86/f_ebur128 : replace AVX2 instruction with AVX equivalent
    

    Using vpbroadcastq in an AVX function will result in SIGILL errors on pre
    Haswell/Zen processors.

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

    • [DH] libavfilter/x86/f_ebur128.asm
  • 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;