Recherche avancée

Médias (0)

Mot : - Tags -/médias

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (21)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

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

    Pré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 2013

    Puis-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 (4501)

  • ffmpeg C API (libswscale) : Scale a frame into an output frame with given width/height preserving aspect ratio, fill out the rest with transparency

    12 juin 2015, par nik4emniy

    Note : I need to use ffmpeg’s C API in my project.
    Input : video(let’s say,first frame)/image, output_width, output_height
    Output : PNG image with output_width/output_height.

    What I’ve done so far :

    a) decoded a frame from input into frame1

    b) sws_scale frame1 with needed context (output_width, output_height) into frame2

    c) initialized AVCodec CODEC_ID_PNG

    d) encoded frame2 into initialized AVPacket

    e) wrote AVPacket’s data into file

    So I have a working cycle that produces a PNG image, but it doesn’t save the aspect ratio (obviously).
    What I want to achieve is do the same thing preserving aspect ratio (which would change the frame2’s width||height), but then "centring" that image and filling out the "empty" parts with tranparent layer in the final PNG.

    Does anyone have an idea on how this can be achieved ?
    Again, I need to use C API, not command line.

  • Getting the aspect ratio of any video

    18 février 2020, par Snip Hop

    I want to get the aspect ratio of nay video in android like (1:1, 9:16 etc). Currently i get the height and width of a video but i want the aspect ratio. Is this task is possible with Ffmpeg or MediaMetadataRetriever ? If yes, then please give me some example code. If no, then please suggest me the other solutions.

  • How can I concatenate different videos while maintaining the original display and aspect ratio ?

    11 décembre 2019, par Lauren

    Is it possible to concatenate different videos with different aspect ratio into a single video ? And also in the end the final video would maintain the original aspect ratio of each part.

    I’ve tried the following FFmpeg command :

    ffmpeg -i 1.mp4 -i 2.mp4 -y -filter_complex "[0:v:0] [0:a:0] [1:v:0] [1:a:0] concat=unsafe=1:n=2:v=1:a=1 [v] [a]" -map "[v]" -map "[a]" out.mp4

    I’m using unsafe=1 which almost works.

    The only issue is that some videos stretch.
    So, how can I concatenate different videos while maintaining the original display and aspect ratio ?