Recherche avancée

Médias (1)

Mot : - Tags -/publier

Autres articles (71)

  • 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

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

  • How to create .m3u8 and .ts files which are compatible with HTTP Live Streaming using Java and OpenCV ?

    30 septembre 2021, par O Connor

    Using FFMPEG as following, FFMPEG will create a stream.m3u8 file and .ts files sequentially, which are compatible for making video live streaming on a web page.

    


    ffmpeg -f dshow -i video="My Camera Name" stream.m3u8


    


    I am using Java and OpenCV as following for capturing video frames and creating .ts file.

    


    videoCapture = new VideoCapture(0, CV_CAP_DSHOW);

if (videoCapture.isOpened()) {
    Mat m = new Mat();
    videoCapture.read(m);
    int fourcc = VideoWriter.fourcc('a', 'v', 'c', '1');
    double fps = videoCapture.get(Videoio.CAP_PROP_FPS);
        
    if (fps <= 0) {
        fps = 25;
    }

    Size s =  new Size((int) videoCapture.get(Videoio.CAP_PROP_FRAME_WIDTH), (int) 
    videoCapture.get(Videoio.CAP_PROP_FRAME_HEIGHT));
    videoWriter = new VideoWriter("test0.ts", fourcc, fps, s, true);
      
    while (videoCapture.read(m)) {
         if (videoWriter.isOpened()) {
             videoWriter.write(m);
         }
    }
}
    
videoCapture.release();
videoWriter.release();


    


    I can play the test0.ts video using VLC player and ffplay. But this test0.ts video is not compatible for HTTP Live Streaming on a web page.

    


      

    1. How can I create .m3u8 and .ts files which are compatible with HTTP Live Streaming using Java and OpenCV ?
    2. 


    


    I am not persisting to use OpenCV and Java for create these files, but I need a client that captures the video frames and sends the raw video data to the server. And the server is responsible for catching the raw video data, creating .ts video file and for handling the live streaming requests coming from the web page. The communication between the client and the server uses a credential.

    


    That's why I think using FFMPEG alone for this approach is not possible.

    


      

    1. If there is another way for making this client, server and HTTP Live Streaming possible, I would like to learn that as well.
    2. 


    


  • How to produce Live video and audio streaming (not VoD) with ffmpeg ?

    22 novembre 2022, par Artem

    I want to produce a Live audio/video stream from local file.

    



    I tried the following :

    



    


    ffmpeg -re -thread_queue_size 4 -i source_video_file.ts -strict -2
 -vcodec copy -an -f rtp rtp ://localhost:10000 -acodec copy -vn -sdp_file saved_sdp_file -f rtp rtp ://localhost:20000

    


    



    and then :

    



    


    ffplay saved_sdp_file

    


    



    It seems to work fine, but it looks like a Video on Demand, cause I can replay this file with ffplay whenever I want.

    



    But I need ffplay to show video/audio only during ffmpeg streaming instance is running (the first command above).

    



    How do I achieve this ?

    



    Thanks !

    


  • Live Stream Android Screen

    27 janvier 2012, par salamis

    I would like to stream Android Screen using FFMPEG and MonkeyRunners(MonkeyImage)

    I found a good Tutorial for streaming your webcam using FFMPEG and video4linux2.

    Is it possible to send the bytes from the Monkeyrunner.MonkeyImage to the FFMPEG to be converted to a live video stream ?

    Actual code :

    $ffmpeg -f video4linux2 -i /dev/video0 http://78.47.18.19:8090/cam1.ffm

    Replace it with something similar to :

    $ffmpeg -f video4linux2 -i <add here="here" python="python" stream="stream"> http://78.47.18.19:8090/cam1.ffm
    </add>

    Any suggestions ?