
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (112)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains 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 ;
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;
Sur d’autres sites (12210)
-
moviepy write_videofile giving error on remote host
30 juillet 2021, par HadiH2oI'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


-
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 (...)
-
need to loop and convert the files
24 décembre 2020, par AUDICOMMy 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.