Recherche avancée

Médias (91)

Autres articles (48)

  • MediaSPIP Player : les contrôles

    26 mai 2010, par

    Les contrôles à la souris du lecteur
    En plus des actions au click sur les boutons visibles de l’interface du lecteur, il est également possible d’effectuer d’autres actions grâce à la souris : Click : en cliquant sur la vidéo ou sur le logo du son, celui ci se mettra en lecture ou en pause en fonction de son état actuel ; Molette (roulement) : en plaçant la souris sur l’espace utilisé par le média (hover), la molette de la souris n’exerce plus l’effet habituel de scroll de la page, mais diminue ou (...)

  • L’agrémenter visuellement

    10 avril 2011

    MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
    Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté.

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (5254)

  • libavdevice/gdigrab : fix ffmpeg -devices doesn't show gdigrab

    17 mai 2019, par Jun Zhao
    libavdevice/gdigrab : fix ffmpeg -devices doesn't show gdigrab
    

    missed the category AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT lead to
    ffmpeg -devices doesn't show gdigrab as a input device

    FIx #7848

    Found-by : dangibson
    Reviewed-by : Paul B Mahol <onemda@gmail.com>
    Signed-off-by : Jun Zhao <barryjzhao@tencent.com>

    • [DH] libavdevice/gdigrab.c
  • How can I get my saved mp4 to exactly match the output of plot.show() ?

    10 mai 2019, par Jimmy

    When I try to save the results of an animation to mp4 using ffmpeg, I am getting a jumbled mess.

    plt.show() shows exactly what I want it to show in the animation. However, when I save it using ffmpeg, the result is very different from what plt.show() returns. I have tried various arguments for fps etc. but nothing has helped.

    %matplotlib
    import pandas as pd
    import matplotlib as mpl ## uncomment this if you are running this on a Mac
    #mpl.use('TkAgg')         ## and want to use blit=True
    import matplotlib.pyplot as plt
    import matplotlib.animation as animation
    import numpy as np
    import csv

    people = ('','Jim', 'Dan')
    plt.rcdefaults()
    fig, ax = plt.subplots()
    y_pos = np.arange(len(people))

    ax.set_xlim(0,10)
    ax.set_yticks(y_pos)
    ax.set_yticklabels(people)
    ax.invert_yaxis()
    ax.set_xlabel('Skill')
    titleList=['Basketball','Hockey','Baseball']
    df=[[0,5,7],[0,4,9],[0,2,6]]
    def animate(i):
      # Example data
       while i&lt;3:
           ax.set_yticks(y_pos)
           ax.set_yticklabels(people)
           ax.set_xlabel(titleList[i])
           performance=df[i]

           title = ax.text(0.5,0.95,str(titleList[i]), bbox={'facecolor':'w', 'alpha':0.5, 'pad':5},transform=ax.transAxes, ha="center")

           rects = ax.barh(y_pos, performance, align='center',
                   color='blue', ecolor='None')
           return [rect for rect in rects] + [title]


    ani = animation.FuncAnimation(fig,animate, frames=3, blit=True
                               ,interval=2000,repeat=False)

    plt.rcParams['animation.ffmpeg_path'] = 'C:\\ffmpeg\\bin\\ffmpeg.exe'
    Writer = animation.writers['ffmpeg']
    ani.save('test.mp4')
    plt.show()

    The result is a very fast video where all the data gets written over (similar to the plt.show() results when blit=False).

  • List Directory of files to text file sorted by creation date but don't show creation creation date in file

    25 mars 2019, par Oli Shingfield

    I’ve been doing some research on this problem but I can’t get my head around it to suit my particular issue.

    I would like to create a text file of a list of files in a directory, sorted by date but I don’t want the date to be shown in the file.
    The code I have so far is :

    #create list of clips to merge
    save_path = 'downloads/'
    ignored = 'test.bat','mergeclips.bat','draw.bat'
    onlyfiles = [f for f in listdir('downloads/') if isfile(join('downloads/', f)) if f not in ignored]

    with open('downloads/clipstomerge.txt', 'w') as f:
       for item in onlyfiles:
           f.write("file '%s'\n" % item )

    This code ignores the bat files but lists everything else out to a text file in a format ready for ffmpeg to merge the clips. The format of the text file looks like this :

    file 'ARandomClipName.mov'
    file 'Butterflies.mov'
    file 'Chickens.mov'

    At the moment the files are sorted alphabetically but I would like it to be sorted by creation date.
    Does anyone have any ideas how I could modify my code to fix my problem ?