Recherche avancée

Médias (9)

Mot : - Tags -/soundtrack

Autres articles (62)

  • 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

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

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

Sur d’autres sites (8200)

  • FFMPEG - local video to UDP streaming to OpenCV - video quality degraded

    6 juin 2021, par user3925023

    my goal is to re-stream local video content / desktop screencasting, to an UDP flow that I need to process on a Python script.

    &#xA;&#xA;

    Here is the FFMPEG script that I'm using :

    &#xA;&#xA;

    ffmpeg -re -i C:\Users\test\Downloads\out.ts -strict -2 -c:v copy -an -preset slower -tune stillimage -b 11200k -f rawvideo udp://127.0.0.1:5000&#xA;

    &#xA;&#xA;

    And here is the simple Python script supposed to read the stream flow :

    &#xA;&#xA;

    import cv2&#xA;&#xA;cap = cv2.VideoCapture(&#x27;udp://127.0.0.1:5000&#x27;,cv2.CAP_FFMPEG)&#xA;if not cap.isOpened():&#xA;    print(&#x27;VideoCapture not opened&#x27;)&#xA;    exit(-1)&#xA;width = cap.get(cv2.CAP_PROP_FRAME_WIDTH)  # float&#xA;height = cap.get(cv2.CAP_PROP_FRAME_HEIGHT)  # float&#xA;print(str(width))&#xA;print(str(height))&#xA;while True:&#xA;    ret, frame = cap.read()&#xA;    imgray = frame[int(round((height/100)*70,0)):int(round((width/100)*42,0)), int(round((height/100)*74,0)):int(round((width/100)*54,0))]&#xA;    if not ret:&#xA;        print(&#x27;frame empty&#x27;)&#xA;        break&#xA;    cv2.imshow(&#x27;image&#x27;, imgray)&#xA;    if cv2.waitKey(1)&amp;0XFF == ord(&#x27;q&#x27;):&#xA;        break&#xA;cap.release()&#xA;

    &#xA;&#xA;

    I'm able to visualize portion of the stream video as expect, but I'm facing lot of issue in video quality degradation, specially video artifact probably due missing packet processing :

    &#xA;&#xA;

    enter image description here

    &#xA;&#xA;

    Also these are error log I'm geting from script :

    &#xA;&#xA;

    [h264 @ 0000026eb272f280] error while decoding MB 105 66, bytestream -21&#xA;[h264 @ 0000026eb2fcb740] error while decoding MB 100 53, bytestream -11&#xA;[h264 @ 0000026eb272f280] error while decoding MB 32 22, bytestream -11&#xA;[h264 @ 0000026ead9ee300] error while decoding MB 60 20, bytestream -25&#xA;[h264 @ 0000026eb27f00c0] error while decoding MB 9 62, bytestream -5&#xA;[h264 @ 0000026ead9ee780] error while decoding MB 85 44, bytestream -5&#xA;[h264 @ 0000026eb27f0800] error while decoding MB 64 25, bytestream -15&#xA;[h264 @ 0000026eb272f280] error while decoding MB 112 23, bytestream -17&#xA;[h264 @ 0000026eb2735200] error while decoding MB 30 21, bytestream -7&#xA;

    &#xA;&#xA;

    Actually I don't care about video fluidity,I can also reduce the FPS, important thing is the video quality. Not sure if I'm doing wrong on the scripting python part or if I'm using wrong FFMPEG command.

    &#xA;&#xA;

    Many Thanks

    &#xA;

  • Cannot stream webcam using ffserver because of malloc error [migrated]

    21 septembre 2012, par user1509326

    I was following this tutorial RaspBerry Pi webcam and when I run the following command from root :

    $ ffserver -f /root/ffserver.conf &amp; ffmpeg -v 2 -r 5 -s 640x480 -f video4linux2 -i /dev/video1` http://localhost:8090/webcam.ffm

    The camera is turned on and everything is fine, except it does not stream. I checked the terminal. From video 1, I get the following error :

    bind(port 8090): Address already in use
    *** glibc detected *** ffmpeg: malloc(): smallbin double linked list corrupted: 0x0000000000e5ac00 **

    When I use another port like 5000, I get the same result :

    $ ffserver -f /root/ffserver.conf &amp; ffmpeg -v 2 -r 5 -s 640x480 -f video4linux2 -i /dev/video1 http://localhost:8090/webcam.ffm
    [2] 3795
    avserver version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
     built on Jun 12 2012 16:52:09 with gcc 4.6.3
    *** glibc detected *** ffmpeg: malloc(): smallbin double linked list corrupted: 0x0000000000b77c00 ***
  • malloc error ubuntu ffmpeg server not streaming

    21 septembre 2012, par user1509326

    enter code hereI was following this tutorial http://jeremyblythe.blogspot.com/2012/05/raspberry-pi-webcam.html and when i run the following command from root

    ffserver -f /root/ffserver.conf &amp; ffmpeg -v 2 -r 5 -s 640x480 -f video4linux2 -i /dev/video1` http://localhost:8090/webcam.ffm

    The camera is turned on and everything is fine, except it does not stream, i checked the terminal and it says the following.

    from video 1 i get the following error
    bind(port 8090): Address already in use
    *** glibc detected *** ffmpeg: malloc(): smallbin double linked list corrupted: 0x0000000000e5ac00 **

    when i another port like 5000 i get the same result

    ffserver -f /root/ffserver.conf &amp; ffmpeg -v 2 -r 5 -s 640x480 -f video4linux2 -i /dev/video1 http://localhost:8090/webcam.ffm
    [2] 3795
    avserver version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
     built on Jun 12 2012 16:52:09 with gcc 4.6.3
    *** glibc detected *** ffmpeg: malloc(): smallbin double linked list corrupted: 0x0000000000b77c00 ***