Recherche avancée

Médias (3)

Mot : - Tags -/Valkaama

Autres articles (69)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Modifier la date de publication

    21 juin 2013, par

    Comment changer la date de publication d’un média ?
    Il faut au préalable rajouter un champ "Date de publication" dans le masque de formulaire adéquat :
    Administrer > Configuration des masques de formulaires > Sélectionner "Un média"
    Dans la rubrique "Champs à ajouter, cocher "Date de publication "
    Cliquer en bas de la page sur Enregistrer

Sur d’autres sites (5534)

  • Which library supports showing a secure RTSP stream on Windows ?

    26 octobre 2022, par Juergen

    I have a windows application that consumes streams from IP-Cameras.
Currently I am using WebEye, an open-source component that uses ffmpeg under the hood.
I now want to connect to an AXIS IP-Camera which supports RTSPS (RTSP over SSL/TLS).
Since WebEye doesn't support RTSPS directly I was hoping that I could get ffmpeg to do the job and adjust WebEye.
Alternatively I would use any other Streaming-Library that supports viewing a secure RTSPS-stream on Windows, but I didn't come across any.

    


    So, I guess my questions are :

    


      

    1. Are there any Windows-Tools that supports RTSPS-Streams
    2. 


    3. Are there any libraries that I can use in my Windows-application to show the RTSPS-stream ?
    4. 


    5. Can I get ffmpeg and/or ffplay to play the RTSPS-Stream ?
    6. 


    


    Thanks in advance for the help !

    


    Best Regards

    


    Juergen

    


  • How can I stream a secure RTSP camera stream on Windows ? [closed]

    27 octobre 2022, par Juergen

    I have a windows application that consumes streams from IP-Cameras.
Currently I am using WebEye, an open-source component that uses ffmpeg under the hood.
I now want to connect to an AXIS IP-Camera which supports RTSPS (RTSP over SSL/TLS).
Since WebEye doesn't support RTSPS directly I was hoping that I could get ffmpeg to do the job and adjust WebEye.
Alternatively I would use any other Streaming-Library that supports viewing a secure RTSPS-stream on Windows, but I didn't come across any.

    


    So, I guess my questions are :

    


      

    1. Are there any Windows-Tools that supports RTSPS-Streams that I can use for reference/testing ?
    2. 


    3. Are there any libraries that I can use in my Windows-application to show the RTSPS-stream ?
    4. 


    5. Can I get ffmpeg and/or ffplay to play the RTSPS-Stream ?
    6. 


    


    Thanks in advance for the help !

    


    Best Regards

    


    Juergen

    


  • Why does OpenCV read video faster than FFMPEG ?

    17 septembre 2022, par tadejsv

    I noticed that OpenCV reads video frames almost 2x faster than FFMPEG.

    


    Why is that ? I thought all OpenCV does is call FFMPEG under the hood, possibly adding its own overhead.

    


    Here's the code I use to obtain these results

    


    import cv2
import time
import numpy as np

cap = cv2.VideoCapture("BigBuckBunny.mp4", apiPreference=cv2.CAP_FFMPEG)
frames = int(cap.get(cv2.CAP_PROP_FRAME_COUNT))

start = time.perf_counter()
while True:
    ret, frame = cap.read()
    if ret is False:
        break
    assert frame.shape == (720, 1280, 3)
    assert frame.dtype == np.uint8
end = time.perf_counter()

print(f"{frames/(end-start):.1f} frames per second")
# Output: 692.3 frames per second

cap.release()


    


    For FFMPEG (using the python-ffmpeg library :

    


    import ffmpeg
import numpy as np
import time

vid_info = ffmpeg.probe("BigBuckBunny.mp4")['streams'][1]
frames = int(vid_info['nb_frames'])

process1 = (
    ffmpeg
    .input("BigBuckBunny.mp4")
    .output('pipe:', format='rawvideo', pix_fmt='bgr24')
)
print(process1.compile())
# Output: ['ffmpeg', '-i', 'BigBuckBunny.mp4', '-f', 'rawvideo', '-pix_fmt', 'bgr24', 'pipe:']


process1 = process1.run_async(pipe_stdout=True)

start = time.perf_counter()
while True:
    in_bytes = process1.stdout.read(1280 * 720 * 3)
    if not in_bytes:
        break
    frame = np.frombuffer(in_bytes, np.uint8).reshape([720, 1280, 3])
end = time.perf_counter()
print(f"{frames/(end-start):.1f} frames per second")
# Output: 373.6 frames per second
process1.wait()


    


    Here's information about the video ( 10 minutes length)

    


    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'BigBuckBunny.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isomavc1mp42
    creation_time   : 2010-01-10T08:29:06.000000Z
  Duration: 00:09:56.47, start: 0.000000, bitrate: 2119 kb/s
  Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
    Metadata:
      creation_time   : 2010-01-10T08:29:06.000000Z
      handler_name    : (C) 2007 Google Inc. v08.13.2007.
      vendor_id       : [0][0][0][0]
  Stream #0:1(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1991 kb/s, 24 fps, 24 tbr, 24k tbn, 48 tbc (default)
    Metadata:
      creation_time   : 2010-01-10T08:29:06.000000Z
      handler_name    : (C) 2007 Google Inc. v08.13.2007.
      vendor_id       : [0][0][0][0]


    


    And FFMPEG and OpenCV versions :

    


    ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers


    


    opencv-python-headless        4.6.0.66