Recherche avancée

Médias (2)

Mot : - Tags -/rotation

Autres articles (66)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • 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

Sur d’autres sites (10852)

  • ffmpeg with many input and filters

    11 novembre 2017, par Nabi K.A.Z.

    I use this command :

    ffmpeg -i main.mp3 -i 1.mp3 -i 2.mp3 -i 3.mp3 \
          -filter_complex "\
             [0]volume=1[a0]; \
             [1]adelay=1000[a1]; \
             [2]adelay=2000[a2]; \
             [3]adelay=3000[a3]; \
             [a0][a1][a2][a3]amix=4:duration=first" \
    -y merged.mp3

    But I have many input. more than 500. so my pattern is be like this :

    ffmpeg -i main.mp3 -i 1.mp3 -i 2.mp3 -i 3.mp3 ... [n.mp3] \
          -filter_complex "\
             [0]volume=1[a0]; \
             [1]adelay=1000[a1]; \
             [2]adelay=2000[a2]; \
             [3]adelay=3000[a3]; \
             :
             :
             [n]adelay=1000000[aN]; \
             [a0][a1][a2][a3] ... [aN] amix=[n]:duration=first" \
    -y merged.mp3

    But I get errors in any platform.

    Linux :

    :
    :
    Input #200, mp3, from 'sounds2/200.mp3':
     Metadata:
       encoder         : Lavf56.25.101
     Duration: 00:00:02.95, start: 0.069063, bitrate: 24 kb/s
       Stream #200:0: Audio: mp3, 16000 Hz, mono, s16p, 24 kb/s
    [amix @ 0x3cffb20] Value 201.000000 for parameter 'inputs' out of range [1 - 32]
       Last message repeated 1 times
    [amix @ 0x3cffb20] Error setting option inputs to value 201.
    [Parsed_amix_201 @ 0x3cffa60] Error applying options to the filter.
    [AVFilterGraph @ 0x3b44980] Error initializing filter 'amix' with args '201:duration=first'
    Error configuring filters.

    Cygwin :

     Stream #199:0 (mp3) -> adelay
     Stream #200:0 (mp3) -> adelay
     amix -> Stream #0:0 (aac)
    Press [q] to stop, [?] for help
    [Parsed_adelay_171 @ 00000000041fc0c0] Failed to configure input pad on Parsed_adelay_171
    Error reinitializing filters!
    Failed to inject frame into filter network: Cannot allocate memory
    Error while processing the decoded data for stream #200:0
    Conversion failed!

    Windows :

    The command line is too long.

    What’s your solution ?

  • python cv2 BackgroundSubtractor imshow function error

    16 septembre 2017, par Vincent Yuan

    problem

    I want to detect the motional object in a video, but the cap seems not to read the video. I use conda jupyter and have install the ffmpeg with brew and I use macOS. Still, I am unable to capture the video.

    code :

    import numpy as np
    import cv2
    import time

    cap = cv2.VideoCapture('test.avi')
    time.sleep(2)
    fgbg = cv2.createBackgroundSubtractorKNN(detectShadows=True)

    while(1):
    ret, frame = cap.read()

    fgmask = fgbg.apply(frame)

    cv2.imshow('original',frame)
    cv2.imshow('fg',fgmask)

    k = cv2.waitKey(30) & 0xff
    for c in contours:
           # 获取矩形框边界坐标
           x, y, w, h = cv2.boundingRect(c)
           # 计算矩形框的面积
           area = cv2.contourArea(c)
           if 500 < area < 3000:
               cv2.rectangle(frame, (x, y), (x + w, y + h), (0, 255, 0), 2)

    cv2.imshow("detection", frame)
    cv2.imshow("back", dilated)


    if k == 27:
       break


    cap.release()
    cv2.destroyAllWindows()

    error

    Couldn’t read video stream from file "test.avi"

  • GStreamer x264 on Linux (ARM)

    8 septembre 2017, par Tõnu Samuel

    Trying to get streaming work with x264 encoding.

    I am doing some black magic with stitching two images which is known to work :

    gst-launch-1.0 -e \
       v4l2src device=/dev/video0 ! \
           video/x-raw,framerate=90/1,width=640,height=480 ! m.sink_0 \
       v4l2src device=/dev/video1 ! \
           video/x-raw,framerate=90/1,width=640,height=480 ! m.sink_1 \
       videomixer name=m sink_1::xpos=640 ! \
       video/x-raw,framerate=90/1,width=1280,height=480 ! \
       xvimagesink

    Now I am trying to get same thing over x264 stream with help of internet :

    gst-launch-1.0 -e \
       v4l2src device=/dev/video0 ! \
           video/x-raw,framerate=90/1,width=640,height=480 ! m.sink_0 \
       v4l2src device=/dev/video1 ! \
           video/x-raw,framerate=90/1,width=640,height=480 ! m.sink_1 \
       videomixer name=m sink_1::xpos=640 ! \
       video/x-raw,framerate=90/1,width=1280,height=480 ! \
       x264enc tune=zerolatency byte-stream=true bitrate=3000 threads=2 ! \
       h264parse config-interval=1 ! \
       rtph264pay ! \
       udpsink host=127.0.0.1 port=5000

    And seems to work because no errors appear. But I see no way to receive image.

    I have tried

    gst-launch-1.0 udpsrc port=5000 ! application/x-rtp ! rtph264depay ! h264parse ! avdec_h264 ! xvimagesink

    which does not provide anything useful. Also attempted to use VLC with SDP file :

    c=IN IP4 127.0.0.1
    m=video 5000 RTP/AVP 96
    a=rtpmap:96 H264/3000

    I must be doing something wrong but unsure what.

    EDIT : Question about version of GStreamer. Probably this is information needed :

    ubuntu@tegra-ubuntu:~$  gst-launch-1.0 --version
    gst-launch-1.0 version 1.2.4
    GStreamer 1.2.4
    https://launchpad.net/distros/ubuntu/+source/gstreamer1.0
    ubuntu@tegra-ubuntu:~$



    $ dpkg -l | grep gstreamer
    ii  gir1.2-gstreamer-1.0                                  1.2.4-0ubuntu1.1                                    armhf        Description: GObject introspection data for the GStreamer library
    ii  gstreamer-tools                                       0.10.36-1.2ubuntu3                                  armhf        Tools for use with GStreamer
    ii  gstreamer0.10-alsa:armhf                              0.10.36-1.1ubuntu2                                  armhf        GStreamer plugin for ALSA
    ii  gstreamer0.10-fluendo-mp3:armhf                       0.10.23.debian-3                                    armhf        Fluendo mp3 decoder GStreamer 0.10 plugin
    ii  gstreamer0.10-nice:armhf                              0.1.4-1                                             armhf        ICE library (GStreamer 0.10 plugin)
    ii  gstreamer0.10-plugins-bad:armhf                       0.10.23-7.2ubuntu1.3                                armhf        GStreamer plugins from the "bad" set
    ii  gstreamer0.10-plugins-bad-multiverse                  0.10.21-1ubuntu3                                    armhf        GStreamer plugins from the "bad" set (Multiverse Variant)
    ii  gstreamer0.10-plugins-base:armhf                      0.10.36-1.1ubuntu2                                  armhf        GStreamer plugins from the "base" set
    ii  gstreamer0.10-plugins-base-apps                       0.10.36-1.1ubuntu2                                  armhf        GStreamer helper programs from the "base" set
    ii  gstreamer0.10-plugins-good:armhf                      0.10.31-3+nmu1ubuntu5.2                             armhf        GStreamer plugins from the "good" set
    ii  gstreamer0.10-plugins-ugly:armhf                      0.10.19-2ubuntu5                                    armhf        GStreamer plugins from the "ugly" set
    ii  gstreamer0.10-pulseaudio:armhf                        0.10.31-3+nmu1ubuntu5.2                             armhf        GStreamer plugin for PulseAudio
    ii  gstreamer0.10-tools                                   0.10.36-1.2ubuntu3                                  armhf        Tools for use with GStreamer
    ii  gstreamer0.10-x:armhf                                 0.10.36-1.1ubuntu2                                  armhf        GStreamer plugins for X11 and Pango
    ii  gstreamer1.0-alsa:armhf                               1.2.4-1~ubuntu2                                     armhf        GStreamer plugin for ALSA
    ii  gstreamer1.0-clutter                                  2.0.8-1build1                                       armhf        Clutter PLugin for GStreamer 1.0
    ii  gstreamer1.0-fluendo-mp3:armhf                        0.10.23.debian-3                                    armhf        Fluendo mp3 decoder GStreamer 1.0 plugin
    ii  gstreamer1.0-libav:armhf                              1.2.4-1~ubuntu1                                     armhf        libav plugin for GStreamer
    ii  gstreamer1.0-nice:armhf                               0.1.4-1                                             armhf        ICE library (GStreamer plugin)
    ii  gstreamer1.0-plugins-bad:armhf                        1.2.4-1~ubuntu1.1                                   armhf        GStreamer plugins from the "bad" set
    ii  gstreamer1.0-plugins-bad-faad:armhf                   1.2.4-1~ubuntu1.1                                   armhf        GStreamer faad plugin from the "bad" set
    ii  gstreamer1.0-plugins-bad-videoparsers:armhf           1.2.4-1~ubuntu1.1                                   armhf        GStreamer videoparsers plugin from the "bad" set
    ii  gstreamer1.0-plugins-base:armhf                       1.2.4-1~ubuntu2                                     armhf        GStreamer plugins from the "base" set
    ii  gstreamer1.0-plugins-base-apps                        1.2.4-1~ubuntu2                                     armhf        GStreamer helper programs from the "base" set
    ii  gstreamer1.0-plugins-good:armhf                       1.2.4-1~ubuntu1.3                                   armhf        GStreamer plugins from the "good" set
    ii  gstreamer1.0-plugins-ugly:armhf                       1.2.3-2build1                                       armhf        GStreamer plugins from the "ugly" set
    ii  gstreamer1.0-pulseaudio:armhf                         1.2.4-1~ubuntu1.3                                   armhf        GStreamer plugin for PulseAudio
    ii  gstreamer1.0-tools                                    1.2.4-0ubuntu1.1                                    armhf        Tools for use with GStreamer
    ii  gstreamer1.0-x:armhf                                  1.2.4-1~ubuntu2                                     armhf        GStreamer plugins for X11 and Pango
    ii  libgstreamer-plugins-bad0.10-0:armhf                  0.10.23-7.2ubuntu1.3                                armhf        GStreamer shared libraries from the "bad" set
    ii  libgstreamer-plugins-bad1.0-0:armhf                   1.2.4-1~ubuntu1.1                                   armhf        GStreamer development files for libraries from the "bad" set
    ii  libgstreamer-plugins-base0.10-0:armhf                 0.10.36-1.1ubuntu2                                  armhf        GStreamer libraries from the "base" set
    ii  libgstreamer-plugins-base1.0-0:armhf                  1.2.4-1~ubuntu2                                     armhf        GStreamer libraries from the "base" set
    ii  libgstreamer-plugins-good1.0-0:armhf                  1.2.4-1~ubuntu1.3                                   armhf        GStreamer development files for libraries from the "good" set
    ii  libgstreamer0.10-0:armhf                              0.10.36-1.2ubuntu3                                  armhf        Core GStreamer libraries and elements
    ii  libgstreamer1.0-0:armhf                               1.2.4-0ubuntu1.1                                    armhf        Core GStreamer libraries and elements
    $