Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (108)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Qualité du média après traitement

    21 juin 2013, par

    Le bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
    Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...)

  • Changer son thème graphique

    22 février 2011, par

    Le thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
    Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
    Modifier le thème graphique utilisé
    Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
    Il suffit ensuite de se rendre dans l’espace de configuration du (...)

Sur d’autres sites (5619)

  • Recursively converting all files in folder using FFMpeg and placing them in different output folder

    10 janvier 2020, par Cecila Tarjon

    I want to remux some videos to MP4 so that I can play them on my Roku as well as my Plex. I have reviewed the approaches suggested in the answers to the questions
    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 ?, but this doesn’t quite solve my problem.

    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 from a higher level (i.e., %userprofiles%\Documents\Plex\MKV instead of ...\mkv\show\season) and have it run on all subfolders.

    I would also ideally like for it to output to the mp4\show\season level for the same place it gets them from.

    How can I accomplish this ?

    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.

  • 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 ?