Recherche avancée

Médias (91)

Autres articles (100)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (6920)

  • Generating movie from python without saving individual frames to files

    31 juillet 2022, par Paul

    I would like to create an h264 or divx movie from frames that I generate in a python script in matplotlib. There are about 100k frames in this movie.

    



    In examples on the web [eg. 1], I have only seen the method of saving each frame as a png and then running mencoder or ffmpeg on these files. In my case, saving each frame is impractical. Is there a way to take a plot generated from matplotlib and pipe it directly to ffmpeg, generating no intermediate files ?

    



    Programming with ffmpeg's C-api is too difficult for me [eg. 2]. Also, I need an encoding that has good compression such as x264 as the movie file will otherwise be too large for a subsequent step. So it would be great to stick with mencoder/ffmpeg/x264.

    



    Is there something that can be done with pipes [3] ?

    



    [1] http://matplotlib.sourceforge.net/examples/animation/movie_demo.html

    



    [2] How does one encode a series of images into H264 using the x264 C API ?

    



    [3] http://www.ffmpeg.org/ffmpeg-doc.html#SEC41

    


  • Capture multiple individual streams ALSA FFMPEG

    3 novembre 2017, par user3170450

    There are similar questions available but I couldn’t understand them properly as per my use case. As I am new to ALSA so I would like to explain my use case first.

    I am opening my application via google chrome and I need to to capture the audio being played in that chrome window. I did it successfully by capturing the speaker sound with following command :

    ffmpeg -f pulse -i alsa_output.pci-0000_00_1b.0.analog-stereo.monitor -ac 1 -ar 16000 test.wav

    But the real problem is I will be opening multiple windows at the same time and I need to capture each audio stream separately. There is something like Virtual Audio device but I don’t know how to configure and use them for my use case.

    Please guide me in right direction.

    Just for a note my system has only one physical sound card available which I am capturing for one window.

  • My webcam works fine, while using cv2.Videocapture() but while trying to read from hard drive it shows error cap.isOpened() returns false, why ?

    27 septembre 2017, par Hu Yang

    import cv2
    video_capture = cv2.VideoCapture("rtsp ://admin:Trust1986_@10.58.94.47:554/h264/ch1/main/av_stream")
    video_capture.isOpened()

    False

    Other information below here, and ffmpeg I had installed.

     Video I/O:
       DC1394 1.x:                  NO
       DC1394 2.x:                  NO
       FFMPEG:                      NO
         avcodec:                   NO
         avformat:                  NO
         avutil:                    NO
         swscale:                   NO
         avresample:                NO
       GStreamer:                   NO
       OpenNI:                      NO
       OpenNI PrimeSensor Modules:  NO
       OpenNI2:                     NO
       PvAPI:                       NO
       GigEVisionSDK:               NO
       Aravis SDK:                  NO
       UniCap:                      NO
       UniCap ucil:                 NO
       V4L/V4L2:                    NO/NO
       XIMEA:                       NO
       Xine:                        NO
       Intel Media SDK:             NO
       gPhoto2:                     NO

    root@ubuntu:/home/face_recognition/opencv/ffmpeg/ffmpeg-3.3.4# ffmpeg -version
    ffmpeg version 3.3.4 Copyright (c) 2000-2017 the FFmpeg developers
    built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
    configuration:
    libavutil      55. 58.100 / 55. 58.100
    libavcodec     57. 89.100 / 57. 89.100
    libavformat    57. 71.100 / 57. 71.100
    libavdevice    57.  6.100 / 57.  6.100
    libavfilter     6. 82.100 /  6. 82.100
    libswscale      4.  6.100 /  4.  6.100
    libswresample   2.  7.100 /  2.  7.100
    root@ubuntu:/home/face_recognition/opencv/ffmpeg/ffmpeg-3.3.4#
    root@ubuntu:/home/face_recognition/opencv/ffmpeg/ffmpeg-3.3.4# python3.6m -V
    Python 3.6.2
    root@ubuntu:/home/face_recognition/opencv/ffmpeg/ffmpeg-3.3.4# pkg-config --modversion opencv  
    3.3.0

    what shall I do next step ? Thanks.