Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

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

Autres articles (99)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    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 (...)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

Sur d’autres sites (10134)

  • NReco.VideoConverter.ConvertLiveMedia

    12 décembre 2022, par Psychosocial

    I get an exception when trying to write a raw image to ConvertLiveMedia :

    


    


    System.IO.IOException : "Канал был закрыт.

    


    System.IO.IOException : "The channel has been closed."

    


    


    var ffMpeg = new NReco.VideoConverter.FFMpegConverter();
var frame = Bitmap.FromFile("source.jpg");
var bytes = ImageToByte(frame);

using (var fs = new FileStream("output.mp4", FileMode.Create))
{
    var mediaTask = ffMpeg.ConvertLiveMedia(Format.raw_video, fs, Format.mp4, new ConvertSettings()
    {                    
    });
    
    mediaTask.Start();

    for (int f = 0; f < frames; f++)
    {
        mediaTask.Write(bytes, 0, bytes.Length);  //exception here channel was closed
    }
    mediaTask.Stop();
}


    


  • [FFmpeg on Windows] : help me converting a set of .png files to a video file

    31 octobre 2016, par Stefano Fedele

    Hi everybody I am on windows 10, I installed FFMpeg and I would like to use it to convert 100 .png image files into a video file.

    I am using it via the prompt, which is the Windows console, and I am struggling with the syntax (which probability comes from Linux). I set the folder in which ffmpeg.exe is contained as a windows system path as suggested on many websites and I moved the prompt to the folders in which the image files are contained which is reported here :

    cd C:\video\pnts + ag 40 nm- during-tmpyp 10-12- laser power 7mw- kinetic100- exposure time 1s- gain

    I would like to convert the image files contained in this folder into a video file, the names of those image files are reported here :

    pnts + ag 40 nm- during-tmpyp 10-12- laser power 7mw- kinetic100- exposure time 1s- gain 20 001.png

    pnts + ag 40 nm- during-tmpyp 10-12- laser power 7mw- kinetic100- exposure time 1s- gain 20 002.png

    ...

    ...

    pnts + ag 40 nm- during-tmpyp 10-12- laser power 7mw- kinetic100- exposure time 1s- gain 20 100.png

    The number of frames per second whould be 2.

    I read on internet that I should have to type something like this

    ffmpeg -i image-%03d.png video.webm

    But it looks like there are a lot of variables to consider and all the times I try to set them and run FFmpeg I get an error from the prompt.
    Is there anyone who could suggest me the proper syntax, please ?

  • Get RGB values from AVPicture and change to grey-scale in FFMPEG

    22 octobre 2014, par user2742299

    The main motive of my code is to change the RGB values from the AVPicture in FFMPEG.

    I have been able to get the image data "data[0]" by following the article : http://blog.tomaka17.com/2012/03/libavcodeclibavformat-tutorial/

    I would like to know that how can I access the 3 bytes of pic.data[0] which is in RGB format. I have been trying to access the pic.data[i][j] via for-loop in 2D matrix fashion but jth element>3.

    Any guidance in this regard will be helpful.

    Code is here :

    AVPicture pic;
           avpicture_alloc(&pic, PIX_FMT_RGB24, mpAVFrameInput->width,mpAVFrameInput->height);
           auto ctxt = sws_getContext(mpAVFrameInput->width,mpAVFrameInput->height,static_cast<pixelformat>(mpAVFrameInput->format),
               mpAVFrameInput->width, mpAVFrameInput->height, PIX_FMT_RGB24, SWS_BILINEAR, nullptr, nullptr, nullptr);

           if (ctxt == nullptr)
               throw std::runtime_error("Error while calling sws_getContext");
           sws_scale(ctxt, mpAVFrameInput->data, mpAVFrameInput->linesize, 0, mpAVFrameInput->height, pic.data,
               pic.linesize);


       for (int i = 0; i &lt; (mpAVFrameInput->height-1); i++) {

           for (int j = 0;  j &lt; (mpAVFrameInput->width-1); j++) {
           printf("\n value: %d",pic.data[0][j]);

           }

       }
    </pixelformat>

    Pseudo code which is in my mind is :

    For each pixel in image {
    Red = pic.data[i][j].pixel.RED;
    Green = pic.data[i][j].pixel.GREEN;
    Blue = pic.data[i][j].pixel.BLUE;
    GRAY = (Red+Green+Blue)/3;
    Red = GRAY;
    Green = GRAY;
    Blue = GRAY;
    Save Frame;}

    I am quite new to FFMPEG therefore any guidance and help will be highly appreciable.

    Many Thanks