Recherche avancée

Médias (1)

Mot : - Tags -/bug

Autres articles (101)

  • Qu’est ce qu’un masque de formulaire

    13 juin 2013, par

    Un masque de formulaire consiste en la personnalisation du formulaire de mise en ligne des médias, rubriques, actualités, éditoriaux et liens vers des sites.
    Chaque formulaire de publication d’objet peut donc être personnalisé.
    Pour accéder à la personnalisation des champs de formulaires, il est nécessaire d’aller dans l’administration de votre MediaSPIP puis de sélectionner "Configuration des masques de formulaires".
    Sélectionnez ensuite le formulaire à modifier en cliquant sur sont type d’objet. (...)

  • Configuration spécifique d’Apache

    4 février 2011, par

    Modules spécifiques
    Pour la configuration d’Apache, il est conseillé d’activer certains modules non spécifiques à MediaSPIP, mais permettant d’améliorer les performances : mod_deflate et mod_headers pour compresser automatiquement via Apache les pages. Cf ce tutoriel ; mode_expires pour gérer correctement l’expiration des hits. Cf ce tutoriel ;
    Il est également conseillé d’ajouter la prise en charge par apache du mime-type pour les fichiers WebM comme indiqué dans ce tutoriel.
    Création d’un (...)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

Sur d’autres sites (5875)

  • avformat/rtsp : Send mode=record instead of mode=receive in Transport header

    15 janvier 2024, par Paul Orlyk
    avformat/rtsp : Send mode=record instead of mode=receive in Transport header
    

    Fixes server compatibility issues with rtspclientsink GStreamer plugin.

    >From specification :
    RFC 7826 "Real-Time Streaming Protocol Version 2.0" (https://datatracker.ietf.org/doc/html/rfc7826), section 18.54 :
    mode : The mode parameter indicates the methods to be supported for
    this session. The currently defined valid value is "PLAY". If
    not provided, the default is "PLAY". The "RECORD" value was
    defined in RFC 2326 ; in this specification, it is unspecified
    but reserved. RECORD and other values may be specified in the
    future.
    RFC 2326 "Real Time Streaming Protocol (RTSP)" (https://datatracker.ietf.org/doc/html/rfc2326), section 12.39 :
    mode :
    The mode parameter indicates the methods to be supported for
    this session. Valid values are PLAY and RECORD. If not
    provided, the default is PLAY.

    mode=receive was always like this, from the initial commit 'a8ad6ffa rtsp : Add listen mode'.

    For comparison, Wowza was used to push RTSP stream to. Both GStreamer and FFmpeg had no issues.
    Here is the capture of Wowza responding to SETUP request :
    200 OK
    CSeq : 3
    Server : Wowza Streaming Engine 4.8.26+4 build20231212155517
    Cache-Control : no-cache
    Expires : Mon, 15 Jan 2024 19:40:31 GMT
    Transport : RTP/AVP/UDP ;unicast ;client_port=11640-11641 ;mode=record ;source=172.17.0.2 ;server_port=6976-6977
    Date : Mon, 15 Jan 2024 19:40:31 GMT
    Session : 1401457689 ;timeout=60

    Test setup :
    Server : ffmpeg -loglevel trace -y -rtsp_flags listen -i rtsp ://0.0.0.0:30800/live.stream t.mp4
    FFmpeg client : ffmpeg -re -i "Big Buck Bunny - FULL HD 30FPS.mp4" -c:v libx264 -f rtsp rtsp ://127.0.0.1:30800/live.stream
    GStreamer client : gst-launch-1.0 videotestsrc is-live=true pattern=smpte ! queue ! videorate ! videoscale ! video/x-raw,width=640,height=360,framerate=60/1 ! timeoverlay font-desc="Sans, 84" halignment=center valignment=center ! queue ! videoconvert ! tee name=t t. ! x264enc bitrate=9000 pass=cbr speed-preset=ultrafast byte-stream=false key-int-max=15 threads=1 ! video/x-h264,profile=baseline ! queue ! rsink. audiotestsrc ! voaacenc ! queue ! rsink. t. ! queue ! autovideosink rtspclientsink name=rsink location=rtsp ://localhost:30800/live.stream

    Test results :
    modified FFmpeg client -> stock server : ok
    stock FFmpeg client -> modified server : ok
    modified FFmpeg client -> modified server : ok
    GStreamer client -> modified server : ok

    Signed-off-by : Paul Orlyk <paul.orlyk@gmail.com>
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavformat/rtspdec.c
  • Error : Output format mp4 is not available

    12 avril 2024, par alpaca pwaa

    I'm using fluent-ffmpeg in my nextjs application, I'm trying to process the video and specified a format to stream on my s3 bucket but it keeps on failing. My terminal keeps on throwing "Error : Error : Output format mp4 is not available". I already verify my ffmpeg format "ffmpeg -format" and confirm that it supports encoding and decoding mp4 files. I've already tried solutions from other forums but it's not working for me.

    &#xA;

    createVideo: privateProcedure&#xA;    .input(&#xA;      z.object({&#xA;        fileId: z.string(),&#xA;      })&#xA;    )&#xA;    .mutation(async ({ ctx, input }) => {&#xA;      const { getUser } = getKindeServerSession();&#xA;      const user = await getUser();&#xA;&#xA;      if (!user || !user.id || !user.email) {&#xA;        throw new TRPCError({ code: "UNAUTHORIZED" });&#xA;      }&#xA;&#xA;      const dbUser = await db.user.findFirst({&#xA;        where: {&#xA;          id: user.id,&#xA;        },&#xA;      });&#xA;&#xA;      if (!dbUser) {&#xA;        throw new TRPCError({&#xA;          code: "UNAUTHORIZED",&#xA;          message: "User not found in the database.",&#xA;        });&#xA;      }&#xA;&#xA;      const putObjectCommand = new PutObjectCommand({&#xA;        Bucket: process.env.AWS_BUCKET_NAME!,&#xA;        Key: generateFileName(),&#xA;      });&#xA;&#xA;      const s3 = new S3Client({&#xA;        region: process.env.AWS_BUCKET_REGION!,&#xA;        credentials: {&#xA;          accessKeyId: process.env.AWS_ACCESS_KEY!,&#xA;          secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY!,&#xA;        },&#xA;      });&#xA;&#xA;      const singedURL = await getSignedUrl(s3, putObjectCommand, {&#xA;        expiresIn: 60,&#xA;      });&#xA;&#xA;      const ffmpeg = require("fluent-ffmpeg");&#xA;      const passthroughStream = new PassThrough();&#xA;&#xA;      ffmpeg({ source: "./template1.mp4" })&#xA;        .on("end", async () => {&#xA;          console.log("Job done");&#xA;          await uploadToS3(passthroughStream);&#xA;        })&#xA;        .on("error", (error: string) => {&#xA;          console.error("Error:", error);&#xA;          throw new Error("Error processing video");&#xA;        })&#xA;        .videoFilter({&#xA;          filter: "drawtext",&#xA;          options: {&#xA;            text: "hi",&#xA;            fontsize: 24,&#xA;            fontcolor: "white",&#xA;            x: "(w-text_w)/2",&#xA;            y: "(h-text_h)/2",&#xA;            box: 1,&#xA;            boxcolor: "black@0.5",&#xA;            boxborderw: 5,&#xA;            fontfile: "/Windows/fonts/calibri.ttf",&#xA;          },&#xA;        })&#xA;        .videoCodec("libx264")&#xA;        .outputFormat("mp4")&#xA;        .outputOptions(["-movflags frag_keyframe&#x2B;empty_moov"])&#xA;        .pipe(passthroughStream, { end: true });&#xA;&#xA;      const uploadToS3 = async (stream: PassThrough) => {&#xA;        const upload = new Upload({&#xA;          client: s3,&#xA;          params: {&#xA;            Bucket: process.env.AWS_BUCKET_NAME!,&#xA;            Key: generateFileName(),&#xA;            Body: stream,&#xA;          },&#xA;        });&#xA;        await upload.done();&#xA;      };&#xA;&#xA;      await new Promise((resolve, reject) => {&#xA;        passthroughStream.on("end", resolve);&#xA;        passthroughStream.on("error", reject);&#xA;      });&#xA;&#xA;      const createdVideo = await db.video.create({&#xA;        data: {&#xA;          name: "Test Name",&#xA;          url: singedURL.split("?")[0],&#xA;          key: singedURL,&#xA;          fileId: input.fileId,&#xA;        },&#xA;      });&#xA;&#xA;      return createdVideo;&#xA;    }),&#xA;

    &#xA;

    Here's the ffmpeg log.

    &#xA;

    ffmpeg started on 2024-04-11 at 20:58:56&#xA;Report written to "ffmpeg-20240411-205856.log"&#xA;Log level: 48&#xA;Command line:&#xA;"C:\\ProgramData\\chocolatey\\lib\\ffmpeg-full\\tools\\ffmpeg\\bin\\ffmpeg.exe" -i ./template1.mp4 -filter:v "drawtext=text=hi:fontsize=24:fontcolor=white:x=(w-text_w)/2:y=(h-text_h)/2:box=1:boxcolor=black@0.5:boxborderw=5:fontfile=/Windows/fonts/calibri.ttf" -report pipe:1&#xA;ffmpeg version 7.0-full_build-www.gyan.dev Copyright (c) 2000-2024 the FFmpeg developers&#xA;  built with gcc 13.2.0 (Rev5, Built by MSYS2 project)&#xA;  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libaribcaption --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libxevd --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxeve --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-f  libavutil      59.  8.100 / 59.  8.100&#xA;  libavcodec     61.  3.100 / 61.  3.100&#xA;  libavformat    61.  1.100 / 61.  1.100&#xA;  libavdevice    61.  1.100 / 61.  1.100&#xA;  libavfilter    10.  1.100 / 10.  1.100&#xA;  libswscale      8.  1.100 /  8.  1.100&#xA;  libswresample   5.  1.100 /  5.  1.100&#xA;  libpostproc    58.  1.100 / 58.  1.100&#xA;Splitting the commandline.&#xA;Reading option &#x27;-i&#x27; ... matched as input url with argument &#x27;./template1.mp4&#x27;.&#xA;Reading option &#x27;-filter:v&#x27; ... matched as option &#x27;filter&#x27; (apply specified filters to audio/video) with argument &#x27;drawtext=text=hi:fontsize=24:fontcolor=white:x=(w-text_w)/2:y=(h-text_h)/2:box=1:boxcolor=black@0.5:boxborderw=5:fontfile=/Windows/fonts/calibri.ttf&#x27;.&#xA;Reading option &#x27;-report&#x27; ... matched as option &#x27;report&#x27; (generate a report) with argument &#x27;1&#x27;.&#xA;Reading option &#x27;pipe:1&#x27; ... matched as output url.&#xA;Finished splitting the commandline.&#xA;Parsing a group of options: global .&#xA;Applying option report (generate a report) with argument 1.&#xA;Successfully parsed a group of options.&#xA;Parsing a group of options: input url ./template1.mp4.&#xA;Successfully parsed a group of options.&#xA;Opening an input file: ./template1.mp4.&#xA;[AVFormatContext @ 00000262cd0888c0] Opening &#x27;./template1.mp4&#x27; for reading&#xA;[file @ 00000262cd0a94c0] Setting default whitelist &#x27;file,crypto,data&#x27;&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 00000262cd0888c0] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 00000262cd0888c0] ISO: File Type Major Brand: isom&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 00000262cd0888c0] Unknown dref type 0x206c7275 size 12&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 00000262cd0888c0] Processing st: 0, edit list 0 - media time: 1024, duration: 126981&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 00000262cd0888c0] Offset DTS by 1024 to make first pts zero.&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 00000262cd0888c0] Setting codecpar->delay to 2 for stream st: 0&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 00000262cd0888c0] Before avformat_find_stream_info() pos: 6965 bytes read:32768 seeks:0 nb_streams:1&#xA;[h264 @ 00000262cd0bb140] nal_unit_type: 7(SPS), nal_ref_idc: 3&#xA;[h264 @ 00000262cd0bb140] Decoding VUI&#xA;[h264 @ 00000262cd0bb140] nal_unit_type: 8(PPS), nal_ref_idc: 3&#xA;[h264 @ 00000262cd0bb140] nal_unit_type: 7(SPS), nal_ref_idc: 3&#xA;[h264 @ 00000262cd0bb140] Decoding VUI&#xA;[h264 @ 00000262cd0bb140] nal_unit_type: 8(PPS), nal_ref_idc: 3&#xA;[h264 @ 00000262cd0bb140] Decoding VUI&#xA;[h264 @ 00000262cd0bb140] nal_unit_type: 6(SEI), nal_ref_idc: 0&#xA;[h264 @ 00000262cd0bb140] nal_unit_type: 7(SPS), nal_ref_idc: 3&#xA;[h264 @ 00000262cd0bb140] nal_unit_type: 8(PPS), nal_ref_idc: 3&#xA;[h264 @ 00000262cd0bb140] nal_unit_type: 5(IDR), nal_ref_idc: 3&#xA;[h264 @ 00000262cd0bb140] Decoding VUI&#xA;[h264 @ 00000262cd0bb140] Format yuv420p chosen by get_format().&#xA;[h264 @ 00000262cd0bb140] Reinit context to 1088x1920, pix_fmt: yuv420p&#xA;[h264 @ 00000262cd0bb140] no picture &#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 00000262cd0888c0] All info found&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 00000262cd0888c0] After avformat_find_stream_info() pos: 82242 bytes read:82242 seeks:0 frames:1&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;./template1.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf58.76.100&#xA;  Duration: 00:00:08.27, start: 0.000000, bitrate: 3720 kb/s&#xA;  Stream #0:0[0x1](und), 1, 1/15360: Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1080x1920, 3714 kb/s, 30 fps, 30 tbr, 15360 tbn (default)&#xA;      Metadata:&#xA;        handler_name    : VideoHandler&#xA;        vendor_id       : [0][0][0][0]&#xA;Successfully opened the file.&#xA;Parsing a group of options: output url pipe:1.&#xA;Applying option filter:v (apply specified filters to audio/video) with argument drawtext=text=hi:fontsize=24:fontcolor=white:x=(w-text_w)/2:y=(h-text_h)/2:box=1:boxcolor=black@0.5:boxborderw=5:fontfile=/Windows/fonts/calibri.ttf.&#xA;Successfully parsed a group of options.&#xA;Opening an output file: pipe:1.&#xA;[AVFormatContext @ 00000262cd0b2240] Unable to choose an output format for &#x27;pipe:1&#x27;; use a standard extension for the filename or specify the format manually.&#xA;[out#0 @ 00000262cd0bb300] Error initializing the muxer for pipe:1: Invalid argument&#xA;Error opening output file pipe:1.&#xA;Error opening output files: Invalid argument&#xA;[AVIOContext @ 00000262cd0a9580] Statistics: 82242 bytes read, 0 seeks&#xA;

    &#xA;

    I should be able to stream the processed video to my s3, but it keeps on throwing "Error : Error : Output format mp4 is not available"

    &#xA;

  • Unable to stream video file from MediaMTX media server to browser via WebRTC

    8 juin 2024, par thegreatjedi

    I took over a repository at work. It's a working demo comprising a web server which receives video and camera feeds from a media server (built from the rtsp-simple-server Docker image) via a RTSP relay server and streams the feeds to the client, all deployed via Docker Compose.

    &#xA;

    I'm trying to switch over to use WebRTC instead. rtsp-simple-server has upgraded into MediaMTX since the time the demo was created 2 years ago. This is the relevant section of the updated Docker Compose configuration :

    &#xA;

      media-server:&#xA;    image: bluenviron/mediamtx:latest-ffmpeg&#xA;    expose:&#xA;      - 8889&#xA;    init: true&#xA;    ports:&#xA;      - 8889:8889&#xA;    restart: unless-stopped&#xA;    volumes:&#xA;      - type: bind&#xA;        source: ./demo/vids&#xA;        target: /vids&#xA;      - type: bind&#xA;        source: ./demo/mediamtx.yml&#xA;        target: /mediamtx.yml&#xA;

    &#xA;

    Relevant part of the MediaMTX custom configuration in mediamtx.yml :

    &#xA;

    ###############################################&#xA;# Path settings&#xA;&#xA;# Settings in "paths" are applied to specific paths, and the map key&#xA;# is the name of the path.&#xA;# Any setting in "pathDefaults" can be overridden here.&#xA;# It&#x27;s possible to use regular expressions by using a tilde as prefix,&#xA;# for example "~^(test1|test2)$" will match both "test1" and "test2",&#xA;# for example "~^prefix" will match all paths that start with "prefix".&#xA;paths:&#xA;  # example:&#xA;  # my_camera:&#xA;  #   source: rtsp://my_camera&#xA;  ~^demo\d&#x2B;$:&#xA;    runOnDemand: ffmpeg -re -stream_loop -1 -i /vids/$MTX_PATH.mp4 -c:v libvpx -b:v 0 -crf 18 -qmin 18 -qmax 18 -f webm http://localhost:8889/$MTX_PATH/whip&#xA;&#xA;  # Settings under path "all_others" are applied to all paths that&#xA;  # do not match another entry.&#xA;  all_others:&#xA;

    &#xA;

    I've absolutely no experience with WebRTC. This is my first time hearing of this protocol, let alone working with it. From what I understand, I need to convert my demo mp4 videos (which were successfully streaming via RTSP in the previous implementation) to a compatible video codec, so I've opted for VP8.

    &#xA;

    Before trying to stream the videos into my web server, I tested the stream directly in the browser (tried with both the latest versions of Chrome and Edge). I went to http://localhost:8889/demo0 (which should convert demo0.mp4 to VP8 and then stream it over WebRTC). The video player loaded in the browser but no video data was received and nothing played. After several seconds, the screen displayed "Error : bad status code 400, retrying in some seconds". In the browser console, it showed :

    &#xA;

    Failed to load resource : the server responded with a status of 400 (Bad Request)

    &#xA;

    Inside the MediaMTX container's runtime logs, this is what's displayed :

    &#xA;

    2024-04-02 14:53:08 ffmpeg version 6.1.1 Copyright (c) 2000-2023 the FFmpeg developers&#xA;2024-04-02 14:53:08   built with gcc 13.2.1 (Alpine 13.2.1_git20231014) 20231014&#xA;2024-04-02 14:53:08   configuration: --prefix=/usr --disable-librtmp --disable-lzma --disable-static --disable-stripping --enable-avfilter --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-libmp3lame --enable-libopenmpt --enable-libopus --enable-libplacebo --enable-libpulse --enable-librav1e --enable-librist --enable-libsoxr --enable-libsrt --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-lto=auto --enable-lv2 --enable-openssl --enable-pic --enable-postproc --enable-pthreads --enable-shared --enable-vaapi --enable-vdpau --enable-version3 --enable-vulkan --optflags=-O3 --enable-libjxl --enable-libsvtav1 --enable-libvpl&#xA;2024-04-02 14:53:08   libavutil      58. 29.100 / 58. 29.100&#xA;2024-04-02 14:53:08   libavcodec     60. 31.102 / 60. 31.102&#xA;2024-04-02 14:53:08   libavformat    60. 16.100 / 60. 16.100&#xA;2024-04-02 14:53:08   libavdevice    60.  3.100 / 60.  3.100&#xA;2024-04-02 14:53:08   libavfilter     9. 12.100 /  9. 12.100&#xA;2024-04-02 14:53:08   libswscale      7.  5.100 /  7.  5.100&#xA;2024-04-02 14:53:08   libswresample   5.  0.100 /  5.  0.100&#xA;2024-04-02 14:53:08   libpostproc    57.  3.100 / 57.  3.100&#xA;2024-04-02 14:53:08 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;/vids/demo0.mp4&#x27;:&#xA;2024-04-02 14:53:08   Metadata:&#xA;2024-04-02 14:53:08     major_brand     : isom&#xA;2024-04-02 14:53:08     minor_version   : 512&#xA;2024-04-02 14:53:08     compatible_brands: isomiso2mp41&#xA;2024-04-02 14:53:08     encoder         : Lavf58.76.100&#xA;2024-04-02 14:53:08   Duration: 00:00:03.47, start: 0.000000, bitrate: 1675 kb/s&#xA;2024-04-02 14:53:08   Stream #0:0[0x1](und): Video: mpeg1video (mp4v / 0x7634706D), yuv420p(tv, progressive), 640x360 [SAR 1:1 DAR 16:9], 104857 kb/s, 30 fps, 30 tbr, 90k tbn (default)&#xA;2024-04-02 14:53:08     Metadata:&#xA;2024-04-02 14:53:08       handler_name    : VideoHandler&#xA;2024-04-02 14:53:08       vendor_id       : [0][0][0][0]&#xA;2024-04-02 14:53:08     Side data:&#xA;2024-04-02 14:53:08       cpb: bitrate max/min/avg: 0/0/0 buffer size: 49152 vbv_delay: N/A&#xA;2024-04-02 14:53:08 Stream mapping:&#xA;2024-04-02 14:53:08   Stream #0:0 -> #0:0 (mpeg1video (native) -> vp8 (libvpx))&#xA;2024-04-02 14:53:08 Press [q] to stop, [?] for help&#xA;2024-04-02 14:53:08 [libvpx @ 0x7faa8591b8c0] v1.13.1&#xA;2024-04-02 14:53:08 [libvpx @ 0x7faa8591b8c0] Bitrate not specified for constrained quality mode, using default of 256kbit/sec&#xA;2024-04-02 14:53:08 Output #0, webm, to &#x27;http://localhost:8889/demo0/whip&#x27;:&#xA;2024-04-02 14:53:08   Metadata:&#xA;2024-04-02 14:53:08     major_brand     : isom&#xA;2024-04-02 14:53:08     minor_version   : 512&#xA;2024-04-02 14:53:08     compatible_brands: isomiso2mp41&#xA;2024-04-02 14:53:08     encoder         : Lavf60.16.100&#xA;2024-04-02 14:53:08   Stream #0:0(und): Video: vp8, yuv420p(tv, progressive), 640x360 [SAR 1:1 DAR 16:9], q=2-31, 256 kb/s, 30 fps, 1k tbn (default)&#xA;2024-04-02 14:53:08     Metadata:&#xA;2024-04-02 14:53:08       handler_name    : VideoHandler&#xA;2024-04-02 14:53:08       vendor_id       : [0][0][0][0]&#xA;2024-04-02 14:53:08       encoder         : Lavc60.31.102 libvpx&#xA;2024-04-02 14:53:08     Side data:&#xA;2024-04-02 14:53:08       cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A&#xA;2024-04-02 14:53:18 2024/04/02 06:53:18 INF [path demo0] runOnDemand command stopped: timed out&#xA;2024-04-02 14:53:18 2024/04/02 06:53:18 INF [WebRTC] [session 0f460c76] closed: source of path &#x27;demo0&#x27; has timed out&#xA;[out#0/webm @ 0x7faa859487c0] video:272kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.042856%&#xA;2024-04-02 14:53:18 frame=  315 fps= 32 q=18.0 Lsize=     275kB time=00:00:10.46 bitrate= 215.1kbits/s speed=1.05x    &#xA;2024-04-02 14:53:18 Exiting normally, received signal 2.&#xA;

    &#xA;

    I'm not sure what this is supposed to mean ? Why isn't the server able to stream this 3-second, 709kb video even once ? The browser connected to the server and the URL successfully, but no data was being transferred.

    &#xA;

    Just in case, I decided to manually convert all of my mp4 files to webm using ffmpeg, and verified with Window's media player that the webm videos work. Then, I modified MediaMTX's configuration to stream the webm videos directly :

    &#xA;

    paths:&#xA;  # example:&#xA;  # my_camera:&#xA;  #   source: rtsp://my_camera&#xA;  ~^demo\d&#x2B;$:&#xA;    runOnDemand: ffmpeg -re -stream_loop -1 -i /vids/$MTX_PATH.webm -c copy -f webm http://localhost:8889/$MTX_PATH/whip&#xA;

    &#xA;

    However, the error persists :

    &#xA;

    2024-04-02 15:03:58 ffmpeg version 6.1.1 Copyright (c) 2000-2023 the FFmpeg developers&#xA;2024-04-02 15:03:58   built with gcc 13.2.1 (Alpine 13.2.1_git20231014) 20231014&#xA;2024-04-02 15:03:58   configuration: --prefix=/usr --disable-librtmp --disable-lzma --disable-static --disable-stripping --enable-avfilter --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-libmp3lame --enable-libopenmpt --enable-libopus --enable-libplacebo --enable-libpulse --enable-librav1e --enable-librist --enable-libsoxr --enable-libsrt --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-lto=auto --enable-lv2 --enable-openssl --enable-pic --enable-postproc --enable-pthreads --enable-shared --enable-vaapi --enable-vdpau --enable-version3 --enable-vulkan --optflags=-O3 --enable-libjxl --enable-libsvtav1 --enable-libvpl&#xA;2024-04-02 15:03:58   libavutil      58. 29.100 / 58. 29.100&#xA;2024-04-02 15:03:58   libavcodec     60. 31.102 / 60. 31.102&#xA;2024-04-02 15:03:58   libavformat    60. 16.100 / 60. 16.100&#xA;2024-04-02 15:03:58   libavdevice    60.  3.100 / 60.  3.100&#xA;2024-04-02 15:03:58   libavfilter     9. 12.100 /  9. 12.100&#xA;2024-04-02 15:03:58   libswscale      7.  5.100 /  7.  5.100&#xA;2024-04-02 15:03:58   libswresample   5.  0.100 /  5.  0.100&#xA;2024-04-02 15:03:58   libpostproc    57.  3.100 / 57.  3.100&#xA;2024-04-02 15:03:58 Input #0, matroska,webm, from &#x27;/vids/demo0.webm&#x27;:&#xA;2024-04-02 15:03:58   Metadata:&#xA;2024-04-02 15:03:58     COMPATIBLE_BRANDS: isomiso2mp41&#xA;2024-04-02 15:03:58     MAJOR_BRAND     : isom&#xA;2024-04-02 15:03:58     MINOR_VERSION   : 512&#xA;2024-04-02 15:03:58     ENCODER         : Lavf60.16.100&#xA;2024-04-02 15:03:58   Duration: 00:00:03.47, start: 0.000000, bitrate: 217 kb/s&#xA;2024-04-02 15:03:58   Stream #0:0: Video: vp8, yuv420p(tv, progressive), 640x360, SAR 1:1 DAR 16:9, 30 fps, 30 tbr, 1k tbn (default)&#xA;2024-04-02 15:03:58     Metadata:&#xA;2024-04-02 15:03:58       HANDLER_NAME    : VideoHandler&#xA;2024-04-02 15:03:58       VENDOR_ID       : [0][0][0][0]&#xA;2024-04-02 15:03:58       ENCODER         : Lavc60.31.102 libvpx&#xA;2024-04-02 15:03:58       DURATION        : 00:00:03.466000000&#xA;2024-04-02 15:03:58 Output #0, webm, to &#x27;http://localhost:8889/demo0/whip&#x27;:&#xA;2024-04-02 15:03:58   Metadata:&#xA;2024-04-02 15:03:58     COMPATIBLE_BRANDS: isomiso2mp41&#xA;2024-04-02 15:03:58     MAJOR_BRAND     : isom&#xA;2024-04-02 15:03:58     MINOR_VERSION   : 512&#xA;2024-04-02 15:03:58     encoder         : Lavf60.16.100&#xA;2024-04-02 15:03:58   Stream #0:0: Video: vp8, yuv420p(tv, progressive), 640x360 [SAR 1:1 DAR 16:9], q=2-31, 30 fps, 30 tbr, 1k tbn (default)&#xA;2024-04-02 15:03:58     Metadata:&#xA;2024-04-02 15:03:58       HANDLER_NAME    : VideoHandler&#xA;2024-04-02 15:03:58       VENDOR_ID       : [0][0][0][0]&#xA;2024-04-02 15:03:58       ENCODER         : Lavc60.31.102 libvpx&#xA;2024-04-02 15:03:58       DURATION        : 00:00:03.466000000&#xA;2024-04-02 15:03:58 Stream mapping:&#xA;2024-04-02 15:03:58   Stream #0:0 -> #0:0 (copy)&#xA;2024-04-02 15:03:58 Press [q] to stop, [?] for help&#xA;2024-04-02 15:04:08 2024/04/02 07:04:08 INF [path demo0] runOnDemand command stopped: timed out&#xA;2024-04-02 15:04:08 2024/04/02 07:04:08 INF [WebRTC] [session 829664cb] closed: source of path &#x27;demo0&#x27; has timed out&#xA;[out#0/webm @ 0x7f04b00515c0] video:281kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.023511%&#xA;2024-04-02 15:04:08 size=     284kB time=00:00:10.49 bitrate= 221.3kbits/s speed=1.05x    &#xA;2024-04-02 15:04:08 Exiting normally, received signal 2.&#xA;

    &#xA;

    This is the same when I try to stream my other videos (demo1.mp4, demo2.mp4 etc.). What am I doing wrong ?

    &#xA;