Recherche avancée

Médias (0)

Mot : - Tags -/optimisation

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

Autres articles (85)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

Sur d’autres sites (10362)

  • Adding background music that fades out with ffmpeg

    15 septembre 2019, par malbolge

    I have a piece of video that is 30fps and simply want to add overlay faint background music starting at 10 seconds. Then I want it to fade out during the last 15 seconds. I can’t find any good examples of this other than weird hacks.

    ffmpeg -i main.mp4 -i outro.mp3 -t 10 \
     -filter_complex "[a0][1:a]acrossfade=d=15[a];weight1:0.5" \
     -map '[v]' -map '[a]' out.mp4

    I get bad arguments in the filter_complex. Somethings off right there. in terms of the duration. Any help is greatly appreciated !!

  • How to start music at a specific time

    16 mars 2019, par INeed ADollar

    I want to start a song file at a specific time with ffmpeg in python and I don’t know if this is possible. I make a discord bot and I want to make a command about this. Thank you for any help !

  • How to overwrite file with ffmpeg when opened with pygame.mixer.music

    11 février 2015, par Lewistrick

    I have this interesting situation in which I want to convert a lot of audio fragments using ffmpeg via subprocess.check_call() and then play them using pygame.mixer.music.play().
    But because there would be a lot of small files when converting all of them, I want to overwrite the file every time, calling it tmp.wav.

    Converting goes as follows :

    outfilename = "tmp.wav"
    proc_args  = ["ffmpeg"]
    proc_args += ["-ss", str(begin / 1000)]
    proc_args += ["-i", os.path.join(audiodir, infilename)]
    proc_args += ["-to", str(duration / 1000)]
    proc_args += ["-ar", str(AUDIORATE)] # sample frequency (audio rate)
    proc_args += ["-y"]
    proc_args += [outfilename]
    DEVNULL = open(os.devnull, 'wb')
    try:
       subprocess.check_call(proc_args, stdout = DEVNULL, stderr = DEVNULL)
       # print "Converting audio succeeded."
    except subprocess.CalledProcessError as e:
       print "Converting audio failed."
       return 0.

    Playing goes as follows :

    pygame.mixer.music.load(outfilename)
    pygame.mixer.music.play()

    Now, a problem arises. The first file is converted and played correctly. But when skipping to the next file, tmp.wav can’t be overwritten. I think this is due to the fact that the file is still opened in the music module, but that doesn’t say how to close the file. I already tried pygame.mixer.music.stop(), pygame.mixer.quit() and pygame.mixer.stop() before converting the new file, but none of them works.

    How do I solve this problem ?