
Recherche avancée
Autres articles (111)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP 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 (...) -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
Sur d’autres sites (14456)
-
avformat/hls : Don't strdup non-null-terminated string
3 mars 2020, par Andreas Rheinhardtavformat/hls : Don't strdup non-null-terminated string
If an URI indicated that the data protocol was in use, it would be
copied into a temporary buffer via strncpy(dst, src, strlen(src)),
thereby ensuring that the trailing \0 would not be copied, despite dst
being uninitialized. dst would then be av_strdup'ed, leading to
potential segfaults.The solution to this is simple : Don't copy the URI in the temporary
buffer at all, instead av_strdup it directly.This fixes a -Wstringop-truncation warning emitted by GCC 9.2.
Reviewed-by : Steven Liu <lq@chinaffmpeg.org>
Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com> -
avutil/opt : Don't use NULL for %s string in a log message
29 mars 2020, par Andreas Rheinhardtavutil/opt : Don't use NULL for %s string in a log message
If one calls av_opt_set() with an incorrect string to set the value of
an option of type AV_OPT_TYPE_VIDEO_RATE, the given string is used in a
log message via %s. This also happens when the string is actually a
nullpointer in which case using it for %s is forbidden.This commit changes this by erroring out early in case of a nullpointer.
This also fixes a warning from GCC 9.2 :
"‘%s’ directive argument is null [-Wformat-overflow=]"Reviewed-by : Anton Khirnov <anton@khirnov.net>
Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com> -
Write base64 encoded string as Image with javascript
21 avril 2020, par Manoj KumarI am using
FFmpeg
andhtml2canvus
and trying to create an mp4 video with the screenshots taken from a slider.


here is my worker initialization



const worker = createWorker({
 //logger: ({ message }) => console.log(message),
 progress: (p) => console.log(p),
});




Then in click, I take the screenshots and putting into the video



const image2video = async () => {
 displayLoader();
 var zip = new JSZip();
 let selectedbanners = $(".selected_templates:checked");
 await worker.load();
 let promise = new Promise((resolve, reject) => {
 let Processed = 0;
 selectedbanners.each(async function () {
 var dataIndex = $(this).data('index');
 let ad = adTemplates[dataIndex];
 var innercounter = 0;
 $(`.template-container-${ad.name}`).each(async function () {
 var imgData;
 await html2canvas($(`.template-container-${ad.name}`)[innercounter], {allowTaint: true, width: ad.width, height: ad.height}).then(canvas => {
 imgData = canvas.toDataURL('image/jpeg', 1.0).split('base64,')[1];
 //await worker.write(`tmp.${ad.name}.${innercounter}.png`, imgData);

 });
 await worker.write(`tmp.${ad.name}.${innercounter}.png`, imgData);
 //await worker.write(`tmp.0.png`, `static/triangle/tmp.0.png`); This is working
 });
 });
 });
};




I have setup a codepen here. It works if I put the image path but doesn't work if I directly pass the base64 string. Here I found that it also supports the base64 string as well as the URL.
This is how it looks in console


Thanks in advance.