Recherche avancée

Médias (91)

Autres articles (93)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

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

Sur d’autres sites (5243)

  • I'm running a process in Java and am getting stuck when I wait for it to finish

    31 juillet 2020, par nottAbott

    I have a Java program that is supposed to make copies of segments of a video and then stitch them back together, using ffmpeg. My "snip" method, the one that makes the segment files, has a problem, it gets stuck when I call "process.waitfor()". When I take it out, the videos load partly, but cannot be accessed until I close the program. When I try to delete them, while the program is running, it says that they cannot be deleted because they are in use. Could anyone lead me in the right direction ? Here is the method :

    


    //snips out all the clips from the main video
public void snip() throws IOException, InterruptedException {
    
    for(int i = 0; i < snippets.size(); i++) {
        //Future reference: https://stackoverflow.com/questions/9885643/ffmpeg-executed-from-javas-processbuilder-does-not-return-under-windows-7/9885717#9885717
        //Example: ffmpeg -i 20sec.mp4 -ss 0:0:1 -to 0:0:5 -c copy foobar.mp4
        String newFile = "foobar" + String.valueOf(i) + ".mp4";
        ProcessBuilder processBuilder = new ProcessBuilder("ffmpeg", "-i", videoName, "-ss",
                snippets.get(i).getStartTime(), "-to", snippets.get(i).getEndTime(), newFile);
        
        //I tried this first and then added in the process/process.waitfor below
        //processBuilder.start();
        
        Process process = processBuilder.start();
        process.waitFor();
        
        System.out.println("Snip " + i + "\n");
        
        //add to the formatted list of files to be concat later
        if(i == snippets.size() - 1) {
            stitchFiles += newFile + "\"";
        }
        
        else {
            stitchFiles += newFile + "|";
        }
    }
}


    


  • lavf/srt : fix build fail when used the libsrt 1.4.1

    12 juillet 2020, par Jun Zhao
    lavf/srt : fix build fail when used the libsrt 1.4.1
    

    libsrt changed the :
    SRTO_SMOOTHER -> SRTO_CONGESTION
    SRTO_STRICTENC -> SRTO_ENFORCEDENCRYPTION
    and removed the front of deprecated options (SRTO_SMOOTHER/SRTO_STRICTENC)
    in the header, it's lead to build fail

    fix #8760

    Signed-off-by : Jun Zhao <barryjzhao@tencent.com>

    • [DH] libavformat/libsrt.c
  • ffmpeg to kurento rtp stream choppy video issue

    29 juillet 2020, par ahmetsarias

    I use ffmpeg to make an rtp stream to kurento media server and then send it to browsers via webrtc.

    &#xA;

    ffmpeg (h264 RTP) -> Kurento -> (h264 WebRTC) Browser

    &#xA;

    I'm capturing virtual xorg display.&#xA;This is my ffmpeg command :

    &#xA;

    ffmpeg -y -v info -fflags &#x2B;genpts -f x11grab -draw_mouse 0 -r 25 -s 1280x720 -thread_queue_size 4096 -i :0.0&#x2B;0,0 -an -c:v libx264 -preset veryfast -crf 25 -g 50 -pix_fmt yuv420p -maxrate 2976k -bufsize 5952k -ssrc 112233 -payload_type 103 -tune zerolatency -f rtp rtp://172.16.1.115:40258

    &#xA;

    This is my fake sdp offer used in negotiation with kurento RtpEndpoint

    &#xA;

    v=0&#xA;o=- 0 0 IN IP4 127.0.0.1&#xA;s=Stream&#xA;c=IN IP4 127.0.0.1&#xA;t=0 0&#xA;m=video 9 RTP/AVP 103&#xA;a=rtpmap:103 H264/90000&#xA;a=fmtp:103 packetization-mode=1&#xA;a=sendonly&#xA;a=direction:active&#xA;a=ssrc:112233 cname:user@example.com &#xA;

    &#xA;

    Here is the problem :

    &#xA;

    Some I-frames are choppy on bottom half slice of the frame while others have no problem.

    &#xA;

    It is sometimes corrected when another I-frame has arrived, but mostly choppy.

    &#xA;

    When choppiness happened, Kms log says :

    &#xA;

    &#xA;

    kmsutils kmsutils.c:483:gap_detection_probe:kmsagnosticbin2-108:sink Stream gap detected, timestamp : 0:51:22.574766908, duration : 0:00:00.000008237

    &#xA;

    &#xA;

    Normal stream (No choppy at all)

    &#xA;

    Normal Stream (No choppy at all)

    &#xA;

    Choppy stream

    &#xA;

    Choppy stream

    &#xA;

    When it is corrected with an I-Frame (Sometimes it happens)

    &#xA;

    Corrected stream

    &#xA;

    I have no clue about what could lead the issue.

    &#xA;

    Things that I tried to solve the problem.

    &#xA;

      &#xA;
    • Adding ?pkt_size=1000 (1100,900,1200. Since the mtu in kurento is 1200 default)
    • &#xA;

    • Changing -crf to different values in between 18-35
    • &#xA;

    • Changing -preset between medium and ultrafast
    • &#xA;

    • Changing framerate
    • &#xA;

    • Changing gop length (When i lower the gop length -More I-Frames- choppiness become shorter in duration but more frequent)
    • &#xA;

    • When I disable sliced-threads, there is no issue with bottom side but whole screen freezes in same scenario
    • &#xA;

    &#xA;

    Any help would be appreciated. Thanks.

    &#xA;