Recherche avancée

Médias (17)

Mot : - Tags -/wired

Autres articles (8)

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

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
    Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)

Sur d’autres sites (2472)

  • avcodec/mips/aaccoder_mips : Remove MIPS-specific aaccoder

    15 mars 2024, par Andreas Rheinhardt
    avcodec/mips/aaccoder_mips : Remove MIPS-specific aaccoder
    

    ff_aac_coder_init_mips() modifies a static const structure of
    function pointers. This will crash if the binary uses relro
    and is a data race in any case.

    Furthermore it points to a maintainability issue : The
    AACCoefficientsEncoder structures have been constified
    in commit fd9212f2edfe9b107c3c08ba2df5fd2cba5ab9e3,
    a Libav commit merged in 318778de9ebec276cb9dfc65509231ca56590d13.
    Libav did not have the MIPS-specific AAC code and so this was
    fine for them ; yet FFmpeg had them, but this was not recognized.

    Commit 75a099fc734a4ee2b1347d0a3d8c53d883b95174 points to another
    maintainability issue : Contrary to ordinary DSP code, this code
    here is way more complex and needs to be constantly kept in sync
    with the ordinary code which it mimicks and replaces. Said commit
    is the only commit actually changing aaccoder.c in the last few
    years and the same change has not been performed for the MIPS
    clone ; before that, it even happened several times that the mips
    code was broken due to changes of the generic code (see commits
    97437bd17a8c5d4135b2f3b1b299bd7bb72ce02c and
    de262d018d7d7d9c967af1dfd1b861c4b9eb2a60 or
    860dbe0275e57cbf4228f3f653f872ff66ca596b or
    933309a6ca0f18bf1d40e917fff455221f57fb4b or
    b65ffa316e377213c29736929beba584d0d80d7c). This might even lead
    to scenarios where someone changing non-dsp aacenc code would
    have to modify mips inline asm in order to keep them in sync.
    This is obviously a significant burden (if the AAC encoder were
    actively developed).

    Finally, the code does not even compile here due to errors like
    "Error : float register should be even, was 1".

    Reviewed-by : Lynne <dev@lynne.ee>
    Reviewed-by : Jean-Baptiste Kempf <jb@videolan.org>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/aacenc.c
    • [DH] libavcodec/aacenc.h
    • [DH] libavcodec/mips/Makefile
    • [DH] libavcodec/mips/aaccoder_mips.c
  • avcodec/ffv1dec : Switch to ProgressFrames

    2 septembre 2022, par Andreas Rheinhardt
    avcodec/ffv1dec : Switch to ProgressFrames
    

    Avoids implicit av_frame_ref() and therefore allocations
    and error checks. It also avoids explicitly allocating
    the AVFrames (done implicitly when getting the buffer).

    It also fixes a data race : The AVFrame's sample_aspect_ratio
    is currently updated after ff_thread_finish_setup()
    and this write is unsynchronized with the read in av_frame_ref().
    Removing the implicit av_frame_ref() fixed this.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/ffv1.h
    • [DH] libavcodec/ffv1dec.c
  • How to Use SVG Image Files Directly in FFmpeg ? [closed]

    10 mars, par Pubg Mobile

    I generated a bar chart race using the Flourish Studio website and captured the frames as a PDF sequence using a Python Playwright script. Then, I converted all the PDF files into SVG format using the following Python script, because SVG is the only image format that maintains quality without loss when zoomed in :

    &#xA;

    import os&#xA;import subprocess&#xA;import multiprocessing&#xA;&#xA;# Define paths&#xA;pdf2svg_path = r"E:\Desktop\dist-64bits\pdf2svg.exe"  # Full path to pdf2svg.exe&#xA;input_dir = r"E:\Desktop\New folder (4)\New folder"&#xA;output_dir = r"E:\Desktop\New folder (4)\New folder (2)"&#xA;&#xA;# Ensure output directory exists&#xA;os.makedirs(output_dir, exist_ok=True)&#xA;&#xA;def convert_pdf_to_svg(pdf_file):&#xA;    """ Convert a single PDF file to SVG. """&#xA;    input_pdf = os.path.join(input_dir, pdf_file)&#xA;    output_svg = os.path.join(output_dir, os.path.splitext(pdf_file)[0] &#x2B; ".svg")&#xA;&#xA;    try:&#xA;        subprocess.run([pdf2svg_path, input_pdf, output_svg], check=True)&#xA;        print(f"Converted: {pdf_file} -> {output_svg}")&#xA;    except FileNotFoundError:&#xA;        print(f"Error: Could not find {pdf2svg_path}. Make sure the path is correct.")&#xA;    except subprocess.CalledProcessError:&#xA;        print(f"Error: Conversion failed for {pdf_file}")&#xA;&#xA;if __name__ == "__main__":&#xA;    # Get list of PDF files in input directory&#xA;    pdf_files = [f for f in os.listdir(input_dir) if f.lower().endswith(".pdf")]&#xA;&#xA;    # Use multiprocessing to speed up conversion&#xA;    with multiprocessing.Pool(processes=multiprocessing.cpu_count()) as pool:&#xA;        pool.map(convert_pdf_to_svg, pdf_files)&#xA;&#xA;    print("All conversions completed!")&#xA;

    &#xA;

    Problem :

    &#xA;

    Now, I want to use these SVG images in FFmpeg to create a high-quality video file. However, FFmpeg does not support SVG files directly, and I have read that I must convert SVG files into PNG before using them in FFmpeg. The problem is that PNG images reduce quality, especially when zooming in, which is why I want to avoid converting to PNG.

    &#xA;

    Is there any way to use SVG files directly in FFmpeg or another method to convert them into a high-quality video while maintaining full resolution ? Any ideas or suggestions would be greatly appreciated !

    &#xA;