
Recherche avancée
Médias (1)
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (60)
-
Supporting all media types
13 avril 2011, parUnlike 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 (...)
-
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
Configuration spécifique d’Apache
4 février 2011, parModules spécifiques
Pour la configuration d’Apache, il est conseillé d’activer certains modules non spécifiques à MediaSPIP, mais permettant d’améliorer les performances : mod_deflate et mod_headers pour compresser automatiquement via Apache les pages. Cf ce tutoriel ; mode_expires pour gérer correctement l’expiration des hits. Cf ce tutoriel ;
Il est également conseillé d’ajouter la prise en charge par apache du mime-type pour les fichiers WebM comme indiqué dans ce tutoriel.
Création d’un (...)
Sur d’autres sites (9080)
-
Cutting a video without re encoding using ffmpeg and nodejs (fluent-ffmpeg)
22 septembre 2020, par foufrixI have a quick question,
I'm trying to do a cloud video editor, and i want to be able to cut out video usng nodejs.


I'm using fluent-ffmpeg. Here is my code :


const cutVideo = async (sourcePath, outputPath, startTime, duration) => {
 console.log('start cut video');

 await new Promise((resolve, reject) => {
 ffmpeg(sourcePath)
 .setFfmpegPath(pathToFfmpeg)
 .setFfprobePath(ffprobe.path)
 .output(outputPath)
 .setStartTime(startTime)
 .setDuration(duration)
 .on('end', function (err) {
 if (!err) {
 console.log('conversion Done');
 resolve();
 }
 })
 .on('error', function (err) {
 console.log('error: ', err);
 reject(err);
 })
 .run();
 });
};



It's working but not optimal, and as soon as i try to edit to a long video (getting 10 min from a video instead of 1 min out) it's super long.


What i understand is that ffmpeg re encode everything, so that's why the longer the edit is the longer the process will.
Is there way to cut out using node-fluent-ffmpeg without re encoding everything ?


Thanks to the community !


-
Mpeg1, vp9, theora and h264 intra lossless encoding strange results
12 septembre 2020, par Anton BI tried lossless intra coding of a few sequences including this one from xiph.org :
https://media.xiph.org/video/derf/y4m/foreman_qcif.y4m
and strangely mpeg1video wins by a great margin sizewise. I used FFmpeg with these settings :


ffmpeg -i foreman_qcif.y4m -c:v mpeg1video -qscale:v 0 -intra foreman.mpeg
ffmpeg -i foreman_qcif.y4m -c:v libx264 -crf 0 -intra foreman.mp4
ffmpeg -i foreman_qcif.y4m -c:v libvpx-vp9 -crf 0 -intra foreman.webm
ffmpeg -i foreman_qcif.y4m -c:v libtheora -qscale:v 10 -intra foreman.ogg



And the sizes I've got : mpeg1video - 2643968 ; theora - 2949677 ; vp9 - 5636841 ; h264 - 5743014 ;
So the question is : does mpeg1video really beats them all by such a margin in this mode ?


-
How to convert included subtitles in not UTF-8 encoding when their encoding is unknown
10 septembre 2020, par d3imI'm trying to make automatic conversion of media files (video, audio, subtitles)


I use ffmpeg mainly.


I would subtitles convert to UTF-8 WebVTT files but I'm facing problem how to convert non UTF-8 encodings.


ffmpeg says :


[srt @ 0x559e9f111dc0] Invalid UTF-8 in decoded subtitles text; maybe missing -sub_charenc option
Error while decoding stream #0:8: Invalid data found when processing input



What to do when I don't know encoding at advance ? (Should I use some other program ? If so would you suggest some technique ?)


Input is any media file - MKV, MP4, ... with bundled subtitle(s)


EDIT1 :


full command with error :


ffmpeg -i input.mkv -c:s srt -map 0:s:3 3.srt



this pass OK :


ffmpeg -sub_charenc CP1250 -i input.mkv -c:s srt -map 0:s:3 3.srt