Recherche avancée

Médias (91)

Autres articles (55)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une 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 (...)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

Sur d’autres sites (9163)

  • why can't I access rtsp camera in python ?

    6 septembre 2024, par Come Oh

    I'm trying to access an RTSP camera in Python and get frame information from it.

    


    One of the camera options is RTSP authentication, and when I include it, VLC asks for login information. ('[rtsp @ ] method DESCRIBE failed : 401 Unauthorized')

    


    If I turn it off, I can access it regardless of ID or PW, but if I turn it on, I can't access it from Python.

    


    I verified that it works by putting the same RTSP address, ID, and PW in VLC, and it doesn't contain any symbols like '@' which is a common problem.

    


    I used several libraries, including Opencv, ffmpeg, and others, and got the same
'[rtsp @ ] method DESCRIBE failed : 401 Unauthorized' and only this error appears

    


    What could be the cause,,, please help...

    


    import cv2

url = "rtsp://username:password@camera_ip:554/stream_path"

cap = cv2.VideoCapture(url)

if not cap.isOpened():
    print("Failed to open RTSP stream.")
    exit()

while True:
    ret, frame = cap.read()
    if not ret:
        print("Failed to read frame.")
        break
    cv2.imshow('RTSP Stream', frame)
    if cv2.waitKey(1) & 0xFF == ord('q'):
        break

cap.release()
cv2.destroyAllWindows()


    


    I tried running the above code and debugging it using the ffmpeg library.

    


  • why can't access rtsp camera in python ?

    6 septembre 2024, par Come Oh

    I'm trying to access an RTSP camera in Python and get frame information from it.

    


    One of the camera options is RTSP authentication, and when I include it, VLC asks for login information. ('[rtsp @ ] method DESCRIBE failed : 401 Unauthorized')

    


    If I turn it off, I can access it regardless of ID or PW, but if I turn it on, I can't access it from Python.

    


    I verified that it works by putting the same RTSP address, ID, and PW in VLC, and it doesn't contain any symbols like '@' which is a common problem.

    


    I used several libraries, including Opencv, ffmpeg, and others, and got the same
'[rtsp @ ] method DESCRIBE failed : 401 Unauthorized' and only this error appears

    


    What could be the cause,,, please help...

    


    import cv2

url = "rtsp://username:password@camera_ip:554/stream_path"

cap = cv2.VideoCapture(url)

if not cap.isOpened():
    print("Failed to open RTSP stream.")
    exit()

while True:
    ret, frame = cap.read()
    if not ret:
        print("Failed to read frame.")
        break
    cv2.imshow('RTSP Stream', frame)
    if cv2.waitKey(1) & 0xFF == ord('q'):
        break

cap.release()
cv2.destroyAllWindows()


    


    I tried running the above code and debugging it using the ffmpeg library.

    


  • Protect files from direct access by url on iis server and MVC APP with identity

    19 octobre 2022, par Ahmed Ramadan

    i have MVC app with identity authentication
this site business is playing video which edited by ffmpeg .

    


      <video class="video-js vjs-default-skin" width="640" height="360" controls="controls">&#xA;    <source src="video\index.m3u8" type="application/x-mpegURL">&#xA;</source></video>&#xA;

    &#xA;

    i want to prevent direct access from browser to this link , unless user has session&#xA;https://localhost/vide/index.m3u8

    &#xA;

    i tired this code for config file

    &#xA;

    &#xA;        <authorization>&#xA;            <deny users="?"></deny>&#xA;        </authorization>&#xA;    &#xA;

    &#xA;

    but i still be able to access the file and not able to aceess folder

    &#xA;

    ex :-

    &#xA;

    https://localhost/video/index.m3u8 &#xA;

    &#xA;

    accessible

    &#xA;

        https://localhost/video&#xA;

    &#xA;

    Not accessible !

    &#xA;

    i tried this link , but still not get it&#xA;how to deny user to access sub folders and file ?

    &#xA;