Recherche avancée

Médias (91)

Autres articles (89)

  • Qu’est ce qu’un masque de formulaire

    13 juin 2013, par

    Un masque de formulaire consiste en la personnalisation du formulaire de mise en ligne des médias, rubriques, actualités, éditoriaux et liens vers des sites.
    Chaque formulaire de publication d’objet peut donc être personnalisé.
    Pour accéder à la personnalisation des champs de formulaires, il est nécessaire d’aller dans l’administration de votre MediaSPIP puis de sélectionner "Configuration des masques de formulaires".
    Sélectionnez ensuite le formulaire à modifier en cliquant sur sont type d’objet. (...)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 is the first MediaSPIP stable release.
    Its official release date is June 21, 2013 and is announced here.
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (8756)

  • avcodec/bitstream : Remove outdated comment

    29 août 2020, par Andreas Rheinhardt
    avcodec/bitstream : Remove outdated comment
    

    The comment referred to the INIT_VLC_USE_STATIC flag which has been
    removed in 2009 in 595324e143b57a52e2329eb47b84395c70f93087 ; the
    function it referred to was removed even earlier in commit
    83422c1940d963d395a64bee0cbb9c637192ce8c in 2008.

    Reviewed-by : Paul B Mahol <onemda@gmail.com>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavcodec/bitstream.c
  • Use fluent-ffmpeg to tell if a file is a video or audio

    8 mai 2021, par afterglowlee

    I am using node-fluent-ffmpeg module in NodeJS. It is very good that fluent-ffmpeg provides functions to get the metadata of a video and audio file.

    &#xA;&#xA;

    https://github.com/schaermu/node-fluent-ffmpeg#reading-video-metadata

    &#xA;&#xA;

    I have tried on Mac OS to use the "resolution" attribute in the metadata to tell if a file is audio only or video, i.e. if both resolution.w and resolution.h are 0, then this file is an audio. This work fine on Mac OS. But some strange things happened that this doesn't work on Windows platform (I have tried Windows 7 64bit and Windows 2008) using the latest ffmpeg. Even though I put a .mp3 file through fluent-ffmpeg,the result looks something like this :

    &#xA;&#xA;

    video:&#xA;{&#xA;  container:&#x27;mp3&#x27;,&#xA;  ...&#xA;  resolution: {w:300,h:300},&#xA;  resolutionSquare: {w:300,h:300},&#xA;  aspectString: &#x27;1:1&#x27;,&#xA;  ...&#xA;}&#xA;audio:&#xA;{&#xA;  codec:&#x27;mp3&#x27;,&#xA;  bitrate:64,&#xA;  sample_rate:44100,&#xA;  stream:0,&#xA;  channels:1&#xA;}&#xA;

    &#xA;&#xA;

    I am not why there is a "resolution" since it is a pure audio file. So is there any solid way to find out if the file is audio only or video from the metadata ? Or should I use ffmpeg commandline to find it out ?

    &#xA;

  • Animated line chart with pandas, matplotlib and ffmpeg

    10 avril 2020, par Mark K

    In producing an animated line chart, I have below data and codes.

    &#xA;&#xA;

    But when the chart produced, it shows no line. What did I do wrong ?

    &#xA;&#xA;

    Thank you.

    &#xA;&#xA;

    import numpy as np&#xA;import pandas as pd&#xA;import seaborn as sns&#xA;import matplotlib&#xA;import matplotlib.pyplot as plt&#xA;import matplotlib.animation as animation&#xA;&#xA;title = &#x27;Heroin Overdoses&#x27;&#xA;&#xA;data = {&#x27;Year&#x27; : ["1999","2000","2001","2002","2003","2004","2005","2006","2007","2008","2009","2010","2011","2012","2013","2014","2015","2016"], &#xA;&#x27;Heroin Overdoses&#x27; : [280,443,413,486,475,148,197,170,448,103,137,160,483,356,352,300,466,278]}&#xA;overdose = pd.DataFrame(data)&#xA;&#xA;Writer = animation.writers[&#x27;ffmpeg&#x27;]&#xA;writer = Writer(fps=20, metadata=dict(artist=&#x27;Me&#x27;), bitrate=1800)&#xA;&#xA;fig = plt.figure(figsize=(10,6))&#xA;plt.xlim(1999, 2016)&#xA;plt.ylim(np.min(overdose)[0], np.max(overdose)[0])&#xA;plt.xlabel(&#x27;Year&#x27;,fontsize=20)&#xA;plt.ylabel(title,fontsize=20)&#xA;plt.title(&#x27;Heroin Overdoses per Year&#x27;,fontsize=20)&#xA;&#xA;def animate(i):&#xA;    data = overdose.iloc[:int(i&#x2B;1)] #select data range&#xA;    p = sns.lineplot(x=data.index, y=data[title], data=data, color="r")&#xA;    p.tick_params(labelsize=17)&#xA;    plt.setp(p.lines,linewidth=7)&#xA;&#xA;ani = matplotlib.animation.FuncAnimation(fig, animate, frames=17, repeat=True)&#xA;&#xA;ani.save(&#x27;C:\\folder\\line chart.mp4&#x27;, writer=writer)&#xA;

    &#xA;