Recherche avancée

Médias (91)

Autres articles (75)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (13817)

  • "fixing" RTL texts from logical to visual, before embedding in video as subtitles with ffmpeg

    13 mai 2024, par Berry Tsakala

    I'm searching for the correct way to pre-process my subtitles files before hard-coding them into video clips.

    


    Currently, ffmpeg does not process RTL (right-to-left) languges properly ; I have detailed the problem here :
https://superuser.com/questions/1679536/how-to-embed-rtl-subtitles-in-a-video-hebrew-arabic-with-the-correct-lan

    


    However, there could be 2 programmatic solutions :

    


      

    1. adding certain unicode control characters can fix (or partially fix) the text, which is then fed into ffmpeg, giving good results.
    2. 


    


      

    • character 0x200F at the end of a hebrew clause, after punctuation
    • 


    • character 0x202B, I haven't yet learned its usage.
    • 


    


      

    1. I can edit the text so that it will produce the correct results on ffmpeg.
But that requires smart BiDi algorithm.
    2. 


    


    Do you know how to preprocess such text ?

    


    (this is NOT an encoding question. It is about RTL/LTR algorithm to use.)

    


    Thank you

    


  • How can I add a background image while combining *.png files using ffmpeg

    12 février 2023, par Walt Howard

    I'd like to add a background image while combining *.png files to make an mp4 file, using ffmpeg.

    


    Currently, I have to first create an animated gif using imagemagick convert, like this :

    


    convert -delay ${DELAY} -dispose Background *.png -coalesce null: ${BACKGROUND} -compose dstOver -layers composite -layers optimize -loop 0 planet.gif


    


    Then I process that animated gif using ffmpeg to optimize it :

    


    ffmpeg -i planet.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" planet.mp4


    


    Which sort of works, but is slow and has a problem. I craps out if I go above about 100 input files, and creates animated gifs that are basically just white screens.

    


    ffmpeg alone works great, and 100 times faster stitching the *.png files together

    


    ffmpeg -framerate 10 -pattern_type glob -i '*.png' -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" planet.mp4

    


    But, no background there. I haven't found anyway to add that background. Does ffmpeg even support such a thing ?

    


  • Pipe streaming video from FFMPEG into OpenCV

    8 juillet 2014, par wunjo

    I am using a Logitech C920 webcam with the beaglebone black running debian. I have successfully written an OpenCV python script that allows me get video from the camera and track objects. Unfortunately, the resolution, FPS, and overall video quality are poor using this method. I have found the proper code that allows me to utilize the webcam’s H264 feature outside of OpenCV.

    I’ve been trying to figure out how to pipe the output from ffmpeg INTO openCV so that I can utilize the camera’s H264 capabilities as my video input for my OpenCV script. My commands look like this :

    ./capture -F -o -c0|avconv -re -i - -vcodec copy -f rtp rtp ://192.168.7.1:1234/|python camera.py

    The first part of the pipe is using the linux v4l2 program that allows me to utilize my camera’s H264 capabilities. The output from that is then fed to ffmpeg and then streamed to RTP. I want to retrieve the RTP stream in my OpenCV script but I haven’t had success in getting it to work. Would I initialize something like the following in my script :

    capture = VideoCapture("rtp ://192.168.7.1:1234/")

    Please let me know if I am even going about this the right way. Is there a way to capture the stream directly from ffmpeg instead of streaming to RTP ? Any suggestions are greatly appreciated. Thank you !