Recherche avancée

Médias (1)

Mot : - Tags -/artwork

Autres articles (91)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Encodage et transformation en formats lisibles sur Internet

    10 avril 2011

    MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
    Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
    Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP 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" (...)

Sur d’autres sites (7118)

  • moov atom not found (Extracting unique faces from youtube video)

    10 avril 2023, par Tochukwu

    I got the error below

    


    Saved 0 unique faces
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000024f505224c0] moov atom not found


    


    Trying to extract unique faces from a YouTube video with the code below which is designed to download the YouTube video and extract unique faces into a folder named faces. I got an empty video and folder. Please do check the Python code below

    


    import os
import urllib.request
import cv2
import face_recognition
import numpy as np

# Step 1: Download the YouTube video
video_url = "https://www.youtube.com/watch?v=JriaiYZZhbY&t=4s"
urllib.request.urlretrieve(video_url, "video.mp4")

# Step 2: Extract frames from the video
cap = cv2.VideoCapture("video.mp4")
frame_count = int(cap.get(cv2.CAP_PROP_FRAME_COUNT))
frames = []
for i in range(frame_count):
    cap.set(cv2.CAP_PROP_POS_FRAMES, i)
    ret, frame = cap.read()
    if ret:
        frames.append(frame)
cap.release()

# Step 3: Detect faces in the frames
detected_faces = []
for i, frame in enumerate(frames):
    face_locations = face_recognition.face_locations(frame)
    for j, location in enumerate(face_locations):
        top, right, bottom, left = location
        face_image = frame[top:bottom, left:right]
        cv2.imwrite(f"detected_{i}_{j}.jpg", face_image)
        detected_faces.append(face_image)

# Step 4: Save the faces as separate images
if not os.path.exists("faces"):
    os.makedirs("faces")
known_faces = []
for i in range(len(detected_faces)):
    face_image = detected_faces[i]
    face_encoding = face_recognition.face_encodings(face_image)[0]
    known_faces.append(face_encoding)
    cv2.imwrite(f"faces/face_{i}.jpg", face_image)
print("Saved", len(known_faces), "unique faces")


    


  • udp : Allow specifying the local IP address

    9 novembre 2011, par Martin Storsjö

    udp : Allow specifying the local IP address

  • udp : Allow specifying the local IP address

    9 novembre 2011, par Martin Storsjö

    udp : Allow specifying the local IP address