Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (67)

  • 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 (...)

  • 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 (...)

  • 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 (12033)

  • need to loop and convert the files

    24 décembre 2020, par AUDICOM

    My script should work as follows :
Check whether or not there are DAV files in the folder, if there are NO elements for a 1 minute loop until the next check, and if there are any DAV files, it should trigger DAV to JPEG conversion and move JPEGs to the SNAPSHOT folder, and DAV for PROCESSED folder. Until it works, the problem is finishing the conversion to JPEG and moving the files to folders, it closes the script, and it goes back to the loop and waits for a new file, this is not happening.

    


    Another problem is also that the files are generated every 30 minutes in bulk, but they already appear in bulk and therefore end when the 30 minutes are over, or the problem is when the script ends or the script just moves to one. PROCESSED folder, and does not convert.

    


    Script :

    


    REM -  - Checks for New Files (*.DAV).

:LOOP01    
     IF EXIST "C:\Users\AudicomRede\Documents\SNAPSHOT FINAL\TESTE VERIFICAÇÃO\*.*" GOTO SKIP01


:LOOP02
     IF NOT EXIST "C:\Users\AudicomRede\Documents\SNAPSHOT FINAL\TESTE VERIFICAÇÃO" GOTO SKIP02

     REM - ALL THIS WILL BE DONE IF THE DAV FILE EXISTS
:
:
:SKIP01
    REM Crafty 1 minute delay...
       PING 1.1.1.1 -n 10 -w 6000 >NUL
           GOTO LOOP01
:
:
:SKIP02
    REM START CONVERT
       for %%A IN (*.dav) do (

            ffmpeg -i "%%A" -r 0.2 -bt 20M -s 480x300 "%%~nA"%%03d.jpg

                  Move "%%A" PROCESSED
                      Move "*.*" SNAPSHOT 
                          
)

 GOTO SKIP01


    


    I use FFMPEG to convert all files.

    


  • Evolution #2269 : Prise en compte des variantes d’une langue

    31 août 2011, par cedric -

    il est deja possible de gérer des langues dérivées : dans ton exemple ce serait fr_ca. Il y a le cas existant du pt_br (portugais du brésil). Mais il est un fait qu’actuellement, si la lange n’existe pas en pt_br on se rabat sur la langue du site ou le fr au final, sans forcément chercher dans pt (...)

  • moviepy write_videofile giving error on remote host

    30 juillet 2021, par HadiH2o

    I'm trying to put a logo on a video using the moviepy module
This module works properly on my PC(windows) but gives an error when I run the following code on the remote host I bought(linux).

    


    code :

    


    import random
import moviepy.editor as mp
import requests


def video_watermark(url):
    corners = [("right", "top"), ("left", "top"), ("right", "bottom"), ("left", "bottom")]
    response = requests.get(url)
    with open("media/videos/raw_video.mp4", "wb") as file:
        file.write(response.content)

    video = mp.VideoFileClip("./media/videos/raw_video.mp4")

    logo = (mp.ImageClip("./media/bold_logo.png")
            .set_duration(video.duration)
            .resize(height=50)  # if you need to resize...
            .margin(right=8, top=8, opacity=0)  # (optional) logo-border padding
            .set_pos(random.choice(corners)))

    final = mp.CompositeVideoClip([video, logo])
    final.write_videofile("./media/videos/ready_video.mp4")

video_watermark("url")


    


    error :

    


    OSError: [Errno 32] Broken pipe
 
MoviePy error: FFMPEG encountered the following error while writing
file ./media/videos/ready_video.mp4:
 
b'Error initializing output stream 0:0 -- Error while opening encoder
for output stream #0:0 - maybe incorrect parameters such as bit_rate,
rate, width or height\n'


    


    please help me to fix this problem