Recherche avancée

Médias (2)

Mot : - Tags -/media

Autres articles (64)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (9472)

  • Audio-Video Delay When Fetching From NGINX-RTMP live-Mode

    17 novembre 2020, par Suuuehgi

    We get an RTSP-stream and mix it together with line-in over pulseaudio.

    


    This looks something like :

    


    ffmpeg \&#xA;  -use_wallclock_as_timestamps 1  -fflags &#x2B;genpts    \&#xA;  -max_delay 2000000 -thread_queue_size 1024         \&#xA;  -i "rtsp://url"           \&#xA;  -use_wallclock_as_timestamps 1  -fflags &#x2B;genpts    \&#xA;  -max_delay 2000000 -thread_queue_size 1024         \&#xA;  -itsoffset <offset>       \&#xA;  -f pulse                  \&#xA;  [...]&#xA;</offset>

    &#xA;

    So far so good. This kind of works when fetching the rtsp stream directly.

    &#xA;

    As soon as we route the RTSP-stream through an NGINX-RTMP loopback&#xA;(live mode) beforehand,

    &#xA;

    ffmpeg -i rtsp://url -c copy -an -f flv rtmp://localhost/live&#xA;&#xA;ffmpeg \&#xA;  -use_wallclock_as_timestamps 1  -fflags &#x2B;genpts    \&#xA;  -max_delay 2000000 -thread_queue_size 1024         \&#xA;  -i "rtmp://localhost/live"                         \&#xA;  -use_wallclock_as_timestamps 1  -fflags &#x2B;genpts    \&#xA;  -max_delay 2000000 -thread_queue_size 1024         \&#xA;  -itsoffset <offset>                                \&#xA;  -f pulse                                           \&#xA;  [...]&#xA;</offset>

    &#xA;

    we get a delay of close to 5 s within the output (audio-video offset).

    &#xA;

    Whereat the configuration of rtmp ://localhost/live is :

    &#xA;

    application live {&#xA;      live on;&#xA;      sync 10ms;&#xA;      record off;&#xA;      allow publish 127.0.0.1;&#xA;      deny publish all;&#xA;      }&#xA;

    &#xA;

    What causes the delay and how to get rid of it ?

    &#xA;

    The RTMP-server itself does not cause a noticeable delay, I hence&#xA;assume this to be a timestamp issue but my wisdom ends with the above&#xA;written options.

    &#xA;

  • Streaming live video from ios [closed]

    15 février 2018, par John

    I have a need to stream video from the iPhone/iPad camera to a server. It looks like this will need to be done with AVCaptureSession but I don’t know how to best architect this.

    I found this post :

    streaming video FROM an iPhone

    But it doesn’t handle the "live" part, latency needs to be 2 or 3 seconds at most. Devices can be constrained to 4 or 4S capability if needed, and there is no requirement for HD, VGA is probably what we’ll end up with. I assume any solution would use ffmpeg, I haven’t found any more appropriate library.

    How is this best accomplished ?

  • Stream to Facebook Live using OpenCV

    23 mai 2022, par Lanzy Erin

    I am planning to stream a video file to Facebook Live but I want to programmatically edit its frames like adding texts depending. My problem is that I don't know how to properly send data to Facebook Live. I tried ffmpeg but it doesn't work.

    &#xA;

    Here is my code that I tried

    &#xA;

    import subprocess&#xA;import cv2&#xA;&#xA;rtmp_url = "rtmps://live-api-s.facebook.com:443/rtmp/FB-1081417119476224-0-AbwwMK91tFTjFy2j"&#xA;&#xA;path = "7.mp4"&#xA;cap = cv2.VideoCapture(path)&#xA;&#xA;# gather video info to ffmpeg&#xA;fps = int(cap.get(cv2.CAP_PROP_FPS))&#xA;width = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH))&#xA;height = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT))&#xA;&#xA;# command and params for ffmpeg&#xA;command = [&#x27;ffmpeg&#x27;,&#xA;           &#x27;-y&#x27;,&#xA;           &#x27;-f&#x27;, &#x27;rawvideo&#x27;,&#xA;           &#x27;-vcodec&#x27;, &#x27;rawvideo&#x27;,&#xA;           &#x27;-pix_fmt&#x27;, &#x27;bgr24&#x27;,&#xA;           &#x27;-s&#x27;, f"{width}x{height}",&#xA;           &#x27;-r&#x27;, str(fps),&#xA;           &#x27;-i&#x27;, &#x27;-&#x27;,&#xA;           &#x27;-c:v&#x27;, &#x27;libx264&#x27;,&#xA;           &#x27;-pix_fmt&#x27;, &#x27;yuv420p&#x27;,&#xA;           &#x27;-preset&#x27;, &#x27;ultrafast&#x27;,&#xA;           &#x27;-f&#x27;, &#x27;flv&#x27;,&#xA;           rtmp_url]&#xA;&#xA;# using subprocess and pipe to fetch frame data&#xA;p = subprocess.Popen(command, stdin=subprocess.PIPE)&#xA;&#xA;while cap.isOpened():&#xA;    ret, frame = cap.read()&#xA;    if not ret:&#xA;        print("frame read failed")&#xA;        break&#xA;&#xA;    # YOUR CODE FOR PROCESSING FRAME HERE&#xA;&#xA;    # write to pipe&#xA;    p.stdin.write(frame.tobytes())&#xA;

    &#xA;