Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (72)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

Sur d’autres sites (6854)

  • How to get a online video's duration without downloading the full video ?

    8 février 2017, par David Zhuang

    To get a video’s duration and resolution, I’ve got this function :

    def getvideosize(url, verbose=False):
    try:
       if url.startswith('http:') or url.startswith('https:'):
           ffprobe_command = ['ffprobe', '-icy', '0', '-loglevel', 'repeat+warning' if verbose else 'repeat+error', '-print_format', 'json', '-select_streams', 'v', '-show_streams', '-timeout', '60000000', '-user-agent', BILIGRAB_UA, url]
       else:
           ffprobe_command = ['ffprobe', '-loglevel', 'repeat+warning' if verbose else 'repeat+error', '-print_format', 'json', '-select_streams', 'v', '-show_streams', url]
       logcommand(ffprobe_command)
       ffprobe_process = subprocess.Popen(ffprobe_command, stdout=subprocess.PIPE)
       try:
           ffprobe_output = json.loads(ffprobe_process.communicate()[0].decode('utf-8', 'replace'))
       except KeyboardInterrupt:
           logging.warning('Cancelling getting video size, press Ctrl-C again to terminate.')
           ffprobe_process.terminate()
           return 0, 0
       width, height, widthxheight, duration = 0, 0, 0, 0
       for stream in dict.get(ffprobe_output, 'streams') or []:
           if dict.get(stream, 'duration') > duration:
               duration = dict.get(stream, 'duration')
           if dict.get(stream, 'width')*dict.get(stream, 'height') > widthxheight:
               width, height = dict.get(stream, 'width'), dict.get(stream, 'height')
       if duration == 0:
           duration = 1800
       return [[int(width), int(height)], int(float(duration))+1]
    except Exception as e:
       logorraise(e)
       return [[0, 0], 0]

    But some online videos comes without duration tag. Can we do something to get its duration ?

  • How to get a online video's duration without downloading the full video ?

    16 février 2018, par David Zhuang

    To get a video’s duration and resolution, I’ve got this function :

    def getvideosize(url, verbose=False):
    try:
       if url.startswith('http:') or url.startswith('https:'):
           ffprobe_command = ['ffprobe', '-icy', '0', '-loglevel', 'repeat+warning' if verbose else 'repeat+error', '-print_format', 'json', '-select_streams', 'v', '-show_streams', '-timeout', '60000000', '-user-agent', BILIGRAB_UA, url]
       else:
           ffprobe_command = ['ffprobe', '-loglevel', 'repeat+warning' if verbose else 'repeat+error', '-print_format', 'json', '-select_streams', 'v', '-show_streams', url]
       logcommand(ffprobe_command)
       ffprobe_process = subprocess.Popen(ffprobe_command, stdout=subprocess.PIPE)
       try:
           ffprobe_output = json.loads(ffprobe_process.communicate()[0].decode('utf-8', 'replace'))
       except KeyboardInterrupt:
           logging.warning('Cancelling getting video size, press Ctrl-C again to terminate.')
           ffprobe_process.terminate()
           return 0, 0
       width, height, widthxheight, duration = 0, 0, 0, 0
       for stream in dict.get(ffprobe_output, 'streams') or []:
           if dict.get(stream, 'duration') > duration:
               duration = dict.get(stream, 'duration')
           if dict.get(stream, 'width')*dict.get(stream, 'height') > widthxheight:
               width, height = dict.get(stream, 'width'), dict.get(stream, 'height')
       if duration == 0:
           duration = 1800
       return [[int(width), int(height)], int(float(duration))+1]
    except Exception as e:
       logorraise(e)
       return [[0, 0], 0]

    But some online videos comes without duration tag. Can we do something to get its duration ?

  • Anomalie #3407 (Fermé) : La colonne "extension" est vide concernant certaine url distante

    4 juin 2015, par marcimat ☺☮☯♫

    A priori c’est bon maintenant.