
Recherche avancée
Médias (1)
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
Autres articles (104)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
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 (10391)
-
Returning ffprobe metadata to another function using fluent-ffmpeg
28 avril 2021, par noquierouserI'm trying to use
fluent-ffmpeg
'sffprobe
to get the metadata of a file and add it to a list, but I want to separate the process of getting the metadata from the method related to checking the file, mostly because theaddFileToList()
function is quite long as is and theffprobe
routine is quite long as well.

I've tried the following code, but it doesn't give the results I'm expecting :


export default {
 // ...
 methods: {
 getVideoMetadata (file) {
 const ffmpeg = require('fluent-ffmpeg')
 ffmpeg.ffprobe(file.name, (err, metadata) => {
 if (!err) {
 console.log(metadata) // this shows the metadata just fine
 return metadata
 }
 })
 },
 addFileToList (file) {
 // file checking routines
 console.log(this.getVideoMetadata(file)) // this returns null
 item.metadata = this.getVideoMetadata(file)
 // item saving routines
 } 
 }
}



I've already tried to nest the
getVideoMetadata()
routines insideaddFileToList()
, and it works, but not as intended, because the actions are carried, but not the first time, only the second time. It seems to be an async issue, but I don't know how can I tackle this.

What can I do ? Should I stick to my idea of decoupling
getVideoMetadata()
or should I nest it insideaddFileToList()
and wrestle withasync
/await
?

-
avformat/apngdec : Fix size/overflow checks
12 janvier 2020, par Andreas Rheinhardtavformat/apngdec : Fix size/overflow checks
apng data consists of parts containing a small header (including a
four-byte size field) and a data part ; the size field does not account
for everything and is actually twelve bytes short of the actual size. In
order to make sure that the size fits into an int, the size field is
checked for being > INT_MAX ; yet this does not account for the + 12 and
upon conversion to int (which happens when calling append_extradata()),
the size parameter can still wrap around. In this case the currently
used check would lead to undefined signed integer overflow.Furthermore, append_extradata() appends the new data to the already
existing extradata and therefore needs to make sure that the combined
size of new and old data as well as padding fits into an int. The check
used for this is "if (old_size > INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE -
new_size)". If new_size is > INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE
the right side becomes negative if the types are signed (as they are
now) ; yet changing this to "if (new_size > INT_MAX -
AV_INPUT_BUFFER_PADDING_SIZE - old_size)" is better as this also works
for unsigned types (where it is of course presumed that INT_MAX is
replaced by the corresponding maximum for the new type).Both of these issues have been fixed.
Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
-
JavaCV FrameRecorder broken output
24 juin 2016, par user6510675I am trying to record from my webcam 360 frames, however the generated movie file always gets broken.
Example from my dropbox account : https://www.dropbox.com/s/wc4p21tyuhu7uls/Untitled.avi?dl=0
The issue starts at minute 0:02.
I don’t know how to fix this.
I always receive this message in the console :
using huffyuv 2.2.0 or newer interlacing flag