Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (80)

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

  • 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.

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

Sur d’autres sites (9084)

  • Accord.Video.FFMPEG getting error for long video

    30 novembre 2022, par wahyu

    I use Accord.Video.FFMPEG to extract images every 10 frames from a video. Total frames for this video is 38194 frames. First run is good, I can save image every 10 frames but after run of about 38185 frames i got null return from this code Bitmap bmpBaseOriginal = vReader.ReadVideoFrame();, if I see in the video there is no problem at the end of video.

    


    I do something like this

    


    using (var vReader = new VideoFileReader())
{
    vReader.Open(files[0]);
    TotalFrame = vReader.FrameCount;
    countin = Convert.ToInt32(TotalFrame / Convert.ToDouble(countAsset));
    Fps = vReader.FrameRate.Value;                                
    int a = 0;
    for (int i = 0; i < vReader.FrameCount; i++)
    {
         if(i < vReader.FrameCount - 1)
         {
              Bitmap bmpBaseOriginal = vReader.ReadVideoFrame();
              if (i%10 == 0)
              {
                  a++;
                  bmpBaseOriginal.Save(string.Format("{0}\\{1}.jpeg", dirVideo.FullName, a), ImageFormat.Jpeg);
              }
              bmpBaseOriginal.Dispose();
         }
         else
         {
              a++;
              Bitmap bmpBaseOriginal = vReader.ReadVideoFrame();
              bmpBaseOriginal.Save(string.Format("{0}\\{1}.jpeg", dirVideo.FullName, a), ImageFormat.Jpeg);
              bmpBaseOriginal.Dispose();
         }
    }
    vReader.Close();
}


    


    this problem occurs again on another video if the video has a lot of frames, but no problem if the video has a less frames.

    


    How to solve it ?

    


  • Extract audio and video frames from a video [on hold]

    27 avril 2014, par zeitgeist

    I tried to extract video frames using Aforge FFMPEG. But it is quite slow and extracts video quailty is low. Also it doesn’t support audio functionality. So I need a library that would be extracting its audio and quality video frames.

    Below code is extracted video frames.

           VideoFileReader reader = new VideoFileReader();
           VideoFileWriter writer = new VideoFileWriter();
           reader.Open(@"D:\Ali\Videos\katy.mp4");
           writer.Open( @"D:\Ali\Videos\katy_.mp4", reader.Width, reader.Height, reader.FrameRate, VideoCodec.MPEG4 );
           Bitmap videoFrame;
           while((videoFrame = reader.ReadVideoFrame()) !=null )
           {
               writer.WriteVideoFrame(videoFrame);
               // dispose the frame when it is no longer required
               videoFrame.Dispose();
           }
  • Create muted video and black screen video with FFmpeg

    2 mars 2021, par user2685832

    I'm trying to use FFmpeg to generate the following from a local mp4 file :

    



      

    • A copy of the original video with no audio
    • 


    • A copy of the original video with audio but without visuals (a black screen instead). This file also needs to be in mp4 format.
    • 


    



    After reading through the documentation I am struggling to get the terminal commands right. To remove the audio I have tried this command without any success :

    



    ffmpeg -i file.mp4 -map 0:0 -map 0:2 -acodec copy -vcodec copy


    



    Could anyone guide me towards how to accomplish this ?