Recherche avancée

Médias (91)

Autres articles (112)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (11461)

  • avformat/hlsenc : optimize help message default value.

    5 juillet 2017, par Steven Liu
    avformat/hlsenc : optimize help message default value.
    

    show the hls_segment_type default always 0, show the flag name better

    Signed-off-by : Steven Liu <lq@chinaffmpeg.org>

    • [DH] libavformat/hlsenc.c
  • command line audio equalizer ffmpeg sox

    5 novembre 2016, par user1320370

    I need to add equalizer effect on some flac files :

    f=4043, 1.65q, g=9.5; f=7024, 1.09q, g=3.7; f=9254, 0.94q, g=-2.5

    I was tried ffmpeg :

    ffmpeg -i solovoce_compress.flac -af equalizer=f=4043:width_type=q:w=1.65:g=9.5, equalizer=f=7024:width_type=q:w=1.09:g=3.7,equalizer=f=9254:width_type=q:w=0.94:g=-2.5 solovoce_equalizzato.flac

    but the result is much different then what I expect, this values was calculated by izotope ozone (professional audio editor software) and tested.

    I used the equivalent with sox and the result is some.

    A this point I like to try ffmpeg ’anequalizer’ filter that show the graph so I can ’see’ the difference, but I the documentation to show the graph is not clear and I was not found nothing about on web.

    Someone can please send me an example of ’anequalizer’ with plot enabled ?

  • Matplotlib pipe canvas.draw() to ffmpeg - unexpected result [duplicate]

    31 juillet 2022, par Narusan

    I'm using this code from here to try and pipe multiple matplotlib plots into ffmpeg to write a video file :

    &#xA;

    import numpy as np&#xA;import matplotlib.pyplot as plt&#xA;import subprocess&#xA;&#xA;xlist = np.random.randint(100,size=100)&#xA;ylist = np.random.randint(100, size=100)&#xA;color = np.random.randint(2, size=100)&#xA;&#xA;f = plt.figure(figsize=(5,5), dpi = 300)&#xA;canvas_width, canvas_height = f.canvas.get_width_height()&#xA;ax = f.add_axes([0,0,1,1])&#xA;ax.axis(&#x27;off&#x27;)&#xA;&#xA;&#xA;# Open an ffmpeg process&#xA;outf = &#x27;ffmpeg.mp4&#x27;&#xA;cmdstring = (&#x27;ffmpeg&#x27;,&#xA;    &#x27;-y&#x27;, &#x27;-r&#x27;, &#x27;30&#x27;, # overwrite, 30fps&#xA;    &#x27;-s&#x27;, &#x27;%dx%d&#x27; % (canvas_width, canvas_height), # size of image string&#xA;    &#x27;-pix_fmt&#x27;, &#x27;argb&#x27;, # format&#xA;    &#x27;-f&#x27;, &#x27;rawvideo&#x27;,  &#x27;-i&#x27;, &#x27;-&#x27;, # tell ffmpeg to expect raw video from the pipe&#xA;    &#x27;-vcodec&#x27;, &#x27;mpeg4&#x27;, outf) # output encoding&#xA;p = subprocess.Popen(cmdstring, stdin=subprocess.PIPE)&#xA;&#xA;# Draw 1000 frames and write to the pipe&#xA;for frame in range(10):&#xA;    print("Working on frame")&#xA;    # draw the frame&#xA;    f = plt.figure(figsize=(5,5), dpi=300)&#xA;    ax = f.add_axes([0,0,1,1])&#xA;    ax.scatter(xlist, ylist,&#xA;               c=color, cmap = &#x27;viridis&#x27;)&#xA;    f.canvas.draw()&#xA;    plt.show()&#xA;&#xA;    # extract the image as an ARGB string&#xA;    string = f.canvas.tostring_argb()&#xA;    # write to pipe&#xA;    p.stdin.write(string)&#xA;&#xA;# Finish up&#xA;p.communicate()&#xA;

    &#xA;

    While plt.show() does show the correct plot (see image below), the video that ffmpeg creates is a bit different than what plt.show() shows. I am presuming the issue is with f.canvas.draw(), but I'm not sure how to get a look at what canvas.draw() actually plots.

    &#xA;

    plot.show() :&#xA;enter image description here

    &#xA;

    ffmpeg video (imgur link)

    &#xA;