Recherche avancée

Médias (91)

Autres articles (10)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

  • Other interesting software

    13 avril 2011, par

    We don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
    The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
    We don’t know them, we didn’t try them, but you can take a peek.
    Videopress
    Website : http://videopress.com/
    License : GNU/GPL v2
    Source code : (...)

Sur d’autres sites (3322)

  • Anomalie #4430 : image_reduire gère mal les arrondis

    27 février 2020, par jluc -

    Non c’est le contraire : il y a plein d’errreurs pour ceil
    et je n’en ai trouvé aucune pour round
    Cf le script de test et quelques uns des résultats statistiques sur le wiki

  • ffmpeg - Encoding Percentage in PHP

    13 juillet 2012, par Jimbo

    I've written a whole system in PHP and bash on the server to convert and stream videos in HTML5 on my VPS. The conversion is done by ffmpeg in the background and the contents is output to block.txt.

    Having looked at the following posts :

    Can ffmpeg show a progress bar ?

    and

    ffmpeg video encoding progress bar

    amongst others, I can't find a working example.

    I have always struggled with the regexes and maths, and I need to grab the currently encoded progress as a percentage.

    The first post I linked above gives :

    $log = @file_get_contents('block.txt');

    preg_match("/Duration:([^,]+)/", $log, $matches);
    list($hours,$minutes,$seconds,$mili) = split(":",$matches[1]);
    $seconds = (($hours * 3600) + ($minutes * 60) + $seconds);
    $seconds = round($seconds);

    $page = join("",file("$txt"));
    $kw = explode("time=", $page);
    $last = array_pop($kw);
    $values = explode(' ', $last);
    $curTime = round($values[0]);
    $percent_extracted = round((($curTime * 100)/($seconds)));

    echo $percent_extracted;

    The $percent_extracted variable echoes zero, and as maths is not my strong point, I really don't know how to progress here.

    Here's one line from the ffmpeg output from block.txt (if it's helpful)

    time=00:19:25.16 bitrate= 823.0kbits/s frame=27963 fps= 7 q=0.0 size=
    117085kB time=00:19:25.33 bitrate= 823.1kbits/s frame=27967 fps= 7
    q=0.0 size= 117085kB time=00:19:25.49 bitrate= 823.0kbits/s
    frame=27971 fps= 7 q=0.0 size= 117126kB

    Please help me output this percentage, once done I can create my own progress bar. Thanks.

  • lavfi/drawutils : improve colorspace support

    2 juin 2022, par rcombs
    lavfi/drawutils : improve colorspace support
    

    - Introduce ff_draw_init2, which takes explicit colorspace and range
    args
    - Use lavu/csp and lavfi/colorspace for conversion, rather than the
    lavu/colorspace.h macros
    - Use the passed-in colorspace when performing RGB->YUV conversions

    The upshot of this is :
    - Support for YUV spaces other than BT601
    - Better rounding for all conversions
    - Particular rounding improvements in >8-bit formats, which previously
    used simple left-shifts
    - Support for limited-range RGB
    - Support for full-range YUV in non-J pixfmts

    Due to the rounding improvements, this results in a large number of
    minor changes to FATE tests.

    Signed-off-by : rcombs <rcombs@rcombs.me>

    • [DH] libavfilter/drawutils.c
    • [DH] libavfilter/drawutils.h
    • [DH] tests/ref/fate/filter-chromashift-smear
    • [DH] tests/ref/fate/filter-chromashift-wrap
    • [DH] tests/ref/fate/filter-decimate
    • [DH] tests/ref/fate/filter-fps-down
    • [DH] tests/ref/fate/filter-fps-down-eof-pass
    • [DH] tests/ref/fate/filter-fps-down-round-down
    • [DH] tests/ref/fate/filter-fps-down-round-up
    • [DH] tests/ref/fate/filter-fps-start-drop
    • [DH] tests/ref/fate/filter-fps-start-fill
    • [DH] tests/ref/fate/filter-fps-up
    • [DH] tests/ref/fate/filter-fps-up-round-down
    • [DH] tests/ref/fate/filter-fps-up-round-up
    • [DH] tests/ref/fate/filter-framerate-12bit-down
    • [DH] tests/ref/fate/filter-framerate-12bit-up
    • [DH] tests/ref/fate/filter-framerate-down
    • [DH] tests/ref/fate/filter-framerate-up
    • [DH] tests/ref/fate/filter-metadata-signalstats-yuv420p10
    • [DH] tests/ref/fate/filter-minterpolate-down
    • [DH] tests/ref/fate/filter-minterpolate-up
    • [DH] tests/ref/fate/filter-mpdecimate
    • [DH] tests/ref/fate/filter-overlay_yuv420p10
    • [DH] tests/ref/fate/filter-overlay_yuv422p10
    • [DH] tests/ref/fate/filter-pixfmts-pad
    • [DH] tests/ref/fate/filter-pixfmts-tinterlace_pad
    • [DH] tests/ref/fate/filter-testsrc2-yuv420p
    • [DH] tests/ref/fate/filter-testsrc2-yuv444p
    • [DH] tests/ref/fate/filter-tpad-add
    • [DH] tests/ref/fate/filter-tpad-clone
    • [DH] tests/ref/fate/filter-unsharp-yuv420p10
    • [DH] tests/ref/fate/filter-untile