
Recherche avancée
Médias (91)
-
DJ Z-trip - Victory Lap : The Obama Mix Pt. 2
15 septembre 2011
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Matmos - Action at a Distance
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
DJ Dolores - Oslodum 2004 (includes (cc) sample of “Oslodum” by Gilberto Gil)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Danger Mouse & Jemini - What U Sittin’ On ? (starring Cee Lo and Tha Alkaholiks)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Cornelius - Wataridori 2
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Rapture - Sister Saviour (Blackstrobe Remix)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (112)
-
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 ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)
Sur d’autres sites (14083)
-
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