Recherche avancée

Médias (0)

Mot : - Tags -/formulaire

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

Autres articles (95)

  • Configuration spécifique pour PHP5

    4 février 2011, par

    PHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
    Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
    Modules spécifiques
    Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (7912)

  • ffmpeg-python outputs black screen when trying to save as mp4

    3 mars 2023, par Saya

    This is my code. I am trying to make a video out of all pictures in the pics2 directory using ffmpeg.

    


    import subprocess

command = 'ffmpeg -framerate 1 -i "pics2/Image%02d.png" -r 1 -vcodec libx264 -s 1280x720 -pix_fmt yuv420p Output.mp4'
p = subprocess.call(command, shell=True)


    


    This saves an Output.mp4 successfully but the video has no frames (It is completely black)

    


    How do I solve this ?

    


  • Overlaying one video on another one, and making black pixels transparent

    25 janvier 2023, par Michael A

    I'm trying to use FFMPEG to create a video with one video overlayed on top another.

    



    I have 2 MP4s. I need to make all BLACK pixels in the overlay video transparent so that I can see the main video underneath it.

    



    I found two ways to overlay one video on another :

    



    First, the following positions the overlay in the center, and therefore, hides that portion of the main video beneath it :

    



        ffmpeg -i 1.mp4 -vf "movie=2.mp4 [a]; [in][a] overlay=352:0 [b]" combined.mp4 -y


    



    And, this one, places the overlay video on the left, but it's opacity is set to 50% so at least other one beneath it is visible :

    



    ffmpeg -i 1.mp4 -i 2.mp4 -filter_complex "[0:v]setpts=PTS-STARTPTS[top]; [1:v]setpts=PTS-STARTPTS, format=yuva420p,colorchannelmixer=aa=0.5[bottom]; [top][bottom]overlay=shortest=0" -acodec libvo_aacenc -vcodec libx264 out.mp4 -y


    



    My goal is simply to make all black pixels in the overlay (2.mp4) completely transparent. How can this be done.

    


  • ffmpeg - convert background to black ? [closed]

    22 juin 2022, par david furst

    the basic problem
    
convert all pixels in all frames of a source video to black if they have a white value below a certain threshold and output the results as a series of static images with no transparency.

    


    my solution so far
    
i am able to do this with a two-step process :

    


      

    1. convert pixels below the threshold to transparent using ffmpeg's colorkey filtre, outputting a series as PNG.
    2. 


    3. use imagemagick to convert the PNG to JPEG.
    4. 


    


    this approach is very slow. ideally i'd like to do everything in one go, within ffmpeg.

    


    the reason i haven't been able to do that so far is that the resulting transparency isn't discarded (as i'd hoped) when outputting to non-transparent formats like JPG, even if i try to 'discard' the alpha layer beforehand using combinations of split and lutrgb ; the resulting JPEGs still resemble the original images.

    


    my current filter chain :

    


    ffmpeg -hide_banner -y -i input.mp4 -f lavfi -i color=c=white \
    -filter_complex "[0:v]format=gray[src];
        [1][src]scale2ref[white][vid];
        [vid][white]blend=all_mode=multiply:shortest=1,colorkey=black:0.95" %05d.png