Recherche avancée

Médias (0)

Mot : - Tags -/api

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

Autres articles (23)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (4296)

  • Add an image behind a video file (.mp4) in python

    12 avril 2020, par George Lua

    I am attempting to add an image behind a video using moviepy and cannot come up with any way to do it. My image dimension is (1080 x 720) and my video dimension is (200 x 200). I am trying to put the video file on top of the image file, place it in the midlle and export the final video with the dimensions of the image. This is a visual representation of what I am trying to achieve :

    



    View image

    



    I tried doing this with the following code, but could not manage to get it to work. Any help is seriously appreciated :)

    



    import moviepy
import moviepy.editor as mp

video = mp.VideoFileClip("/media/pi/vid.mp4")

logo = (mp.ImageClip("/media/pi/pic.png"))

# Preferably I would want the image to be the same duration as the video file. 
# The following was just for testing.
final = mp.CompositeVideoClip([video, logo.set_duration(3)])
final.write_videofile("test.mp4")


    


  • Combine multiple images into a video using ffmpeg [closed]

    13 avril 2021, par Mayank Thapliyal

    I want to combine multiple images into a video. I will use ffmpeg with Python as Python script will help me select images accordingly. And I have to fulfill multiple conditions :

    


      

    1. Frame-rate will be 0.2 (5 second for each image).

      


    2. 


    3. Screen-Ratio should be 18:9. But all images have different dimensions. And neither I want to crop nor I want to stretch them. So I want to pad them with a black background.

      


    4. 


    5. Ability to add background music.

      


    6. 


    


    But the issue is that I am not able to adjust images. Either images get stretched to full screen or they get cropped. So currently first I use PIL library to adjust images first then combine them with ffmpeg. But it takes a good amount of time and I don't like this approach.

    


    Please help me solve my issue by only using ffmpeg (I guess that it will be fast enough).

    


  • How to set pad with PHP-FFMpeg ?

    15 septembre 2020, par DenVebber

    I use PHP-FFMpeg library (https://github.com/PHP-FFMpeg/PHP-FFMpeg) and try to do this :

    


    ffmpeg -i input.mp4 -vf "crop=960:1080, scale=960:1080,pad=w=960+iw:h=ih:x=960:y=0" output.mp4


    


    I have a video with dimensions 1920x1080. In php I do this :

    


    $video = $ffmpeg->open('input.mp4');
$video->filters()->crop(new FFMpeg\Coordinate\Point(480, 0, true), new FFMpeg\Coordinate\Dimension(960, 1080));
$video->save(new FFMpeg\Format\Video\x264('aac'), 'output.mp4');


    


    I get a cropped video in the center of the frame but not on the right side. How can I move output.mp4 or set the correct starting point ?