Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (33)

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

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

  • Remove some redundant NULL checks and fix a free on error return.

    3 mars 2012, par Tim Terriberry
    Remove some redundant NULL checks and fix a free on error return.
    

    ref_frame_data was being allocated with the aligned allocator, but
    freed with the normal _ogg_free() function on failure, which
    doesn’t work.
    This would only cause a problem if there was just enough memory to
    satisfy the reference frame allocation (just over 4.5 or 9 bytes
    per pixel) but not enough for the fragment buffer offets (1/16 or
    1/8th byte per pixel).

    git-svn-id : http://svn.xiph.org/trunk/theora@18219 0101bb08-14d6-0310-b084-bc0e0c8e3800

    • [DH] lib/internal.c
    • [DH] lib/state.c
  • PHP - FFMPEG - Unable to apply multiple regular expressions on media output

    9 avril 2012, par Parth G

    I am writing a php script (I have to use php) to cycle through a dir of media files and displaying media information in a chart.

    Right now, I'm trying to do it on 1 file.

    I can successfully do so. I currently can parse the output (using regular expressions) to obtain information such as file name, duration, resolution, etc

    I was told that I can combine the regular expressions to make it more efficient.

    When I do however, I am unable to parse the ffmpeg output correctly.

    Consequently, I've tried copying the output to a string and parsing that using multiple expressions and it works just fine.

    Any help is appreciated.

    Thanks.


    Working code

    $media_info = "'test.mkv': Metadata: creation_time : 2011-03-12 09:04:18 Duration: 00:21:44.10, start: 0.000000, bitrate: 500 kb/s Chapter #0.0: start 0.097000, end 1304.107000 Metadata: title : 00:00:00.097 Stream #0:0: Video: h264 (High), yuv420p, 720x400 [SAR 80:81 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) Stream #0:1: Audio: aac, 48000 Hz, stereo, s16 (default) At least one output file must be specified";


    $file = array();
    $file_test = preg_match_all("/'([a-zA-Z0-9\._]*\.[a-zA-Z0-9]*)'.* Duration: ([0-9]{2,}:[0-9]{2}:[0-9]{2}\.[0-9]*)/", $media_info, $file);;
    var_dump($file)

    Not Working Code

    ob_start();
    passthru("C:\\wamp\\www\\ffmpeg\\bin\\ffmpeg.exe -i \"{$videofile}\" 2>&1");
    $raw_data = ob_get_contents();
    ob_end_clean();


    $ffmpeg_info =  explode("from", $raw_data);


    $media_info = $ffmpeg_info[1];

    $file = array();
    $file_test = preg_match_all("/'([a-zA-Z0-9\._]*\.[a-zA-Z0-9]*)'.* Duration: ([0-9]{2,}:[0-9]{2}:[0-9]{2}\.[0-9]*)/", $media_info, $file);;
    var_dump($file)

    New Code

    I tried using the ffmpeg-php extension and the following works (except for printing the bit rate)

    $movie = new ffmpeg_movie($video_file);

    echo $movie->getFilename();
    echo "<br />" ;
    echo $movie->getDuration();
    echo "<br />" ;
    echo $movie->getFrameWidth();
    echo "x";
    echo $movie->getFrameHeight();
    echo "<br />" ;
    echo $movie->getBitRate();
    echo "<br />" ;
    echo $movie->getVideoBitRate();
    echo "<br />" ;
    echo $movie->getAudioBitRate();
    echo "<br />" ;
    echo $movie->getVideoCodec();
    echo "<br />" ;
    echo $movie->getAudioCodec();
    ?>
  • Surcharger la notification de proposition

    11 décembre 2012

    Lors de la proposition de media, les administrateurs sont notifiés qu’un article est proposé.

    Cette notification doit être surchargée car c’est un média qui est proposé et qui plus est, on devrait renvoyer vers le public pour la validation. Fait par : http://svn.aires-de-confluxence.inf...

    Qui plus est, il serait peut être intéressant d’ajouter, comme sur les forums, la possibilité de publier automatiquement depuis le mail le média proposé.