Recherche avancée

Médias (33)

Mot : - Tags -/creative commons

Autres articles (89)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

Sur d’autres sites (12264)

  • Streaming an IP camera through node.js

    18 juillet 2021, par Jacob

    I am trying to get an IP camera stream to run in the browser, and eventually phones. However, I am running into a problem accessing the RTSP stream through ffmpeg.
I am running the command below, substituting the correct info. I changed the camera to a static IP address and copied the IP address to STATIC_IP.

    


    /opt/homebrew/bin/ffmpeg -i rtsp://USER:PASS@STATIC_IP:554/stream1 -fflags flush_packets -max_delay 5 -flags -global_header -hls_time 5 -hls_list_size 3 -vcodec copy -y .\videos\ipcam\index.m3u8


    


    The build is logging the following :

    


    ffmpeg version 4.4 Copyright (c) 2000-2021 the FFmpeg developers
  built with Apple clang version 12.0.5 (clang-1205.0.22.9)
  configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/4.4_2 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-avresample --enable-videotoolbox
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
[rtsp @ 0x11b008200] CSeq 2 expected, 1 received.
rtsp://USER:PASS@STATIC_IP:554/stream1: Server returned 400 Bad Request


    


    I do not know what the CSeq 2 expected 1 received line is referring to so I am having trouble diagnosing the problem. Any help is appreciated.

    


  • How to take RTSP stream from camera and redirect to UDP server sink with Python

    13 juillet 2021, par RiccardoB

    I am using Python in order to take a RTSP stream and now I want to push the streaming to a UDP server using a Python software as "proxy". So far I have written this code but I have no idea how to decode and view the video on the UDP server sink.

    


    import cv2
import socket
import numpy as np
import pickle

stream_source = "rtsp://192.168.10.XXX:554"
vcap = cv2.VideoCapture(stream_source)
socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
socket .connect(("127.0.0.1", 8780))
while(1):
    ret, frame = vcap.read()
    if ret:
        frame_array = np.array(frame)
        data_to_send = pickle.dumps(frame_array)
        socket.send(data_to_send)


    


  • ffmpeg-python extracting frames from camera in batches

    28 juin 2021, par Alter

    When I read frames from my camera using ffmpeg-python, the frames appear to come in batches of 4- why is this, and how can I change it ?

    


    I would like to get one frame at a time... I'm also hoping to avoid faking the frame times using the -r option

    


    enter image description here

    


    In the image above, I'm recording at 30fps. The 120ms pause followed by 3 quick frames suggests that the frames are coming in batches of 4.

    


    Partial code

    


    reader = (ffmpeg
    .input('/dev/video0', framerate=fps)
    .output('pipe:', format='rawvideo', pix_fmt='rgb24')
    .run_async(pipe_stdout=True))
    
while True:
    start = time.time_ns()
    frame = reader.stdout.read(width * height * 3)
    logger.debug(f'frame read time: {(time.time_ns() - start)/1e6}ms')
    # Do something else
    logger.debug(f'frame capture loop: {(time.time_ns() - start)/1e6}ms')