Recherche avancée

Médias (91)

Autres articles (27)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

Sur d’autres sites (4081)

  • lavf/img2dec : Auto-detect Kodak Photo CD image files.

    5 septembre 2020, par Carl Eugen Hoyos
    lavf/img2dec : Auto-detect Kodak Photo CD image files.
    
    • [DH] libavformat/Makefile
    • [DH] libavformat/allformats.c
    • [DH] libavformat/img2dec.c
    • [DH] libavformat/version.h
  • Make text always fit inside any sized photo/video frame ffmpeg

    29 août 2020, par pigeonburger

    I'm trying to use the drawtext filter in ffmpeg to add text to a video, but depending on the frame size, the text can either be too large (parts of it not even in the video frame) or too small (barely readable). Is there a way I can make the text automatically resize itself to perfectly fit the frame ?

    


    Here's the line of code I am using right now :

    


    ffmpeg -i input.jpg -vf "drawtext=font='Impact': text='Test Text': fontcolor=white: borderw=3: fontsize-75: x=(w-tw)/2:y=h/12-th/2" output.jpg


    


    Thanks in advance for anyone who helps.

    


  • FileNotFoundError : [WinError 2] The system cannot find the file specified when using moviepy

    17 mars 2023, par HamidBee

    I am trying to reduce the file size of a .mp4 file using the following code :

    


    import os
import moviepy.editor as mp
import ffmpeg

def compress_video(input_file, output_file, target_size_ratio=0.5):
    if not os.path.exists(input_file):
        raise FileNotFoundError(f"Input file not found: {input_file}")

    if target_size_ratio <= 0 or target_size_ratio >= 1:
        raise ValueError("Target size ratio must be between 0 and 1")

    # Get input video information
    probe = ffmpeg.probe(input_file)
    video_stream = next((stream for stream in probe['streams'] if stream['codec_type'] == 'video'), None)
    bitrate = int(video_stream['bit_rate'])

    # Calculate new bitrate to achieve the target file size
    new_bitrate = int(bitrate * target_size_ratio)

    # Load the video and compress
    input_video = mp.VideoFileClip(input_file)
    input_video.write_videofile(
        output_file,
        bitrate=f"{new_bitrate}k",
        codec="libx264",
        audio_codec="aac",
        threads=4,
        ffmpeg_params=["-strict", "-2"]
    )

input_file = r"C:\Users\Hamid\Downloads\A.mp4"
output_file = r"C:\Users\Hamid\Downloads\B.mp4"
compress_video(input_file, output_file, target_size_ratio=0.5)


    


    But I am getting the following error :

    


    FileNotFoundError: [WinError 2] The system cannot find the file specified


    


    Just a note I have a file in that directory called A.mp4 but currently no file exists called B.mp4.