Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP 0.2

Autres articles (84)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque 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, par

    Accé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, par

    Dixit 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 Reasno

    I'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 Niedermayer
    avformat/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-6548251853193216

    Found-by : continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavformat/ifv.c
  • ffmpeg combine multiple images - output video incorrect xfade transition time, and total length

    24 janvier 2021, par jsaluja

    I 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.

    &#xA;

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

    &#xA;

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

    &#xA;

    ====

    &#xA;

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

    &#xA;

    -loop 1 -t TIMESTAMP1

    &#xA;

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

    &#xA;

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

    &#xA;

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

    &#xA;

    setpts = PTS - STARTPTS+ TIMESTAMP3 /TB

    &#xA;

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

    &#xA;

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

    &#xA;

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

    &#xA;

    =======

    &#xA;

    Few problems

    &#xA;

      &#xA;
    1. The transition between images, is not as per the times i expect
    2. &#xA;

    3. Overall clip length is long 10:43 as opposed to expected 00:27
    4. &#xA;

    5. Overall processing time is 5+ minutes
    6. &#xA;

    &#xA;

    Am i missing something ?

    &#xA;