Recherche avancée

Médias (2)

Mot : - Tags -/documentation

Autres articles (70)

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

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

  • Déploiements possibles

    31 janvier 2010, par

    Deux types de déploiements sont envisageable dépendant de deux aspects : La méthode d’installation envisagée (en standalone ou en ferme) ; Le nombre d’encodages journaliers et la fréquentation envisagés ;
    L’encodage de vidéos est un processus lourd consommant énormément de ressources système (CPU et RAM), il est nécessaire de prendre tout cela en considération. Ce système n’est donc possible que sur un ou plusieurs serveurs dédiés.
    Version mono serveur
    La version mono serveur consiste à n’utiliser qu’une (...)

Sur d’autres sites (12368)

  • Unable to open FFmpegFrameRecorder stream on a UDP port on Windows

    4 juin 2022, par DeoBelbert

    I am trying to stream a webcam video with FFmpegFrameRecorder and play it with "ffplay" command, but the ffplay command fails with the following message 'udp ://127.0.0.1:25777 : Invalid data found when processing input/0'.

    


    The code I am using for streaming the video,

    


     public void startStreaming() throws Exception {
    OpenCVFrameGrabber grabber = new OpenCVFrameGrabber(0);
    grabber.setVideoCodec(27);
    grabber.setImageMode(FrameGrabber.ImageMode.COLOR);
    grabber.setBitsPerPixel(10);
    grabber.setFormat("yuvj420p");
    grabber.start();
    FFmpegFrameRecorder  recorder = new FFmpegFrameRecorder("udp://127.0.0.1:25777", grabber.getImageWidth(), grabber.getImageHeight());
    recorder.setFrameRate(grabber.getFrameRate());
    recorder.setVideoBitrate(grabber.getVideoBitrate());
    recorder.setOption("listen", "1");
    recorder.setFormat("h264");
    recorder.setPixelFormat(AV_PIX_FMT_YUV420P);
    recorder.setVideoCodecName("h264_videotoolbox");
    recorder.setVideoCodec(27);
    recorder.setOption("keyint", "10");
    recorder.start();}


    


    And I am calling the recorder.record in a thread as follows,

    


    frame = grabber.grabFrame();                      
recorder.record(frame);


    


    After starting the stream, I opened the command line and tried to play the stream with the following command,

    


    ffplay udp://127.0.0.1:25777


    


    And it is failing with the following message,

    


    udp://127.0.0.1:25777: Invalid data found when processing input/0


    


    To get the stream information, I used the following command,

    


    ffmpeg -i udp://127.0.0.1:25777


    


    And it showed the following output,

    


    [h264 @ 0000014dd1424880] non-existing PPS 0 referenced
[h264 @ 0000014dd1424880] decode_slice_header error
[h264 @ 0000014dd1424880] non-existing PPS 0 referenced
[h264 @ 0000014dd1424880] decode_slice_header error
[h264 @ 0000014dd1424880] non-existing PPS 0 referenced
[h264 @ 0000014dd1424880] decode_slice_header error
[h264 @ 0000014dd1424880] non-existing PPS 0 referenced
[h264 @ 0000014dd1424880] decode_slice_header error
[h264 @ 0000014dd1424880] no frame!


    


    But when I tried with TCP protocol it is working fine and I am able to play the video.
How can I fix this issue ? this is the first time I am using the FFmpeg and JavaCV.

    


  • How to make multi-stage Docker image but avoid shared libraries conflict ?

    26 mai 2022, par Politechniczny

    I need to make a Docker image that contains the following tools :

    


      

    • janus-pp-rec - video processor from Janus WebRTC
    • 


    • ffmpeg and ffprobe
    • 


    • Java 11 JDK
    • 


    


    So I tried to make multi-stage Docker image :

    


    FROM swmansion/janus-gateway:latest as janus
FROM jrottenberg/ffmpeg:latest as ffmpeg
FROM eclipse-temurin:11 as java

COPY --from=janus /usr /usr
COPY --from=ffmpeg /usr /usr


    


    but still some files were missing so I copied the whole containers :

    


    FROM swmansion/janus-gateway:latest as janus
FROM jrottenberg/ffmpeg:latest as ffmpeg
FROM eclipse-temurin:11 as java

COPY --from=janus / /
COPY --from=ffmpeg / /


    


    but still nor janus-pp-rec, neither ffmpeg is working because I get errors :

    


    $ docker container exec videoprocessing janus-pp-rec

janus-pp-rec: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0)
janus-pp-rec: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /usr/lib/x86_64-linux-gnu/libavutil.so.56)
janus-pp-rec: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/lib/x86_64-linux-gnu/libavutil.so.56)
...
janus-pp-rec: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.25' not found (required by /usr/lib/x86_64-linux-gnu/libopenmpt.so.0)
...

$ docker container exec videoprocessing ffmpeg

ffmpeg: error while loading shared libraries: libavdevice.so.58: cannot open shared object file: No such file or directory


    


    Any ideas how to make these tools work in one container ?

    


  • Why RTP doesn't support multiple streams to one port but RTSP does ?

    30 avril 2022, par zenno2

    I use ffmpeg for streaming a video using RTP protocol.
Why I can't send multiple streams to one RTP port, but RTSP that uses RTP can ?
I started a RTSP server that listens 8554 TCP port and 8000/8001 RTP/RTCP. It easily can receive both video and audio streams to one port 8000, I've checked it with wireshark. But when I try to do the same with pure RTP using ffmpeg, it prints me an error

    


    Only one stream supported in the RTP muxer


    


    And if I want to stream a video with sound, I have to split them into two streams and send to different RTP ports. Or maybe I can somehow make it receive multiple streams to one port via RTP ?

    


    Could you explain me, why it happens ?