
Recherche avancée
Autres articles (111)
-
HTML5 audio and video support
13 avril 2011, parMediaSPIP 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, parLe 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 (...)
-
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)
Sur d’autres sites (14967)
-
How to import the CascadeClassifier module from Opencv ?
22 juillet 2015, par kylel95This porgram is to detect faces in the specified image. I have opencv and ffmpeg properly installed. Also, when I check the file path to see if CascadeClassifer was there, indeed it was. I somehow, still received the error :
AttributeError : ’module’ object has no attribute ’CascadeClassifer’. I was thinking maybe it should not be called using ’cv2.CascadeClassifier’ and maybe something more lengthy. Thank youimport cv2
import numpy as np
face_cascade = cv2.CascadeClassifer('haarcascade_frontalface_default.xml')
eye_cascade = cv2.CascadeClassifier('haarcascade_eye.xml')
image = cv2.imread('image.png')
gray = cv2.cvtColor(image, cv2.COLOR_RGB2GRAY)
faces = face_cascade.detectMultiScale(gray, 1.3, 5)
for (x,y,w,h) in faces:
cv2.rectangle(image,(x,y),(x+w,y+h), (225,0,0),2)
roi_gray = gray[y:y+h, x:x+w]
roi_color = image[y:y+h, x:x+w]
eyes = eye_cascade.detectMultiScale(roi_gray)
for (ex,ey,ew,eh) in eyes:
cv2.rectangle(roi_color,(ex,ey),(ex+ew,ey+eh),(0,255,0),2)
cv2.imshow('Imgae', image)
cv2.waitKey(0)
cv2.destroyAllWindows() -
Set the width of text in FFMPEG
7 juin 2020, par Super GadgetsI am currently stuck with ffmpeg issue, I have an online video editor where users can add text and edit it.



So I make an overlay div over the tag to let the user see exactly what the video will look like after render.



But here is the issue : How can I get the css and let ffmpeg apply it on the text, the css will be the div where the transcription is how width, height , margins , colors ...



Here is an example of a box :



<div style="width:100px;text-align:center;top:10px;left:10px> TEXT HERE <div>&#xA;

 ;
 ;
P.s : I tried Aegisub, force_style but no options seems to offer setting the width of the box.

 ;
 ;
Is there any way to do this ? Thank you.

 ;">
avcodec : fix aac/ac3 parser bitstream buffer size
avcodec : fix aac/ac3 parser bitstream buffer sizeBuffers containing copies of the AAC and AC3 header bits were not padded
before parsing, violating init_get_bits() buffer padding requirement,
leading to potential buffer read overflows.
This change adds FF_INPUT_BUFFER_PADDING_SIZE bytes to the bit buffer
for parsing the header in each of aac_parser.c and ac3_parser.c.Based on patch by : Matt Wolenetz <wolenetz@chromium.org>
Signed-off-by : Michael Niedermayer <michaelni@gmx.at>