
Recherche avancée
Autres articles (74)
-
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.
Sur d’autres sites (5523)
-
ffprobe returns coded_picture_number with a frame missing
26 janvier 2018, par HélderWhile using ffprobe to get the pict_type and coded_picture_number I noticed while doing a for loop in python that one of the coded_picture_number was missing.
This is the command used :
ffprobe foreman.m4v -show_frames | grep -E 'pict_type|coded_picture_number' > output.txt
And I get returned all frame number with exception of one :
coded_picture_number=290
pict_type=P
coded_picture_number=289
pict_type=B
coded_picture_number=292
pict_type=P
coded_picture_number=291
pict_type=B
coded_picture_number=294
pict_type=P
coded_picture_number=293
pict_type=B
coded_picture_number=297
pict_type=B
coded_picture_number=296The total is 297 coded_picture_number, where does the 295 go ? Does anyone know how to get it ? It causes errors in python when taking ranges and trying to read the image from the data frame.
If it is possible to have a smooth numbering per pict_type would be perfect. Any clue ?
-
FFMPEG in Python Returns Corrupted Video
11 décembre 2020, par user14210589In Python, I run ffmpeg to convert a video to a .mp4 file. However, for some reason, the video it creates is not compatible with anything (I'm pretty sure it's corrupted). The code looks like this :


import os

os.system("ffmpeg -i Images/i1.mov Images/edited.mp4 -loglevel quiet")
os.remove("Images/i1.mov")
os.rename("Images/edited.mp4", "Images/i1.mp4")



However, the video file created doesn't play.
I am getting an error that just says
killed
. What am I doing wrong ?

Edit : I also tried converting to .WebM rather than .mp4, and it had no effect. (it still gave the same error)


-
Async Javascript function returns undefined
14 avril 2018, par Leon WrightI am trying to run this function but the it keeps returning undefined when I explicitly hardcode the return value.
const splitVideo = async (sid, video, part) => {
let framesLocation =`${process.cwd()}/${dirs.videoFrames}/${sid}_${part}`;
console.log(fs.existsSync(framesLocation));
if(!fs.existsSync(framesLocation)) {
console.log("making dir");
f.s.mkdirSync(framesLocation);
}
ffmpeg(video)
.on('end', () => {
return "done";
})
.on('error', (err) => {
throw err;
})
.screenshots({
timestamps: [1,2],
filename: `${sid}_${part}/frame-%s.png`,
folder: `${process.cwd()}/${dirs.videoFrames}`
});
};Please help this is very frustrating.