Recherche avancée

Médias (3)

Mot : - Tags -/collection

Autres articles (98)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

Sur d’autres sites (11117)

  • avutil/timestamp : introduce av_ts_make_time_string2 for better precision

    17 mars 2024, par Marton Balint
    avutil/timestamp : introduce av_ts_make_time_string2 for better precision
    

    av_ts_make_time_string() used "%.6g" format, but this format was losing
    precision even when the timestamp to be printed was not that large. For example
    for 3 hours (10800) seconds, only 1 decimal digit was printed, which made this
    format inaccurate when it was used in e.g. the silencedetect filter. Other
    detection filters printing timestamps had similar issues. Also time base
    parameter of the function was *AVRational instead of AVRational.

    Resolve these problems by introducing a new function, av_ts_make_time_string2().

    We change the used format to "%.*f", use a precision of 6, except when printing
    values near 0, in which case we calculate the precision dynamically to aim for
    a similar precision in normal form as with %.6g. No longer using scientific
    representation can make parsing the timestamp easier for the users, we can
    safely do this because the theoretical maximum of INT64_MAX*INT32_MAX still
    fits into the string buffer in normal form.

    We somewhat imitate %g by trimming ending zeroes and the potential decimal
    point characters. In order not to trim "inf" as well, we assume that the
    decimal point string does not contain the letter "f". Note that depending on
    printf %f implementation, we might trim "infinity" to "inf".

    Thanks for Allan Cady for bringing up this issue.

    Signed-off-by : Marton Balint <cus@passwd.hu>

    • [DH] doc/APIchanges
    • [DH] libavutil/Makefile
    • [DH] libavutil/timestamp.c
    • [DH] libavutil/timestamp.h
    • [DH] libavutil/version.h
  • ffmpeg make a movie with multiple numbers in filename [closed]

    22 juillet 2024, par NNN

    I have the following four files

    &#xA;

    mov_00_00.png&#xA;mov_00_01.png&#xA;mov_01_00.png&#xA;mov_01_01.png&#xA;

    &#xA;

    I can make a movie using

    &#xA;

    ffmpeg.exe -i mov_%02d_00.png -filter:v "setpts=10*PTS" out.mp4

    &#xA;

    But this does not consider the files ending with 01.png.

    &#xA;

    I tried

    &#xA;

    ffmpeg.exe -i mov_%02d_%02d.png -filter:v "setpts=10*PTS" out.mp4&#xA;

    &#xA;

    But it says

    &#xA;

    [in#0 @ 0000021982d69000] Error opening input: No such file or directory&#xA;Error opening input file mov_%02d_%02d.png.&#xA;Error opening input files: No such file or directory&#xA;

    &#xA;

    What command line magic do I need to use to make this work ? Thanks.

    &#xA;

    Edit : I'm using the Windows version under WSL and the glob option is not supported.

    &#xA;

  • Using ffmpeg.wasm to convert an image with V360 filter without installing node.js

    6 mars 2024, par mcgyver

    I can't figure out if the problem is in my setup of ffmpeg.wasm, or in ffmpeg processing of my image, or somewhere else.

    &#xA;

    I have this command line which I know does work :

    &#xA;

    ffmpeg -i input.jpg -vf v360=fisheye:e:ih_fov=180:iv_fov=180 -y output.jpg&#xA;

    &#xA;

    I would like to implement this conversion in a web page unsing ffmpeg.wasm, so I forked this repo into mine and started playing : I edited the original transcode.html ending up in something completely standalone and functioning in github pages out of the box : transcode.html

    &#xA;

    Starting from there, I split the original code in 3 parts :

    &#xA;

      &#xA;
    • setupFFmpeg : preloads ffmpeg stuff - ok
    • &#xA;

    • setName : store the data of the file selected by the user - ok
    • &#xA;

    • transcode : the remaining of the original code, the parts which executes the ffmpeg command, which I changed from video prcoessing to image processing. - not working
    • &#xA;

    &#xA;

    My current file :

    &#xA;

    https://github.com/jumpjack/ffmpeg.wasm-gh-pages/blob/main/public/f2e-001.html

    &#xA;

    The core part, the not working one :

    &#xA;

    const transcode   = async () => { &#xA;        await ffmpeg.exec([&#x27;-hide_banner&#x27;, &#x27;-i&#x27;, filename, &#x27;-filter_complex&#x27;, filterString,  &#x27;output.jpg&#x27;]); //Execute ffmpeg command line &#xA;        const data = await ffmpeg.readFile(&#x27;output.jpg&#x27;); // Read output file from ffmpeg virtual filesystem&#xA;console.log("=== DATA=",data);&#xA;        const imgOutput = document.getElementById(&#x27;myimage&#x27;);&#xA;        imgOutput.src = URL.createObjectURL(new Blob([data.buffer], { type: &#x27;image/jpeg&#x27; })); // put output into html page&#xA;      }&#xA;

    &#xA;

    (filterString is v360=fisheye:e:ih_fov=180:iv_fov=180 )

    &#xA;

    the console.log("=== DATA=",data) ; line is never reached, I see this output :

    &#xA;

    f2e.html:41 Input #0, png_pipe, from &#x27;fisheye-mono.png&#x27;:&#xA;f2e.html:41   Duration: N/A, bitrate: N/A&#xA;f2e.html:41   Stream #0:0: Video: png, rgb24(pc), 540x541 [SAR 1:1 DAR 540:541], 25 fps, 25 tbr, 25 tbn&#xA;f2e.html:41 Stream mapping:&#xA;f2e.html:41   Stream #0:0 (png) -> v360:default&#xA;f2e.html:41   v360:default -> Stream #0:0 (mjpeg)&#xA;f2e.html:41 [swscaler @ 0xe0a340] deprecated pixel format used, make sure you did set range correctly&#xA;f2e.html:41     Last message repeated 1 times&#xA;    Last message repeated 2 times&#xA;    Last message repeated 3 times&#xA;    Last message repeated 3 times&#xA;f2e.html:41 Output #0, image2, to &#x27;output.jpg&#x27;:&#xA;f2e.html:41   Metadata:&#xA;f2e.html:41     encoder         : Lavf59.27.100&#xA;f2e.html:41   Stream #0:0: Video: mjpeg, yuvj444p(pc, progressive), 1080x541 [SAR 1:1 DAR 1080:541], q=2-31, 200 kb/s, 25 fps, 25 tbn&#xA;f2e.html:41     Metadata:&#xA;f2e.html:41       encoder         : Lavc59.37.100 mjpeg&#xA;f2e.html:41     Side data:&#xA;f2e.html:41       cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A&#xA;

    &#xA;

    I don't undrestand if this is an issue of the web page or of ffmpeg : why do I get all these data about video converting, if I use a .png file as input ?

    &#xA;

    Sometimes this list also finishes with a "memory error" :

    &#xA;

    Uncaught (in promise) RuntimeError : memory access out of bounds

    &#xA;

    Please note that I don't want to install node.js or anything else on my PC, the page must work standalone ; I am currently trying it online, I wonder if it could work also locally, but I doubt, due to cors restrictions.

    &#xA;