Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP

Autres articles (85)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • 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

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

Sur d’autres sites (5971)

  • Serving rtmp on port 1935

    22 mai 2020, par JJ The Second

    I've been trying to get ffmpeg to stream in rtmp but connection to port 1935 is always refused. I really don't know what else I can do to allow this connection.

    



    Here is what specs I'm running.

    



      

    • Ubuntu 18.04 (tried with 19.04) however same issue - here is why I think I've made a mistake
    • 


    • No Nginx installation at the moment
    • 


    • FFMPEG "ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)"
    • 


    



    This is the script I run :

    



    ffmpeg -i "test.mp4" -c:v copy -c:a copy -f flv "rtmp://127.0.0.1/stream/test"


    



    Error I get is :

    



    [tcp @ 0x55ff05ab8ce0] Connection to tcp://127.0.0.1:1935 failed: Connection refused


    



    I've done some research and been across many posts about ffserver.conf and I have made those changes but still no luck. Here is my config file. I also have ran ffserver once using this config.

    



    &#xA;&#xA;&#xA;HTTPPort 8090&#xA;HTTPBindAddress 127.0.0.1&#xA;MaxHTTPConnections 2000&#xA;MaxClients 1000&#xA;MaxBandwidth 1000&#xA;CustomLog -&#xA;&#xA;<feed>&#xA;&#xA;File /tmp/feed1.ffm&#xA;FileMaxSize 200K&#xA;&#xA;# Only allow connections from localhost to the feed.&#xA;ACL allow 127.0.0.1&#xA;ACL allow localhost     &#xA;ACL allow 192.168.0.0 192.168.255.255&#xA;</feed>&#xA;&#xA;<stream>&#xA;&#xA;# coming from live feed &#x27;feed1&#x27;&#xA;Feed feed1.ffm&#xA;&#xA;Format mpeg&#xA;AudioBitRate 32&#xA;&#xA;# Number of audio channels: 1 = mono, 2 = stereo&#xA;AudioChannels 2&#xA;AudioSampleRate 44100&#xA;&#xA;# Bitrate for the video stream&#xA;VideoBitRate 64&#xA;&#xA;# Ratecontrol buffer size&#xA;VideoBufferSize 40&#xA;&#xA;# Number of frames per second&#xA;VideoFrameRate 3&#xA;&#xA;&#xA;</stream>&#xA;&#xA;&#xA;<stream>&#xA;Feed feed1.ffm&#xA;Format asf&#xA;VideoFrameRate 15&#xA;VideoSize 352x240&#xA;VideoBitRate 256&#xA;VideoBufferSize 40&#xA;VideoGopSize 30&#xA;AudioBitRate 64&#xA;StartSendOnKey&#xA;</stream>&#xA;&#xA;# Special streams&#xA;&#xA;# Server status&#xA;&#xA;<stream>&#xA;Format status&#xA;&#xA;ACL allow localhost&#xA;ACL allow 127.0.0.1&#xA;ACL allow 192.168.0.0 192.168.255.255&#xA;&#xA;#FaviconURL http://pond1.gladstonefamily.net:8080/favicon.ico&#xA;</stream>&#xA;&#xA;<redirect>&#xA;URL http://www.ffmpeg.org/&#xA;</redirect>&#xA;

    &#xA;&#xA;

    Here is my ufw status :

    &#xA;&#xA;

    --                         ------      ----&#xA;22/tcp                     ALLOW       Anywhere&#xA;22                         ALLOW       Anywhere&#xA;1935/tcp                   ALLOW       Anywhere&#xA;22/tcp (v6)                ALLOW       Anywhere (v6)&#xA;22 (v6)                    ALLOW       Anywhere (v6)&#xA;1935/tcp (v6)              ALLOW       Anywhere (v6)&#xA;

    &#xA;&#xA;

    but still nothing, I've also opened ports in iptables but no luck. Here is how this is done :

    &#xA;&#xA;

    iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 1935 -j ACCEPT&#xA;&#xA;and&#xA;&#xA;iptables -A OUTPUT -m state --state NEW -m tcp -p tcp --dport 1935 -j ACCEPT&#xA;

    &#xA;&#xA;

    and still nothing, every time I run ffmpeg I get connection refused. I have previously installed nginx just to test but no luck.

    &#xA;&#xA;

    What am I doing wrong here ? Isn't this port suppose to be open now ?

    &#xA;&#xA;

    Thanks

    &#xA;

  • OpenCV VideoCapture can't read from stream

    18 décembre 2018, par Josep Valls

    I can open a stream in VLC but in OpenCV I cannot capture frames. (Python 2.7, OpenCV 3.4.3 binary distribution x86, Windows 10). I’ve been following this guide : https://medium.com/@tomgrek/hackers-guide-to-the-aws-deeplens-1b8281bc6e24 but I cannot seem to read from random streams online (not sure whether I should be able to, I saw this question opencv videocapture can’t open MJPEG stream about compiling with ffmpeg but I just downloaded the binary available in Sourceforge).

    • I am using an AWS Deeplens, updated to the latest version.

    • Installed ffmpeg, latest version.

    Then, in /etc/ffserver.conf I added :

    <stream>
    File "/opt/awscam/out/ch1_out.h264"
    VideoFrameRate 6
    VideoSize 320x240
    NoAudio
    </stream>

    <stream>
    File "/opt/awscam/out/ch2_out.mjpeg"
    VideoFrameRate 3
    VideoSize 640x480
    Format mjpeg
    NoAudio
    </stream>
    • I start ffserver -f /etc/ffserver.conf
    • On my Windows machine, I use WSL and open an SSH tunnel into the AWS Deeplens ssh -L 8090:localhost:8090 aws_cam@192.168.0.10
    • At this point, in my Windows machine I can open VLC and if I point to http://localhost:8090/camera.mjpeg I can see the stream from the camera.

    But if I run the following code :

    cam = cv2.VideoCapture("http://localhost:8090/camera.mjpeg")
    success, frame = cam.read()
    opened = cam.isOpened()
    success, frame, opened

    I get :

    False, None, False

    If I browse to http://localhost:8090/stat.html, I see :

    Available Streams
    Path    Served Conns     bytes  Format  Bit rate kbits/s    Video kbits/s   Codec   Audio kbits/s    Codec  Feed
    test1.mpg   0   0   mpeg    96  64  mpeg1video  32  mp2 feed1.ffm
    test.asf    0   0   asf_stream  320 256 msmpeg4 64  wmav2   feed1.ffm
    stat.html   17  42150   -   -   -       -  
    index.html  0   0   -   -   -       -  
    camera.h264 3   6805k   h264    0   0   libx264 0       /opt/awscam/out/ch1_out.h264
    camera.mjpeg    12  41073k  mjpeg   0   0   mjpeg   0       /opt/awscam/out/ch2_out.mjpeg

    And every time I call VideoCapture() I see how the number of Served for the camera.mjpeg stream increased by a 2 or 3 and the bytes, increases a few megabytes but I don’t see anything in OpenCV. I have not tried any other video device in my Windows 10 but I can read images no problem. I also tried a random stream online, also opens in VLC but not in OpenCV, tried this one : http://136.176.70.200/mjpg/video.mjpg

    Any ideas ?

  • Playing fragmented mp4 doesnt continue playing

    18 mai 2017, par adviner

    Using ffmpeg I create an mp4 using my video camera as the source.

    ffmpeg -f dshow -i video="Integrated Webcam":audio="Microphone (Realtek High Definition Audio)"^
    -g 52^
    -vcodec libx264 -pix_fmt yuv420p -profile:v baseline -level 3^
    -f mp4 -movflags empty_moov+default_base_moof+frag_keyframe^
    %OUTPUT%\video.mp4

    Works with IE11, Chrome and Firefox

    And my html video tags :

    <video controls="controls" autoplay="autoplay" style="width:640px;height:360px;">
     <source src="http://localhost/video.mp4" type="video/mp4;codecs=&quot;avc1.42E01E, mp4a.40.2&quot;"></source>
    </video>

    The node web server version just has src="http://localhost/" for the

    using

    I’ve tried nginx and a node version that I got from this site
    The nginx doesnt do anything special. I just basically point the root to the folder so it sees the mp4.

    The problem is it only plays however much the webserver sees when the page is loaded. The file is still continuously growing. And if I refresh the page I can see the time length is now longer since the last time.

    My question is how can I make the video tag continuously play the fragmented video data without stopping and refreshing the page (which starts from the beginning again) ?