Recherche avancée

Médias (1)

Mot : - Tags -/vidéo

Autres articles (34)

  • 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 (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (8530)

  • Issue with ffprobe execution within Docker Environment

    7 mars 2024, par Khải Hồ Quang

    Here is my Dockerfile :

    


    FROM node:18-slim as builder

WORKDIR /usr/src/ai_api_builder/

COPY package*.json tsconfig.json /usr/src/ai_api_builder/

RUN apt-get update && \
    apt-get install mariadb-client -y && \
    npm install && npm cache clean --force

RUN apt install ffmpeg -y && \
    ffmpeg -version && \
    ffprobe -version
COPY ${REPO_DIR}/ ./

RUN npm run build && mv audio_store node_modules dist/

FROM node:18-slim

# Create and cd into app directory
WORKDIR /usr/src/dwt_api_app/dist

# Copy the artifact to the new image
COPY --from=builder /usr/src/dwt_api_builder/dist ./

EXPOSE 3001

ENTRYPOINT ["node", "app.js"]


    


    When I build Dockerfile, the step check ffmpeg and ffprobe version worked :

    


    ffmpeg version 5.1.4-0+deb12u1 Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 12 (Debian 12.2.0-14)
...
ffprobe version 5.1.4-0+deb12u1 Copyright (c) 2007-2023 the FFmpeg developers


    


    But when I run container, my TypeScript code not work (the metadata return undefined) :

    


    import { ffprobe } from "fluent-ffmpeg";
ffprobe(latestFilePath, async function(err: any, metadata: any) {
    console.log("metadata", metadata);
})


    


    When I exec to container and check ffmpeg -version and ffprobe -version, I got : bash: ffmpeg: command not found. And when I check in bin folder, also couldn't find ffmpeg.
    
I tried it locally (Centos7), not in container, it worked (metadata return an object), and here is ffprobe version

    


    ffprobe version 6.1-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2007-2023 the FFmpeg developers <b>&#xA;&#xA;</b>

    &#xA;

    What step did I do wrong when running the container or is there any difference between debian (in container) and centos 7 (local) that I need to pay attention to ? Thanks

    &#xA;

  • How to resolve "runOnReady command exited with code 0" when restreaming a stream using Mediamtx ?

    2 juillet 2023, par Emad Helmi

    I'm attempting to publish a stream to the RTMP port 1935 using a ffmpeg command with Mediamtx (v0.22.2). Afterward, I want to restream the mainstream to another path using the runOnReady command in the config file. However, I'm encountering an issue where the runOnReady command exits with code 0.

    &#xA;

    Steps to Replicate :

    &#xA;

      &#xA;
    1. Use the provided docker-compose.yml file :
    2. &#xA;

    &#xA;

    version: "3.8"&#xA;&#xA;name: mediamtx&#xA;services:&#xA;  mediamtx:&#xA;    image: aler9/rtsp-simple-server:v0.22.2&#xA;    container_name: media_mtx_rtsp_server&#xA;    ports:&#xA;      - "8554:8554"&#xA;      - "1935:1935"&#xA;      - "8888:8888"&#xA;      - "8889:8889"&#xA;      - "9997:9997"&#xA;      - "8000:8000"&#xA;    volumes:&#xA;      - ./configs/mediamtx/config.yml:/mediamtx.yml&#xA;      - ../volumes/hls/segments:/hls/segments&#xA;

    &#xA;

      &#xA;
    1. Add the following path to the config.yml file :
    2. &#xA;

    &#xA;

    paths:&#xA;  show/test:&#xA;    runOnReady: ffmpeg -i rtmp://localhost:1935/show/test -c copy -f flv "rtmp://localhost:1935/compressed/test"&#xA;    runOnReadyRestart: yes&#xA;

    &#xA;

      &#xA;
    1. Start the server using docker-compose.
    2. &#xA;

    3. Publish an RTMP stream to the server using the following command :
    4. &#xA;

    &#xA;

    ffmpeg -re -stream_loop -1 -i files/sample-30s.mp4 -c copy -f flv "rtmp://localhost:1935/show/test"&#xA;

    &#xA;

      &#xA;
    1. When I check the logs :
    2. &#xA;

    &#xA;

    2023/07/01 15:16:30 INF [RTMP] [conn 172.26.0.1:51044] opened&#xA;2023/07/01 15:16:30 INF [path show/test] runOnReady command started&#xA;2023/07/01 15:16:30 INF [RTMP] [conn 172.26.0.1:51044] is publishing to path &#x27;show/test&#x27;, 2 tracks (H264, MPEG4-audio-gen)&#xA;2023/07/01 15:16:30 INF [path show/test] runOnReady command exited with code 0&#xA;

    &#xA;

    So I can't watch the stream on the new path (/compressed/test)

    &#xA;

  • Error setting option use_wallclock_as_timestamps to value 1 in FFmpegFrameGrabber - avformat_open_input() error -22

    29 mai 2023, par githubwyj

    avformat_open_input() error -22 Error setting option

    &#xA;

    FFmpegFrameGrabber grabber = new FFmpegFrameGrabber("rtsp://xxxxx");&#xA;grabber.setOption("use_wallclock_as_timestamps", "1");&#xA;grabber.setOption("rtsp_transport", "tcp");&#xA;grabber.setOption("rtsp_flags", "prefer_tcp");&#xA;&#xA;grabber.start();&#xA;

    &#xA;

    I used ffmpeg in JavaCV to pull rtsp streams, but there was an error like this

    &#xA;

    Error: [rtsp @ 0x7f2770145a60] Invalid option type.&#xA;&#xA;Error: [rtsp @ 0x7f2770145a60] Error setting option use_wallclock_as_timestamps to value 1.&#xA;&#xA;Error: [rtsp @ 0x7f2770145a60] Invalid option type.&#xA;&#xA;Error: [rtsp @ 0x7f2770145a60] Error setting option use_wallclock_as_timestamps to value 1.&#xA;&#xA;org.bytedeco.javacv.FFmpegFrameGrabber$Exception: avformat_open_input() error -22: Could not open input "rtsp://xxxx@10.10.10.119:554/video/1". (Has setFormat() been called?) (For more details, make sure FFmpegLogCallback.set() has been called.)&#xA;        at org.bytedeco.javacv.FFmpegFrameGrabber.startUnsafe(FFmpegFrameGrabber.java:975)&#xA;        at org.bytedeco.javacv.FFmpegFrameGrabber.start(FFmpegFrameGrabber.java:903)&#xA;        at org.bytedeco.javacv.FFmpegFrameGrabber.start(FFmpegFrameGrabber.java:898)&#xA;&#xA;&#xA;

    &#xA;

    When I removed grabber.setOption("use_wallclock_as_timestamps", "1");, the following error occurred:

    &#xA;

    2023-05-29 11:11:02.169 [pool-2-thread-9] ERROR [FFmpegLogCallback:54] - [RTSP demuxer @ 0x7f2b8c007240] [Eval @ 0x7f2b32790080] Undefined constant or missing &#x27;(&#x27; in &#x27;prefer_tcp&#x27;&#xA;&#xA;2023-05-29 11:11:02.169 [pool-2-thread-9] ERROR [FFmpegLogCallback:54] - [RTSP demuxer @ 0x7f2b8c007240] Unable to parse option value "prefer_tcp"&#xA;&#xA;2023-05-29 11:11:02.170 [pool-2-thread-9] ERROR [FFmpegLogCallback:54] - [RTSP demuxer @ 0x7f2b8c007240] Error setting option rtsp_flags to value prefer_tcp.&#xA;&#xA;2023-05-29 11:11:02.170 [pool-2-thread-9] ERROR [FFmpegLogCallback:54] - [RTSP demuxer @ 0x7f2b8c007240] [Eval @ 0x7f2b32790080] Undefined constant or missing &#x27;(&#x27; in &#x27;prefer_tcp&#x27;&#xA;&#xA;2023-05-29 11:11:02.170 [pool-2-thread-9] ERROR [FFmpegLogCallback:54] - [RTSP demuxer @ 0x7f2b8c007240] Unable to parse option value "prefer_tcp"&#xA;&#xA;2023-05-29 11:11:02.170 [pool-2-thread-9] ERROR [FFmpegLogCallback:54] - [RTSP demuxer @ 0x7f2b8c007240] Error setting option rtsp_flags to value prefer_tcp.&#xA;&#xA;&#xA;&#xA;org.bytedeco.javacv.FFmpegFrameGrabber$Exception: avformat_open_input() error -22: Could not open input "rtsp://xxxx@10.10.10.119:554/video/1". (Has setFormat() been called?) (For more details, make sure FFmpegLogCallback.set() has been called.)&#xA;        at org.bytedeco.javacv.FFmpegFrameGrabber.startUnsafe(FFmpegFrameGrabber.java:975)&#xA;        at org.bytedeco.javacv.FFmpegFrameGrabber.start(FFmpegFrameGrabber.java:903)&#xA;        at org.bytedeco.javacv.FFmpegFrameGrabber.start(FFmpegFrameGrabber.java:898)&#xA;&#xA;

    &#xA;

    javacv&ffmpeg :

    &#xA;

    &#x27;org.bytedeco:javacv-platform:1.5.8&#x27;,&#xA;&#x27;org.bytedeco:ffmpeg-platform:5.1.2-1.5.8&#x27;,&#xA;

    &#xA;