
Recherche avancée
Autres articles (10)
-
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP 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 (...) -
Selection of projects using MediaSPIP
2 mai 2011, parThe examples below are representative elements of MediaSPIP specific uses for specific projects.
MediaSPIP farm @ Infini
The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...) -
Sélection de projets utilisant MediaSPIP
29 avril 2011, parLes exemples cités ci-dessous sont des éléments représentatifs d’usages spécifiques de MediaSPIP pour certains projets.
Vous pensez avoir un site "remarquable" réalisé avec MediaSPIP ? Faites le nous savoir ici.
Ferme MediaSPIP @ Infini
L’Association Infini développe des activités d’accueil, de point d’accès internet, de formation, de conduite de projets innovants dans le domaine des Technologies de l’Information et de la Communication, et l’hébergement de sites. Elle joue en la matière un rôle unique (...)
Sur d’autres sites (2807)
-
libavformat/mxfenc : color_range should be inclusive
20 août 2020, par Harry Mallon -
How to automatically add date to output file generated in ffmpeg ?
4 avril 2019, par Maxime RichardI am using Terminal to run ffmpeg commands (Mac OS) in order to record radio shows streamed online. The stream is in m3u8 I want to output it in mp3. So far so good, I am able to achieve that. However, I’d like the output file to read
YYYYMMDD-fm93-segal.mp3
whereYYYYMMMDD
are the date the recording was made.I am not able to achieve this using
-strftime 1
for some reason. When using my code, the output file reads%Y%m&d-fm93-segal.mp3
instead of replacing the strings by the real date.Here is the line I’m using :
ffmpeg -i "https://cogecomedia.leanstream.co/cogecomedia/CJMFFM.stream/playlist.m3u8" -acodec mp3 -strftime 1 "%Y%m%d-fm93-segal.mp3"
Anyone knows why and could help me with that ?
-
Bugs converting animated GIFs to AVIF in PHP ?
12 octobre 2023, par xgretschI am running PHP 8.1 under Linux 23:04, and I would like to convert animated GIFs to AVIFs, since these are much smaller and Google Search Console is complaining about my LCP. I'm following the method in https://codelabs.developers.google.com/codelabs/avif#0.


I have been able to do this for most files using the
avifenc
encoder, installed by :

RUN apt-get install -y ffmpeg libavif-bin



However, I have at least one file (https://storage.googleapis.com/bachtrack-public/temp/problem.gif) that breaks the encoder. The output looks something like this :


# ffmpeg -i problem.gif -pix_fmt yuv420p -f yuv4mpegpipe problem.gif.y4m
(lots of diagnostic output, correct conclusion)
# avifenc problem.gif.y4m problem.avif
Successfully loaded: problem.gif.y4m
AVIF to be written: (Lossy)
 * Resolution : 200x200
 * Bit Depth : 8
 * Format : YUV420
 * Chroma Sam. Pos: 0
 * Alpha : Absent
 * Range : Limited
 * Color Primaries: 1
 * Transfer Char. : 13
 * Matrix Coeffs. : 6
 * ICC Profile : Absent
 * XMP Metadata : Absent
 * Exif Metadata : Absent
 * Transformations: None
 * Progressive : Unavailable
Encoding with AV1 codec 'aom' speed [6], color QP [24 (Medium) <-> 26 (Medium)], alpha QP [0 (Lossless) <-> 0 (Lossless)], tileRowsLog2 [0], tileColsLog2 [0], 1 worker thread(s), please wait...
 * Encoding frame 1 [1/1 ts]: problem.gif.y4m
 * Encoding frame 2 [1/1 ts]: problem.gif.y4m
(lots more frames)
 * Encoding frame 39 [1/1 ts]: problem.gif.y4m
avifenc: ./av1/encoder/pass2_strategy.c:4045: av1_twopass_postencode_update: Assertion `cpi->twopass_frame.stats_in > twopass->stats_buf_ctx->stats_in_start' failed.
Aborted
#avifenc -V
Version: 0.11.1 (dav1d [dec]:1.0.0, libgav1 [dec]:0.18.0, aom [enc/dec]:v3.6.0, rav1e [enc]:0.5.1 (v0.5.1), svt [enc]:v1.4.1)
libyuv : available (1838)
#



The version of
avifenc
isn't the latest, but I haven't succeeded in rebuilding it from source using Google's instructions – I eventually land with a library that I can't find anywhere.

I have tried PHP ImageMagick using the code below, but that loses the animation :


$imagick = new Imagick('problem.gif');
$imagick->writeImage('problem.avif');



Can anyone help ? The solution could be to install a newer version of
avifenc
, or to makeImageMagick
work with the animation, or to use some different library altogether...