Recherche avancée

Médias (91)

Autres articles (112)

  • 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

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

Sur d’autres sites (11697)

  • Videoshow NPM module with ffmpeg

    5 juillet 2018, par JZG

    I’m trying to use videoshow to convert multiple images to video, I have tried to change my code multiple times but now as you can see this is basically the same as in the module’s description page. Still I am receiving the following error as stated below.

    videoshow(images)
       .save('video.mp4')
       .on('start', function (command) {
           console.log('ffmpeg process started:', command)
       })
       .on('error', function (err) {
           console.error('Error:', err)
       })
       .on('end', function (output) {
           console.log('Video created in:', output)
       })


    Error: Error: ffmpeg exited with code 1: Error reinitializing filters!
    Failed to inject frame into filter network: Invalid argument
    Error while processing the decoded data for stream #2:0
    Conversion failed!

    at ChildProcess.<anonymous> (C:\Users\xxxxxx\Documents\Visual Studio 2017\Projects\Frame\Frame\server-side\node_modules\fluent-ffmpeg\lib\processor.js:182:22)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
    </anonymous>
  • build : Disentangle VC-1 decoder and parser

    10 février 2016, par Diego Biurrun
    build : Disentangle VC-1 decoder and parser
    
    • [DBH] configure
    • [DBH] libavcodec/Makefile
  • Nginx RTMP module not creating .m3u8 in correct format

    24 juin 2024, par Moiz Hassan

    I am creating a rtmp server using nginx-rtmp-module inside a docker container. Using OBS I can connect with the server to start a live stream. M3U8 and .ts files are being created successfully but the .m3u8 file isn't in format I want. The generated .m3u8 file is like :

    &#xA;

    #EXTM3U&#xA;#EXT-X-VERSION:3&#xA;#EXT-X-MEDIA-SEQUENCE:5&#xA;#EXT-X-TARGETDURATION:10&#xA;

    &#xA;

    but I want to generate .m3u8 file so it is simialr to this :

    &#xA;

    #EXTM3U&#xA;#EXT-X-VERSION:3&#xA;#EXT-X-TARGETDURATION:10&#xA;#EXT-X-MEDIA-SEQUENCE:0&#xA;#EXT-X-PLAYLIST-TYPE:VOD&#xA;#EXTINF:10.000000,&#xA;0.ts&#xA;#EXTINF:10.000000,&#xA;1.ts&#xA;#EXTINF:10.000000,&#xA;2.ts&#xA;#EXTINF:10.000000,&#xA;3.ts&#xA;#EXTINF:10.000000,&#xA;4.ts&#xA;#EXTINF:10.000000,&#xA;5.ts&#xA;&#xA;

    &#xA;

    . The following is the nginx config that I am using :

    &#xA;

    user root;&#xA;worker_processes  auto;&#xA;#error_log  logs/error.log;&#xA;&#xA;events {&#xA;    worker_connections  1024;&#xA;}&#xA;&#xA;# RTMP configuration&#xA;rtmp {&#xA;    server {&#xA;        listen 1935; # Listen on standard RTMP port&#xA;        chunk_size 4000; &#xA;        # ping 30s;&#xA;        # notify_method get;&#xA;&#xA;        # This application is to accept incoming stream&#xA;        application live {&#xA;            live on; # Allows live input&#xA;&#xA;            &#xA;            push rtmp://localhost:1935/show;    &#xA;            drop_idle_publisher 10s; &#xA;        }&#xA;&#xA;        # This is the HLS application&#xA;        application show {&#xA;            live on; # Allows live input from above application&#xA;            deny play all; # disable consuming the stream from nginx as rtmp&#xA;&#xA;            &#xA;            hls on; # Enable HTTP Live Streaming&#xA;            hls_fragment 10;&#xA;            hls_playlist_length 0;&#xA;            hls_path /mnt/hls/;  # hls fragments path&#xA;            hls_nested on;&#xA;&#xA;            hls_fragment_naming sequential;&#xA;            &#xA;            hls_cleanup off;&#xA;                    &#xA;        }&#xA;&#xA;&#xA;    }&#xA;}&#xA;&#xA;&#xA;http {&#xA;    sendfile off;&#xA;    tcp_nopush on;&#xA;    directio 512;&#xA;    # aio on;&#xA;    &#xA;    # HTTP server required to serve the player and HLS fragments&#xA;    server {&#xA;        listen 8080;&#xA;        &#xA;        # Serve HLS fragments&#xA;        location /hls {&#xA;            types {&#xA;                application/vnd.apple.mpegurl m3u8;&#xA;                video/mp2t ts;&#xA;            }&#xA;            &#xA;            root /mnt;&#xA;&#xA;            add_header Cache-Control no-cache; # Disable cache&#xA;            &#xA;            # CORS setup&#xA;            add_header &#x27;Access-Control-Allow-Origin&#x27; &#x27;*&#x27; always;&#xA;            add_header &#x27;Access-Control-Expose-Headers&#x27; &#x27;Content-Length&#x27;;&#xA;            &#xA;            # allow CORS preflight requests&#xA;            if ($request_method = &#x27;OPTIONS&#x27;) {&#xA;                add_header &#x27;Access-Control-Allow-Origin&#x27; &#x27;*&#x27;;&#xA;                add_header &#x27;Access-Control-Max-Age&#x27; 1728000;&#xA;                add_header &#x27;Content-Type&#x27; &#x27;text/plain charset=UTF-8&#x27;;&#xA;                add_header &#x27;Content-Length&#x27; 0;&#xA;                return 204;&#xA;            }&#xA;        }&#xA;        &#xA;        # Serve DASH fragments&#xA;        location /dash {&#xA;            types {&#xA;                application/dash&#x2B;xml mpd;&#xA;                video/mp4 mp4;&#xA;            }&#xA;&#xA;            root /mnt;&#xA;            &#xA;            add_header Cache-Control no-cache; # Disable cache&#xA;&#xA;&#xA;            # CORS setup&#xA;            add_header &#x27;Access-Control-Allow-Origin&#x27; &#x27;*&#x27; always;&#xA;            add_header &#x27;Access-Control-Expose-Headers&#x27; &#x27;Content-Length&#x27;;&#xA;&#xA;            # Allow CORS preflight requests&#xA;            if ($request_method = &#x27;OPTIONS&#x27;) {&#xA;                add_header &#x27;Access-Control-Allow-Origin&#x27; &#x27;*&#x27;;&#xA;                add_header &#x27;Access-Control-Max-Age&#x27; 1728000;&#xA;                add_header &#x27;Content-Type&#x27; &#x27;text/plain charset=UTF-8&#x27;;&#xA;                add_header &#x27;Content-Length&#x27; 0;&#xA;                return 204;&#xA;            }&#xA;        }       &#xA;        &#xA;        # This URL provides RTMP statistics in XML&#xA;        location /stat {&#xA;            rtmp_stat all;&#xA;            rtmp_stat_stylesheet stat.xsl; # Use stat.xsl stylesheet &#xA;        }&#xA;&#xA;        location /stat.xsl {&#xA;            # XML stylesheet to view RTMP stats.&#xA;            root /usr/local/nginx/html;&#xA;        }&#xA;&#xA;    }&#xA;}&#xA;&#xA;

    &#xA;