Recherche avancée

Médias (2)

Mot : - Tags -/doc2img

Autres articles (4)

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

  • Monitoring de fermes de MediaSPIP (et de SPIP tant qu’à faire)

    31 mai 2013, par

    Lorsque l’on gère plusieurs (voir plusieurs dizaines) de MediaSPIP sur la même installation, il peut être très pratique d’obtenir d’un coup d’oeil certaines informations.
    Cet article a pour but de documenter les scripts de monitoring Munin développés avec l’aide d’Infini.
    Ces scripts sont installés automatiquement par le script d’installation automatique si une installation de munin est détectée.
    Description des scripts
    Trois scripts Munin ont été développés :
    1. mediaspip_medias
    Un script de (...)

  • Installation en mode standalone

    4 février 2011, par

    L’installation de la distribution MediaSPIP se fait en plusieurs étapes : la récupération des fichiers nécessaires. À ce moment là deux méthodes sont possibles : en installant l’archive ZIP contenant l’ensemble de la distribution ; via SVN en récupérant les sources de chaque modules séparément ; la préconfiguration ; l’installation définitive ;
    [mediaspip_zip]Installation de l’archive ZIP de MediaSPIP
    Ce mode d’installation est la méthode la plus simple afin d’installer l’ensemble de la distribution (...)

Sur d’autres sites (872)

  • Extended client ownership of MediaCodec encoder output buffers for RTMP streaming

    13 février 2014, par dbro

    Background :

    I've connected Android's MediaCodec to FFmpeg for muxing a variety of formats not supported by MediaMuxer, including rtmp:// output via a .flv container. Such streaming muxers require longer, unpredictable ownership of MediaCodec's output buffers, as they may perform networking I/O on any packet processing step. For my video stream, I'm using MediaCodec configured for Surface input. To decouple muxing from encoding, I queue MediaCodec's ByteBuffer output buffers to my muxer via a Handler.

    All works splendidly if I mux the .flv output to file, rather than rtmp endpoint.

    Problem :

    When muxing to rtmp://... endpoint I notice my streaming application begins to block on calls to eglSwapBuffers(mEGLDisplay, mEncodingEGLSurface) at dequeueOutputBuffer() once I'm retaining even a few MediaCodec output buffers in my muxing queue as MediaCodec seems to be locked to only 4 output buffers.

    Any tricks to avoid copying all encoder output returned by MediaCodec#dequeueOutputBuffers and immediately calling releaseOutputBuffer(...) ?

    The full source of my project is available on Github. Specifically, see :

    • AndroidEncoder.java : Abstract Encoder class with shared behavior between Audio and Video encoders : mainly drainEncoder(). Writes data to a Muxer instance.
    • FFmpegMuxer.java : Implements Muxer
    • CameraEncoder.java. Sends camera frames to an AndroidEncoder subclass configured for Video encoding.

    Systrace

    Systrace output

    Here's some systrace output streaming 720p @ 2Mbps video to Zencoder.

    Solved

    Copying then releasing the MediaCodec encoder output ByteBuffers as soon as they're available solves the issue without significantly affecting performance. I recycle the ByteBuffer copies in an ArrayDeque<bytebuffer></bytebuffer> for each muxer track, which limits the number of allocations.

  • How can I split an RTSP stream so that I can both save it to files and apply a motion detection client ? (e.g. ffmpeg, motion)

    1er septembre 2022, par Pat Niemeyer

    I’ve been using "motion" successfully to read an rtsp stream and save motion triggered events.

    &#xA;

    motion -c motion.conf # config file has the rtsp url and other params&#xA;

    &#xA;

    However I’d like to both save the full stream and analyze for motion in this way. I know that I can capture the stream to files with ffmpeg something like this :

    &#xA;

    ffmpeg -i rtsp://mystream -vcodec copy -acodec copy -map 0 -f segment -segment_time 300 -segment_format mp4 "ffmpeg_capture-%03d.mp4"&#xA;

    &#xA;

    Is there is a way to split / duplicate the rtsp stream (perhaps using ffmpeg again) so that I can have both motion and ffmpeg processes looking at it simultaneously ? Alternately is there some option on motion that I’m missing that would automatically save both the raw video and the motion segments ?

    &#xA;

  • How to "filter" a file through command line before apache sends it to client ?

    1er septembre 2020, par Timothe Jahan

    I have large collection of video files which are available on our website.&#xA;For each video we have multiple quality and language, so in order to save space we store only 1 file, which contains all audio and video tracks.

    &#xA;

    Our streaming server can handle these multitrack files in order to serve only the useful part to each user, but we also make them available for download through the apache web server.&#xA;Currently, when a user request a file (certain quality, certain language), we first create a temporary file with only his needs, and give him for download.&#xA;I would like to remove this intermediate step and extract on the fly.&#xA;Extraction can be done by ffmpeg, but I need to have apache "pipe" the file through ffmpeg before sending the bytes out. Do you have any way of doing this.

    &#xA;

    example :

    &#xA;

    &#xA;

    Filename_multi.mp4 [SD,HD,fr,en,ru]&#xA;User request : Filename_HD_fr.mp4 [HD,fr]&#xA;Apache fetch the file Filename_multi.mp4 and pipe it through an ffmpeg command and send the bytes as > they are encoded, not waiting for the end.

    &#xA;

    &#xA;

    Note this is on linux, and the ffmpeg part is not a problem.

    &#xA;

    Thx&#xA;Timothé

    &#xA;