
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (106)
-
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 (...) -
Formulaire personnalisable
21 juin 2013, parCette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire. (...) -
Qu’est ce qu’un masque de formulaire
13 juin 2013, parUn masque de formulaire consiste en la personnalisation du formulaire de mise en ligne des médias, rubriques, actualités, éditoriaux et liens vers des sites.
Chaque formulaire de publication d’objet peut donc être personnalisé.
Pour accéder à la personnalisation des champs de formulaires, il est nécessaire d’aller dans l’administration de votre MediaSPIP puis de sélectionner "Configuration des masques de formulaires".
Sélectionnez ensuite le formulaire à modifier en cliquant sur sont type d’objet. (...)
Sur d’autres sites (10053)
-
How to efficiently convert images to a video in `ffmpeg`
9 septembre 2022, par tawfikboujehI discovered squoosh and found out that it does crazy compression on images,


Squoosh only works on images and i wanted to scale it to work on videos.


I then wrote this script to convert the video to a set of images that I'll squoosh and then reconstitute to a video again using the almighty ffmpeg.


mkdir out ; rm -rf ./out/*
ffmpeg -i input.mp4 -r 25 buffer.mp4 # for a reason, i needed to create a buffer, this is hacky, but whatever.
ffmpeg -i buffer.mp4 -vf fps=25 out/out%d.png # convert the image into images
squoosh-cli --mozjpeg '{quality: 75}' out/*.png # compress
FRAMERATE=$(ffmpeg -i buffer.mp4 2>&1 | sed -n "s/.*, \(.*\) fp.*/\1/p") # get the framerate from buffer video
ffmpeg -framerate $FRAMERATE -i out/out%d.jpg output.mp4 # reconstitute the video knowing the framerate and having the compressed images



the images are 90% smaller but the video has a bigger size than the original one.


benchmarks :


for the images :


1.jpeg : 98 KB on disk
1.png : 1,7 MB on disk 



for the videos :


input.mp4 : 20 Mb on disk
buffer.mp4 : 21 Mb on disk
output.mp4 : 19 Mb on disk



Any idea on how to make ffmpeg pack the images to an acceptable size ?


-
avcodec/cfhddata : Reduce stack usage
3 septembre 2022, par Andreas Rheinhardtavcodec/cfhddata : Reduce stack usage
Creating CFHD RL VLC tables works by first extending
the codes by the sign, followed by creating a VLC,
followed by deriving the RL VLC from this VLC (which
is then discarded). Extending the codes uses stack arrays.The tables used to initialize the VLC are already sorted
from left-to-right in the tree. This means that the
corresponding VLC entries are generally also ascending,
but not always : Entries from subtables always follow
the corresponding main table although it is possible
for the right-most node to fit into the main table.This suggests that one can try to use the final destination
buffer as scratch buffer for the tables with sign included.
Unfortunately it works for neither of the tables if one
uses the right-most part of the RL VLC buffer as scratch buffer ;
using the left-most part of the RL VLC buffer as scratch buffer
might work if one traverses the VLC entries from end to start.
But it works only for the little RL VLC (table 9), not for table 18.Therefore this patch uses the RL VLC buffer for table 9
as scratch buffer for creating the bigger table 18.
Afterwards the left part of the buffer for table 9 is
used as scratch buffer to create table 9.This fixes the cfhd part of ticket #9399 (if it is not already fixed).
Notice that I do not consider the previous stack usage excessive.Reviewed-by : Paul B Mahol <onemda@gmail.com>
Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com> -
FFMPEG weight/compression compromise
15 juillet 2022, par untrimattacksI'm look for the best way to reduce the weight of videos. Find a weight/compression compromise on different resolutions (from 480p to 1080p). But without degrading the audio/video quality too much.


I've looked at different questions/answers and looking the FFMPEG documentation but I'm not sure about the best way to do this


maybe




ffmpeg5\ffmpeg.exe -i "file.mp4" -i watermark.png -filter_complex
"overlay=x=(main_w-overlay_w)*0.95:y=(main_h-overlay_h)*0.95"
-loglevel error -stats -hwaccel cuda -preset veryfast "fileEDIT.mp4"




or




ffmpeg5\ffmpeg.exe -loglevel error -stats -hwaccel cuda -i "file.mp4" -i watermark.png -filter_complex
"overlay=x=(main_w-overlay_w)*0.95:y=(main_h-overlay_h)*0.95" -vcodec
libx265 -crf 21 "fileEDIT.mp4"




or




ffmpeg5\ffmpeg.exe -loglevel error -stats -hwaccel cuda -i "file.mp4"
-i watermark.png -filter_complex "overlay=x=(main_w-overlay_w)*0.95:y=(main_h-overlay_h)*0.95" -vcodec
libx265 -crf 21 -maxrate 3200k -bufsize 4200k "fileEDIT.mp4"




(i add an overlay and this overlay size is different depending on the resolution, it's smaller or bigger but that's another concern. I have to look but i have an idea how to do it with GetDetailsOf method, iColumn 314 )


thanks