
Recherche avancée
Médias (1)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (84)
-
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 (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...) -
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)
Sur d’autres sites (6929)
-
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 !


-
avformat/ifv : Check that total frames do not overflow
17 octobre 2020, par Michael Niedermayeravformat/ifv : Check that total frames do not overflow
Fixes : Infinite loop
Fixes : 26392/clusterfuzz-testcase-minimized-ffmpeg_dem_GIF_fuzzer-5713658237419520
Fixes : 26435/clusterfuzz-testcase-minimized-ffmpeg_dem_SUBVIEWER_fuzzer-6548251853193216Found-by : continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by : Michael Niedermayer <michael@niedermayer.cc> -
ffmpeg combine multiple images - output video incorrect xfade transition time, and total length
24 janvier 2021, par jsalujaI want to merge 5 images with transition at specific times 4.00, 10.0, 16.0, 22.0, with a transition duration of 1 sec, and a 27 sec audio into a 27 sec video clip.


I used the below command, and got output video of 10 min 43 sec


./ffmpeg \
-i 27.m4a \
-loop 1 -t 4.0 -i image01.jpeg \
-loop 1 -t 6.0 -i image02.jpeg \
-loop 1 -t 6.0 -i image03.jpeg \
-loop 1 -t 6.0 -i image04.jpeg \
-loop 1 -t 5.0 -i image05.jpeg \
-movflags faststart -pix_fmt yuva420p \
-filter_complex " \
[1:v] format=pix_fmts=yuva420p, \
scale=1080:1920:force_original_aspect_ratio=decrease, \
pad=1080:1920:(ow-iw)/2:(oh-ih)/2, \
zoompan=z='if(eq(on,1),1,zoom+0.0004170)':x='iw-iw/zoom':y='0':fps=60:d=60*4.000:s=1080x1920, \
crop=w=1080:h=1920:x='(iw-ow)/2':y='(ih-oh)/2', \
setpts=PTS-STARTPTS+0.000/TB[v0]; \
[2:v] format=pix_fmts=yuva420p, \
scale=1080:1920:force_original_aspect_ratio=decrease, \
pad=1080:1920:(ow-iw)/2:(oh-ih)/2, \
zoompan=z='if(eq(on,1),1,zoom+0.0004170)':x='0':y='ih-ih/zoom':fps=60:d=60*6.000:s=1080x1920, \
crop=w=1080:h=1920:x='(iw-ow)/2':y='(ih-oh)/2', \
setpts=PTS-STARTPTS+4.000/TB[v1]; \
[3:v] format=pix_fmts=yuva420p, \
scale=1080:1920:force_original_aspect_ratio=decrease, \
pad=1080:1920:(ow-iw)/2:(oh-ih)/2, \
zoompan=z='if(eq(on,1),1,zoom+0.0004170)':x='0':y='ih-ih/zoom':fps=60:d=60*6.000:s=1080x1920, \
crop=w=1080:h=1920:x='(iw-ow)/2':y='(ih-oh)/2', \
setpts=PTS-STARTPTS+10.000/TB[v2]; \
[4:v] format=pix_fmts=yuva420p, \
scale=1080:1920:force_original_aspect_ratio=decrease, \
pad=1080:1920:(ow-iw)/2:(oh-ih)/2, \
zoompan=z='if(eq(on,1),1,zoom+0.0004170)':x='iw-iw/zoom':y='0':fps=60:d=60*6.000:s=1080x1920, \
crop=w=1080:h=1920:x='(iw-ow)/2':y='(ih-oh)/2', \
setpts=PTS-STARTPTS+16.000/TB[v3]; \
[5:v] format=pix_fmts=yuva420p, \
scale=1080:1920:force_original_aspect_ratio=decrease, \
pad=1080:1920:(ow-iw)/2:(oh-ih)/2, \
zoompan=z='if(eq(on,1),1,zoom+0.0004170)':x='iw-iw/zoom':y='ih-ih/zoom':fps=60:d=60*5.000:s=1080x1920, \
crop=w=1080:h=1920:x='(iw-ow)/2':y='(ih-oh)/2', \
setpts=PTS-STARTPTS+22.000/TB[v4]; \
[v0][v1]xfade=transition=circlecrop:duration=1.00:offset=3.000[v01];\
[v01][v2]xfade=transition=hrslice:duration=1.00:offset=8.000[v12];\
[v12][v3]xfade=transition=slideleft:duration=1.00:offset=13.000[v23];\
[v23][v4]xfade=transition=vdslice:duration=1.00:offset=18.000[v34]" \
-map "0:a" -map [v34] -y output.mp4



====


I think I need to tweak the time values are specified at 4 places to get this right


-loop 1 -t TIMESTAMP1


I set this to expected duration of each image i.e, 4, 6, 6, 6, 5


zoompan=z='if(eq(on,1),1,zoom+0.0004170)':x='iw-iw/zoom':y='0':fps=60:d=60* TIMESTAMP2 :s=1080x1920,


I set this to expected duration of each image i.e, 4, 6, 6, 6, 5


setpts = PTS - STARTPTS+ TIMESTAMP3 /TB


I set this to cumulative offset from 0 i.e, 0, 4, 10, 16, 22


Additionally, I ensured that
TIMESTAMP2 + TIMESTAMP3 = time at which each image display should end ie., 4, 10, 16, 22, 27


xfade=transition=circlecrop:duration=1.00:offset=TIMESTAMP4


=======


Few problems


- 

- The transition between images, is not as per the times i expect
- Overall clip length is long 10:43 as opposed to expected 00:27
- Overall processing time is 5+ minutes








Am i missing something ?