Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (73)

  • 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 (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • 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 (...)

Sur d’autres sites (8139)

  • Possible Duplicate : Batch convert all files in folder and sub folder using FFMpeg with different output folder

    8 janvier 2020, par Cecila Tarjon

    I know that the part of this is a duplicate to How would I write a batch file to run an ffmpeg command on an entire directory ? and How do you convert an entire directory with ffmpeg ?.

    I am currently using the command prompt to navigate to the directory in question and then running the command line

    for %i in (*.mkv) do c:\ffmpeg\bin\ffmpeg -i "%i" -c copy -map 0 %userprofile%\documents\Plex\mp4\%~ni.mp4"

    I would like to be able to run this on a higher level (ie %userprofiles%\Plex\MKV instead of ...\mkv\show\season) and have it run on all sub folders. I would also ideally like for it to output to the mp4\show\season level for the same place it get them from.

    Any advice ?

    Note : this is for remuxing to MP4 so I can use it on my Roku as well as from my Plex. Once I know it will work in a regular command window I will be converting it to a batch file so i can run as needed.

  • Mangled output when printing strings from FFProbe STDERR

    9 février 2018, par spikespaz

    I’m trying to make a simple function to wrap around FFProbe, and most of the data can be retrieved correctly.

    The problem is when actually printing the strings to the command line using both Windows Command Prompt and Git Bash for Windows, the output appears mangled and out of order.

    Some songs (specifically the file Imagine Dragons - Hit Parade_ Best of the Dance Music Charts\80 - Beazz - Lime (Extended Mix).flac) are missing metadata. I don’t know why, but the dictionary the function below returns is empty.

    FFProbe outputs its results to stderr which can be piped to subprocess.PIPE, decoded, and parsed. I chose regex for the parsing bit.

    This is a slimmed down version of my code below, for the output take a look at the Github gist.

    #! /usr/bin/env python3
    # -*- coding: utf-8 -*-

    import os

    from glob import glob
    from re import findall, MULTILINE
    from subprocess import Popen, PIPE


    def glob_from(path, ext):
       """Return glob from a directory."""
       working_dir = os.getcwd()
       os.chdir(path)

       file_paths = glob("**/*." + ext)

       os.chdir(working_dir)

       return file_paths


    def media_metadata(file_path):
       """Use FFPROBE to get information about a media file."""
       stderr = Popen(("ffprobe", file_path), shell=True, stderr=PIPE).communicate()[1].decode()

       metadata = {}

       for match in findall(r"(\w+)\s+:\s(.+)$", stderr, MULTILINE):
           metadata[match[0].lower()] = match[1]

       return metadata


    if __name__ == "__main__":
       base = "C:/Users/spike/Music/Deezloader"

       for file in glob_from(base, "flac"):
           meta = media_metadata(os.path.join(base, file))
           title_length = meta.get("title", file) + " - " + meta.get("length", "000")

           print(title_length)

    Output Gist
    Output Raw

    I don’t understand why the output (the strings can be retrieved from the regex pattern effectively, however the output is strangely formatted when printing) appears disordered only when printing to the console using python’s print function. It doesn’t matter how I build the string to print, concatenation, comma-delimited arguments, whatever.

    I end up with the length of the song first, and the song name second but without space between the two. The dash is hanging off the end for some reason. Based on the print statement in the code before, the format should be Title - 000 ({title} - {length}) but the output looks more like 000Title -. Why ?

  • FFMpeg is writing a matplotlib animation with diminishing quality

    3 mars 2017, par Bryan Stafford

    I am trying to create a bunch of animations that follow the paths National Hockey League teams travel during the current season. Currently, my animation looks like this.

    As you can see, the animation begins decently sharp but within 2 seconds the quality bottoms out and everything is grainy.

    The relevant code is this :

    ani = animation.FuncAnimation(fig, update, frames=len(all_x + 20),
                                 interval=75, repeat=False)
    filepath =  map_team + '.mp4'
    ani.save(filepath, writer='ffmpeg', fps=30)
    plt.tight_layout()
    plt.show()

    I have chosen FFMpeg as my writer because I hope to put about 30 graphics online and the MP4 format keeps each file around 1.5MB. If there’s a way to keep the graphics sharp, with low file sizes, and able to be uploaded onto Imgur, I would love to do that with my project.

    Thanks.