
Recherche avancée
Autres articles (70)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)
Sur d’autres sites (6059)
-
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)



-
Revision 228 : Fixed help text.
15 juin 2011, par marc.noirotChanged Paths :
Modify /trunk/src/flvmeta.c
Fixed help text. -
How to extract duration time of online videos listed in a text file
22 août 2022, par GinofalaciI need to check the duration of thousand of videos online. I m trying to get this from a text file containing the urls of the videos.


I have those two commands that are working great with one url, but i don't find out how to get it work with a list within a file text.


fmpeg -i My.url 2>&1 | grep "Duration"| cut -d ' ' -f 4 | sed s/,//



or this :


ffmpeg -i my.url 2>&1 | grep Duration | sed 's/Duration: \(.*\), start/\1/g'



im trying :


fmpeg -i listurls.txt 2>&1 | grep "Duration"| cut -d ' ' -f 4 | sed s/,//



or this :


ffmpeg -i listurls.txt 2>&1 | grep Duration | sed 's/Duration: \(.*\), start/\1/g'



my file text is like this :


myurl1.m3u8

myurl2.m3u8

myurl3.m3u8

myurl4.m3u8

myurl5.m3u8

I've also tried :


file 'myurl1.m3u8'

file 'myurl2.m3u8'

file 'myurl3.m3u8'

file 'myurl4.m3u8'

file 'myurl5.m3u8'

but it doesn't work.


Also some videos might not be online anymore, but still referenced, so it would give no result, but I would like if possible to have the result "0" than nothing, it will be much easier to use the results afterwards.


(awk, sed, mediainfo, exiftool, any will be good, ) Thanks in advance.