Recherche avancée

Médias (3)

Mot : - Tags -/collection

Autres articles (58)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

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

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

Sur d’autres sites (11181)

  • avformat/mov : Handle when we have an mfra box but have not read the full sidx for...

    15 mars 2021, par Derek Buitenhuis
    avformat/mov : Handle when we have an mfra box but have not read the full sidx for a fragment
    

    Use the tfra timestamp if it is available and sidx timestamp is not.

    Fixes reading the entire file after seeking in a live-style DASH FMP4
    with an MFRA.

    This specifically fixes when use_mfra_for is set.

    Signed-off-by : Derek Buitenhuis <derek.buitenhuis@gmail.com>

    • [DH] libavformat/mov.c
  • Recording of Full HD 60 FPS videos in C#

    17 mars 2021, par Alexander Naumov

    My application works with a high-speed camera. I am trying to record a videofile using C#.

    &#xA;

    The task is pretty "simple" : to record the video from the camera. We need to record medium (higher-better) quality videos to save as many details as possible.

    &#xA;

      &#xA;
    • Resolution : 1920 x 1080 (FullHD)
    • &#xA;

    • Frames per second (FPS) : 60
    • &#xA;

    • Bitrate : I've started from 10000*1000 (but now I don't know)
    • &#xA;

    • Mediacontainer : MP4, AVI (does not really matter, we just need to&#xA;solve our task)
    • &#xA;

    • Codec : also does not matter, we just need speed and quality.
    • &#xA;

    • Maximum size of videofile : 10 GB/hour
    • &#xA;

    &#xA;

    Framerate of the camera can be changed during the recording by the camera itself (not by user), so it's necessary to have something like timestamps for every frame or anything else.

    &#xA;

    The problem is not fast enough recording.&#xA;Example : using AForge libs, generated pictures ("white" noise), duration of test videos is 20 seconds.

    &#xA;

    Duration of video creating using different codecs (provided by AForge) :

    &#xA;

      &#xA;
    • Codec : MPEG4, Time : 33,703
    • &#xA;

    • Codec : WMV1, Time : 45,338
    • &#xA;

    • Codec : WMV2, Time : 45,530
    • &#xA;

    • Codec : MSMPEG4v2, Time : 43,775
    • &#xA;

    • Codec : MSMPEG4v3, Time : 44,390
    • &#xA;

    • Codec : H263P, Time : 38,894
    • &#xA;

    • Codec : FLV1, Time : 39,151
    • &#xA;

    • Codec : MPEG2, Time : 35,561
    • &#xA;

    • Codec : Raw, Time : 61,456
    • &#xA;

    &#xA;

    Another libs we've tried is not satisfied us.&#xA;Accord.FFMPEG is slow because of strange inner exceptions.&#xA;EmguCV.FFMPEG has no timestamps, therefore it creates corrupted video.

    &#xA;

    Recording the video to the SSD drive did not give us any visible acceleration.

    &#xA;

    Google search gives no clear examples or modern solutions to solve this task. That's the main reason to write here.

    &#xA;

    There is a code sample of our test :

    &#xA;

    private static void AForge_test()&#xA;    {&#xA;        Console.WriteLine("AForge test started...");&#xA;        unsafe&#xA;        {&#xA;            Stopwatch watch = new Stopwatch();&#xA;&#xA;            Console.WriteLine("FPS: {0}, W:{1}, H:{2}, T:{3}", fps, w, h, time);&#xA;&#xA;            AForge.Video.FFMPEG.VideoCodec[] codecs = (AForge.Video.FFMPEG.VideoCodec[]) Enum.GetValues(typeof(AForge.Video.FFMPEG.VideoCodec));&#xA;&#xA;            for(int k = 0; k &lt; codecs.Length; k&#x2B;&#x2B;)&#xA;            {&#xA;              /*  if (codecs[k] != VideoCodec.MPEG4)&#xA;                    continue;*/&#xA;                try&#xA;                {&#xA;                    watch.Restart();&#xA;&#xA;                    Random r2 = new Random(200);&#xA;                    AForge.Video.FFMPEG.VideoFileWriter vw = new AForge.Video.FFMPEG.VideoFileWriter();&#xA;                    string name = String.Format("E:\\VideosHDD\\AForge_test_{0}_mid.avi", Enum.GetName(typeof(AForge.Video.FFMPEG.VideoCodec), codecs[k]));&#xA;                    vw.Open(name, w, h, fps, codecs[k], 10000 * 1000);&#xA;&#xA;                    for (int i = 0; i &lt; frames; i&#x2B;&#x2B;)&#xA;                    {&#xA;                        vw.WriteVideoFrame(bmps[i%N]);&#xA;                    }&#xA;&#xA;                    vw.Close();&#xA;                    vw.Dispose();&#xA;&#xA;                    watch.Stop();&#xA;&#xA;                    Console.WriteLine("Codec: {0}, Time: {1:F3}", Enum.GetName(typeof(AForge.Video.FFMPEG.VideoCodec), codecs[k]), watch.ElapsedMilliseconds / 1000d);&#xA;                }&#xA;                catch(Exception ex)&#xA;                {&#xA;                    Console.WriteLine("Error " &#x2B; codecs[k].ToString());&#xA;                }&#xA;&#xA;            }&#xA;            &#xA;        }&#xA;&#xA;        Console.ReadKey();&#xA;    }&#xA;

    &#xA;

    Additional :

    &#xA;

      &#xA;
    1. We are ready to use not-for-free solutions, but free is preferable.
    2. &#xA;

    3. One of the supposed reasons for low recording speed : (x86) building of applications. I tried so hard to find x64 Aforge building but failed in this. We really don't know is there any influence of application architecture on recording speed.
    4. &#xA;

    &#xA;

    I am ensured that I don't know all the background of video recording and another "little" thing, so I would be very pleased to solutions with clear explanations.

    &#xA;

  • avcodec/ljpegenc : Allow full range yuv420p, yuv422p, yuv444p by default

    6 avril 2021, par Andreas Rheinhardt
    avcodec/ljpegenc : Allow full range yuv420p, yuv422p, yuv444p by default
    

    The documentation for AV_PIX_FMT_YUVJ420P reads :
    "planar YUV 4:2:0, 12bpp, full scale (JPEG), deprecated in favor of
    AV_PIX_FMT_YUV420P and setting color_range"
    Yet the LJPEG encoder only accepts full scale yuv420p when strictness is
    set to unofficial or lower ; with default strictness it emits a nonsense
    error message that says that limit range YUV is unofficial. This has
    been changed to allow full range yuv420p, yuv422p and yuv444p irrespective
    of the level of strictness.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/ljpegenc.c