Recherche avancée

Médias (0)

Mot : - Tags -/latitude

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (66)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • 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 (12442)

  • Error while saving a matplotlib animation, missing 'dpi' argument

    27 septembre 2020, par aarcas

    I'm trying to save an animation of matplotlib.animation.AnimationFunc and I get an error saying 'dpi' argument missing. Obviously, I have the dpi set so I don't understand where this error comes from.

    



    I'm running python 3.6 and matplotlib 3.0.3, I also just installed ffmpeg from ubuntu official repositories (Ubuntu 18.04).

    



    This is the part of my code that should affect that, although I think it should be something of the system :

    



    Writer = writers['ffmpeg']
writer = Writer(fps=15, metadata=dict(artist='Me'), bitrate=1800,)
ani = FuncAnimation(fig, anime, interval=time_step *
                    10**3, frames=F, repeat=False,) 
ani.save('standard_map.mp4', writer=Writer, dpi=100)


    



    The errors is :

    



    with writer.saving(self._fig, filename, dpi):
File "/usr/lib/python3.6/contextlib.py", line 159, in helper
    return _GeneratorContextManager(func, args, kwds)
File "/usr/lib/python3.6/contextlib.py", line 60, in __init__
    self.gen = func(*args, **kwds) TypeError: saving() missing 1 required positional argument: 'dpi'


    



    I tried both adding the lines they suggested there and the error stills the same.

    



    plt.rcParams['animation.ffmpeg_path'] = '/usr/bin/ffmpeg'


    



    I also tried changing the writer to 'imagemagick' the one set on Ubuntu by default and the error persists.

    


  • compile own ffmpeg filter

    20 juin 2023, par lfk

    I'm trying compile my own ffmpeg filter using official tutorial. My filter uses C++ code. I made header file and adapted my C++ function definition for C. Now I'm trying compile with command make -j<libavfilter> ffmpeg</libavfilter>, but receiving an error message

    &#xA;

    &#xA;

    gcc -Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat&#xA;-Llibavresample -Llibavutil -Llibpostproc -Llibswscale -Llibswresample -Wl,—as-needed -Wl,-z,noexecstack -Wl,—warn-common -Wl,-rpath-link=libpostproc:libswresample:libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil:libavresample&#xA;-o ffmpeg_g fftools/ffmpeg_opt.o fftools/ffmpeg_filter.o fftools/ffmpeg_hw.o fftools/cmdutils.o fftools/ffmpeg.o -lavdevice&#xA;-lavfilter -lavformat -lavcodec -lswresample -lswscale -lavutil -lm -pthread -lm -lm -lz -pthread -lm -lz -lm -lm -pthread -lm libavfilter/libavfilter.a(vf_foobar.o) : In function `filter_frame' :&#xA;/home/joeyes/ffmpeg_sources/ffmpeg/libavfilter/vf_foobar.c:302 :&#xA;undefined reference to MyFunction.c&#xA;collect2 : ld returned 1 exit status&#xA;*** [ffmpeg_g] Error 1

    &#xA;

    &#xA;

    For compilation I added OBJS-$(CONFIG_FOOBAR_FILTER) &#x2B;= vf_foobar.o MyCode.o to /libavfilter/makefile

    &#xA;

    Also I put MyCode.h & MyCode.cpp to /libavfilter folder

    &#xA;

  • Xamarin Mac FFmpeg launch path not accessible

    25 mars 2024, par Tecnopresley

    I have a Xamarin Forms project with Mac support and I am trying to implement FFmpeg, so I have downloaded the Static build from its official page and added it as in the resources folder of the Mac project with the build action in Content, then I have created a service that will basically remove the audio from a video that I indicate in a path with a FFmpeg command, to do the service I have based on the following answer and I have adapted it to C # :&#xA;https://stackoverflow.com/a/37422688/8496520

    &#xA;

    The problem is that when I try to execute the command I get the following error :

    &#xA;

    "NSInvalidArgumentException: launch path not accessible"&#xA;

    &#xA;

    And I can't find out why this happens, I use the following code in the service (The error occurs when calling the Launch () method of the NSTask) :

    &#xA;

    public void ExecuteFFmpeg()&#xA;{&#xA;    try&#xA;    {&#xA;        var launchPath = NSBundle.MainBundle.PathForResource("ffmpeg", ofType: "");&#xA;        var compressTask = new NSTask();&#xA;        compressTask.LaunchPath = launchPath;&#xA;        compressTask.Arguments = new string[] {&#xA;            "-i",&#xA;            "downloads/test.mp4",&#xA;            "-c",&#xA;            "copy",&#xA;            "-an",&#xA;            "nosound.mp4" };&#xA;        compressTask.StandardInput = NSFileHandle.FromNullDevice();&#xA;        compressTask.Launch();&#xA;        compressTask.WaitUntilExit();&#xA;    }&#xA;    catch (Exception ex)&#xA;    {&#xA;&#xA;    }&#xA;

    &#xA;