Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (105)

  • 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

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (15714)

  • In ffmpeg, how to search to a keyframe BEFORE a specified time ?

    12 janvier 2018, par siods333333

    Background

    For a video in the mp4 or flv container formats, I need to :

    1. Get its duration.

    2. Get a keyframe at 25% of its duration. If frame at 25% isn’t a keyframe, seek to the first keyframe before that frame.

    3. Seek to audio at 10ms before that keyframe.

    According to the following comment on StackOverflow, av_seek_frame seems to only seek to a keyframe after a specified time.

    Question

    Given that it appears I can only seek after a specified time, how is it possible to get the required keyframe and to seek to the correct part in a mp4 or flv container as specified above ?

    My Ideas

    • My best bet is probably parsing the header (and index, where applicable) manually, and then use the av_seek_frame with the AVSEEK_FLAG_BYTE flag.

    • Or I can just walk the whole file, and just check if AVFrame->key_frame is true or not.

    It would be awesome if the trim filter could support different seek methods, but I guess I have to get correct timestamps by myself, is that correct ?

  • tests/checkasm : fix wrong summation of bench time

    31 mars, par Niklas Haas
    tests/checkasm : fix wrong summation of bench time
    

    This was changed 8 years ago with the introduction of the linux-perf path,
    with seemingly no justification at the time. Likely a developer oversight
    from testing.

    This bug not only made —runs completely ineffective, but also meant that we
    didn't actually correctly filter out outliers.

    Fixes : e0d56f097f42bcdbe6c3b2f57df62a4da63f2094

    • [DH] tests/checkasm/checkasm.h
  • Cutting the stream on local date time when scheduled

    19 juin 2017, par Fearhunter

    I am using a ffmpeg slice commando in my C# code. For example : I scheduled a stream from 12pm till 3 pm. In my if statement I use a condition to compare the local datetime with the time of now.

    DateTime systemDate = DateTime.Now;
    DateTime compareDate = DateTime.Today;

     private Process SliceStream(string url)
           {
               if (systemDate < compareDate)
               {
                   return Process.Start(new ProcessStartInfo
                   {
                       FileName = "ffmpeg.exe",
                       Arguments = $"-i \"{url}\"-acodec aac -strict -2 -vcodec libx264 -hls_wrap 100 -f hls -hls_time 20 C:/var/1.m3u8 ",
                       UseShellExecute = false,
                       RedirectStandardOutput = true

                   });
               }
               else
               {
                   Thread.Sleep(100);
                   return null;
               }
           }

    The problem is it doesn’t work when my time on my computer is for example 12pm and he is not cutting the stream.

    What am I doing wrong ?