Recherche avancée

Médias (91)

Autres articles (69)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • 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

Sur d’autres sites (10465)

  • lavfi/vulkan : port to using timeline semaphores

    4 novembre 2021, par Lynne
    lavfi/vulkan : port to using timeline semaphores
    
    • [DH] libavfilter/vulkan.c
    • [DH] libavfilter/vulkan.h
  • 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 ?

    


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