Recherche avancée

Médias (1)

Mot : - Tags -/biomaping

Autres articles (82)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

Sur d’autres sites (9967)

  • Saving Animated Matplotlib Chart to GIF

    29 mai 2020, par Jonathan Bechtel

    I have an animated matplotlib chart that I'm trying to save to a .gif file, but I can't get my image writer to work.

    



    I've installed imagemagick and verified that it works on my computer via the instructions given on its installation page, but when I do this :

    



    anim.save('gd.gif', writer='imagemagick')


    



    I get the following error message :

    



    MovieWriter imagemagick unavailable. Trying to use pillow instead.


    



    However, doing anim.save('gd.gif', writer='pillow') gives the following error message :

    



    ValueError: not enough image data


    



    I tried installing ffmpeg with the command conda install -c conda-forge ffmpeg. It looked like it installed correctly, but I don't know how to bind it to matplotlib apparently.

    



    Specifying the writer as ffmpeg gives the same error message that I encountered with imagemagick.

    



    I also tried adding imagemagick's path to matplotlib's config file path with the following line :

    



    animation.convert_path: 'C:\Program Files\ImageMagick-7.0.8-Q16\magick.exe'


    



    That was suggested in this question.

    



    None of these seemed to have worked though.

    



    I'm on Windows 10, and am using Python 3.7

    


  • how to resolve Accord.Video.FFMPEG error Rational is defined in an assembly that is not referenced

    18 janvier 2023, par HighwayRob

    I have developed a visual studio c# Windows app that I want to use Accord.Video.FFMPEG.DLL to merge JPGs into a video file.

    


    I added the reference to the DLL and the following code :
enter image description here

    


     using Accord.Video.FFMPEG;

private void videoTestBttn_Click(object sender, EventArgs e)
{
    int width = 320;
    int height = 240;
    Bitmap bitmap;

    // create instance of video writer
    VideoFileWriter writer = new VideoFileWriter();
    // create new video file
    writer.Open("c:\\test.avi", width, height, 25, VideoCodec.MPEG4);
    // create a bitmap to save into the video file
    Bitmap image = new Bitmap(width, height, PixelFormat.Format24bppRgb);
    // write 1000 video frames
    for (int i = 0; i < 100; i++)
    {
        image.SetPixel(i % width, i % height, Color.Red);
        bitmap = new Bitmap(ffiles[i, 0].ToString());
        writer.WriteVideoFrame(bitmap);
        bitmap.Dispose();
    }
    writer.Close();

}


    


    I get the following error in the build on the 'writer.Open' line of code :

    


    Error CS0012 The type 'Rational' is defined in an assembly that is not referenced. You must add a reference to assembly 'Accord, Version=3.8.0.0, Culture=neutral, PublicKeyToken=fa1a88e29555ccf7'.

    


    Downloaded DLL from https://nuget.info/packages/Accord.Video.FFMPEG/3.8.2-alpha

    


    How and where to I add this reference ?
Looking forward to some assistance !

    


  • Error while transcoding video from one format to another

    24 octobre 2019, par MalTec

    I am using xuggler API to transcode Video from one format to another.

    Following the example, provided by

    http://wiki.xuggle.com/MediaTool_Introduction & http://www.javacodegeeks.com/2011/02/xuggler-tutorial-transcoding-media.html

    public void convertVideo() {

    String sourceUrl = getResourceDirectory() + "/in/AV36_1.AVI";
    String destUrl = getResourceDirectory() + "/out/output.mp4";

    IMediaReader reader = ToolFactory.makeReader(sourceUrl);

    // add a viewer to the reader, to see progress as the media is
    // transcoded
    reader.addListener(ToolFactory.makeViewer(true));

    // create a writer which receives the decoded media from
    // reader, encodes it and writes it out to the specified file
    IMediaWriter writer = ToolFactory.makeWriter(destUrl, reader);

    // add a debug listener to the writer to see media writer events
    writer.addListener(ToolFactory.makeDebugListener());


    ////
    ////       // create the media writer
    reader.addListener(ToolFactory.makeWriter(destUrl, reader));

    // read packets from the source file, which dispatch events to the
    // writer, this will continue until


    while (reader.readPacket() == null)
     do {} while (false);
    }

    Provides Could Not Open Exception :

     Exception in thread "main" java.lang.RuntimeException: could not open: D:\Malhar\project_works\VideoConvertter/resources/in/AV36_1.AVI
       at com.xuggle.mediatool.MediaReader.open(MediaReader.java:637)
       at com.xuggle.mediatool.MediaReader.readPacket(MediaReader.java:434)
       at util.VideoEncoder.convertVideo(VideoEncoder.java:38)
       at ConvertVideo.main(ConvertVideo.java:12)

    Have tried with different file to.. But, the result is same.