Recherche avancée

Médias (0)

Mot : - Tags -/masques

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

Autres articles (111)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (7059)

  • Why do my Windows filenames keep getting converted in Python ?

    13 avril 2024, par GeneralTully

    I'm running a script that walks through a large library of .flac music, making a mirror library with the same structure but converted to .opus. I'm doing this on Windows 11, so I believe the source filenames are all in UTF-16. The script calls FFMPEG to do the converting.

    


    For some reason, uncommon characters keep getting converted to different but similar characters when the script runs, for example :

    


    06 xXXi_wud_nvrstøp_ÜXXx.flac

    


    gets converted to :

    


    06 xXXi_wud_nvrstøp_ÜXXx.opus

    


    They look almost identical, but the Ü and I believe also the ø are technically slightly different characters before and after the conversion.

    


    The function which calls FFMPEG for the conversion looks like this :

    


    def convert_file(pool, top, file):
    fullPath = os.path.join(top, file)
    # Pass count=1 to str.replace() just in case .flac is in the song
    # title or something.
    newPath = fullPath.replace(src_dir, dest_dir, 1)
    newPath = newPath.replace(".flac", ".opus", 1)

    if os.path.isfile(newPath):
        return None
    else:
        print("{} does not exist".format(newPath))
   
        cvt = [
            "Ffmpeg", "-v", "debug", "-i", fullPath, "-c:a", "libopus", "-b:a", "96k", newPath]
        print(cvt)

        return (
            fullPath,
            pool.apply_async(subprocess.run, kwds={
                "args": cvt,
                "check": True,
                "stdin": subprocess.DEVNULL}))


    


    The arguments are being supplied by os.walk with no special parameters.

    


    Given that the script is comparing filenames to check if a conversion needs to happen, and the filenames keep getting changed, it keeps destroying and recreating the same files every time the script runs.

    


    Why might this be happening ?

    


  • how to set frame delay when use ffmpeg to convert images to gif

    24 juin 2021, par yang

    I want to convert image sequence to gif and I want each frame to last for a certain amount of time, but I couldn't find an example of how to do this.

    



    I know this basic command works

    



    ffmpeg -y -i %0d_Frame.jpg output.gif

    



    but how can I let each frame stay for 1 second ?

    


  • FFmpeg merge images to a video

    11 août 2016, par John Doe 2

    How can I create a mpg/mp4 file from let’s say 10 images using ffmpeg.

    Each image shall stay for 5 minutes, after the 5 minutes are over the next image shall appear and so on....

    How can I achieve this ?