
Recherche avancée
Autres articles (50)
-
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 ) (...) -
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
Sur d’autres sites (8252)
-
How to get the duration or total number of frame in ffmpeg filter ?
1er juillet 2020, par ReasnoI'm writing a filter in ffmpeg in which I have to get the duration of the video. The filter_frame function looks like followings :


static int filter_frame(AVFilterLink* link, AVFrame* in) {
 AVFilterContext* avctx = link->dst;
 ExtractContext* privCtx = (ExtractContext*)avctx->priv;
 AVFilterLink* outlink = avctx->outputs[0];
 //here I want to get the duration or total number of frames:
}



I have to get the duration or total number of frames in this function, but the only parameters of the function is AVFilterLink and AVFrame in which I cant find relative fields, so I dont know how to do.
Can you help me ? Thanks for your reply !


-
FPS shown in ffmpeg does not match with total frames/duration
14 juin 2020, par LincolnhujFPS is defined as number of frames per second. But when I try to calculate FPS using total frames / duration, I get slightly different number than the FPS shown in ffmpeg :



For this video http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerFun.mp4
using ffmpeg, we can get its FPS, duration and total frames :





ffprobe -select_streams v -show_streams ForBiggerFun.mp4 | grep nb_frames





nb_frames=1440





ffmpeg -i ForBiggerFun.mp4





23.98 fps
Duration : 00:01:00.07



If we calculate duration per frame using nb_frames, we get
fps = nb_frames/Duration = 1440/60.07 = 23.972032628599965, which is different from 23.98



Which value is more reliable ? Does the difference means duration of a frame might be different from others (frames are not evenly distributed) ?


-
Get total duration of multiple video files ? [duplicate]
16 novembre 2018, par Soyal7This question already has an answer here :
I want to extract video duration metadata from every video file in a specified directory and then sum all and view the total time in desktop app.
I need to extract data from as much as hundreds of videos overall. In Windows I can view the total duration for many files manually when selecting them in the explorer and going into details. For 1500 mp4 files it takes about 20 seconds to make the calculations and view the total time. It’s much faster then what I’m currently getting when iterating with
FFprobe
.for filename in dirFiles:
print(subprocess.check_output(['ffprobe', '-i', filename, '-show_entries','format=duration', '-sexagesimal' ,'-v', 'quiet', '-of', 'csv=%s' % ("p=0")]))What is the faster way to do this ?