
Recherche avancée
Médias (1)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
Autres articles (49)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
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. -
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 (3641)
-
python ffmpeg not decoding text from webcam video frame
13 juin 2024, par sar5050I am trying to construct python script with ffmpeg command to capture a webcam, decode the text from the camera frame and stream the same through an RTSP stream. I am able to receive the streaming through the player, but text decoding is not happening with the following example code : Help is needed to understand the problem, whether it is a piping problem or any other mistake in the code.


ffmpeg_cmd = (
 "ffmpeg -f v4l2 -framerate 30 -video_size 1280x720 -i /dev/video0 -f alsa -i hw:0 -c:v libx264 -preset ultrafast -tune zerolatency -pix_fmt yuv420p -c:a aac -b:a 128k -f rtsp rtsp://localhost:8554/stream"
)

pytesseract_cmd = (
 "pytesseract --tessdata-dir /usr/share/tesseract-ocr/4.00/tessdata/ -l eng --oem 3 --psm 6 stdin stdout"
)

ffmpeg_process = subprocess.Popen(ffmpeg_cmd.split(), stdout=subprocess.PIPE)
pytesseract_process = subprocess.Popen(pytesseract_cmd.split(), stdin=ffmpeg_process.stdout, stdout=subprocess.PIPE)

while True:
 frame = np.frombuffer(ffmpeg_process.stdout.read(1280*720*3), dtype=np.uint8).reshape((720, 1280, 3))
 text = pytesseract_process.stdout.readline().strip()
 print(text)



-
How to draw text on a rectangle with rounded corners using ffmpeg ?
2 mars 2023, par eugene_prgI'm trying to draw text on a rectangle with rounded corners using ffmpeg, but my current command is not working.




Here's what I've tried :


ffmpeg -y -i ./video-ready-all.mp4 -filter_complex "drawbox=y=0:color=white@0.5:width=iw:height=40:t=max, drawbox=y=0.5*(ih-40):color=black@0.5:width=iw:height=40:t=max:round=20, drawtext=text=\'My Text Here\':fontcolor=white:fontsize=24:x=(w-tw)/2:y=(h-40-th)/2" -c:a copy ./output.mp4



Unfortunately, this gives me an error "Option 'round' not found". Does anyone have any ideas on how to draw a rectangle with rounded corners using ffmpeg and overlay text on it ? Thanks in advance !


Any ideas are welcomed !


-
How to watermark text on video sliding from right top to right bottom vertically
23 juillet 2015, par Durgesh GuptaHow to watermark text on video sliding from right top to right bottom vertically ?
This is my command :
ffmpeg -i /usr/home/test.mp4 -vf "drawbox=x=iw-42:y=0:w=42:h=ih:color=black@0.5:t=80,drawtext=fontfile=/usr/share/fonts/truetype/freefont/FreeSerifBold.ttf:text='Hello World':fontcolor=white@1.0:fontsize=16: y=(mod(2*n\,h+th)-th):x=w-tw-10" -codec:v libx264 -codec:a copy -strict -2 /usr/home/out.mp4
please help me out