Recherche avancée

Médias (2)

Mot : - Tags -/map

Autres articles (56)

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

  • 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

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (12567)

  • avcodec/rv34 : Don't needlessly copy VLC length and symbol arrays

    22 octobre 2020, par Andreas Rheinhardt
    avcodec/rv34 : Don't needlessly copy VLC length and symbol arrays
    

    Most of the VLCs used by RealVideo 3 and 4 obey three simple rules :
    Shorter codes are on the left of the tree, for each length, the symbols
    are ascending from left to right and the symbols either form a
    permutation of 1..size or 0..(size - 1). For the latter case, one just
    needs to store the length of each symbol and create the codes according
    to the other rules ; no explicit code or symbol array must be stored.
    The former case is also treated in much the same way by artificially
    assigning a length of zero to the symbol 0 ; when a length of zero was
    encountered, the element was ignored except that the symbol counter was
    still incremented. If the length was nonzero, the symbol would be
    assigned via the symbol counter and the length copied over into a new
    array.

    Yet this is unnecessary, as ff_init_vlc_sparse() follows exactly the
    same pattern : If a length of zero is encountered, the element is ignored
    and only the symbol counter incremented. So one can directly forward the
    length array and also need not create a symbol table oneself, because
    ff_init_vlc_sparse() will infer the same symbol table in this case.

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

    • [DH] libavcodec/rv34.c
  • avcodec/dvdsub_parser : Fix length check for short packets

    30 septembre 2022, par Aidan MacDonald
    avcodec/dvdsub_parser : Fix length check for short packets
    

    The DVD subtitle parser handles two types of packets : "normal"
    packets with a 16-bit length, and HD-DVD packets that set the
    16-bit length to 0 and encode a 32-bit length in the next four
    bytes. This implies that HD-DVD packets are at least six bytes
    long, but the code didn't actually verify this.

    The faulty length check results in an out of bounds read for
    zero-length "normal" packets that occur in the input, which are
    only 2 bytes long, but get misinterpreted as an HD-DVD packet.
    When this happens the parser reads packet_len from beyond the
    end of the input buffer. The subtitle stream is not correctly
    decoded after this point due to the garbage packet_len.

    Fixing this is pretty simple : fix the length check so packets
    less than 6 bytes long will not be mistakenly parsed as HD-DVD
    packets.

    Signed-off-by : Aidan MacDonald <aidanmacdonald.0x0@gmail.com>
    Signed-off-by : Anton Khirnov <anton@khirnov.net>

    • [DH] libavcodec/dvdsub_parser.c
  • How to get video length using ffmpeg

    21 janvier 2019, par Kevin

    I am getting the duration of video using following code,

    if (substr(php_uname(), 0, 7) == "Windows"){            
       $time = exec("{$ffmpeg} -i $path 2>&amp;1 | findstr Duration");

       echo $time;
       exit;

       $duration = explode(":", $time);                
       $seconds = ($duration[0] * 3600) + ($duration[1] * 60) + round($duration[2]);  
       $minutes = $seconds/60;
       $real_minutes = floor($minutes);
       $real_seconds = round(($minutes-$real_minutes)*60);
       $length = $real_minutes.':'.$real_seconds;
    }

    $time shows the output like Duration: 00:00:06.52, start: 0.000000, bitrate: 350 kb/s but $duration shows only like Array ans $length shows 0:0 only for all videos. So how can i get video length please help me.