Recherche avancée

Médias (0)

Mot : - Tags -/performance

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (74)

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

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

Sur d’autres sites (7068)

  • How can I pipe output of ffmpeg to ffplay in java ?

    30 septembre 2020, par guidop21

    currently i have created a java project that allows me to use ffmpeg to split a live video coming from a webcam and fragment it into many 60 second video clips.
These are the main methods :

    


        @Override
public boolean startRecording(String fileName, Integer clipPrefix, String folderClipName) {
    final String methodName = "startRecording(fileName, folderClipPath)";
    this.startLog(methodName, fileName, folderClipName);
    try {
        File folder = new File(folderClipName + System.getProperty("file.separator") +fileName);
        if( !folder.exists() ) {
            folder.mkdir();
        }
    }catch(Exception e) {
        e.printStackTrace();
    }
    String fileNameFull = buildFileName(fileName, clipPrefix);
    String[] cmd = buildCommandArray(fileNameFull);
    logger.debug("{} - executing FfmpegStartRecordingCommand with cmd:{}", methodName, Arrays.toString(cmd));
    Process p = new FfmpegStartRecordingCommand().execute(cmd);
    try {
        Thread.sleep(1000);
    } catch (InterruptedException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
    return p.isAlive();
}

public String[] buildCommandArray(String fileNameFull) {
    String cmd[] = new String[37];
    cmd[0] = "-f";
    cmd[1] = "dshow";
    cmd[2] = "-rtbufsize";
    cmd[3] = "2000M";
    cmd[4] = "-i";
    cmd[5] = cameraName;
    cmd[6] = "-preset";
    cmd[7] = "slow";
    cmd[8] = "-codec:a";
    cmd[9] = "libfdk_aac";
    cmd[10] = "-b:a";
    cmd[11] = "128k";
    cmd[12] = "-codec:v";
    cmd[13] = "libx264";
    cmd[14] = "-pix_fmt";
    cmd[15] = "yuv420p";
    cmd[16] = "-b:v";
    cmd[17] = "1000k";
    cmd[18] = "-minrate";
    cmd[19] = "500k";
    cmd[20] = "-maxrate";
    cmd[21] = "2000k";
    cmd[22] = "-bufsize";
    cmd[23] = "2000k";
    cmd[24] = "-vf";
    cmd[25] = "scale=854:480";
    cmd[26] = "-f";
    cmd[27] = "segment";
    cmd[28] = "-segment_time";
    cmd[29] = "60";
    cmd[30] = "-reset_timestamps";
    cmd[31] = "1";
    cmd[32] = "-flush_packets";
    cmd[33] = "1";
    cmd[34] = "-loglevel";
    cmd[35] = "quiet";
    cmd[36] = fileNameFull;
    return cmd;
}


    


    To these I wish I could use a method that allows me to use ffplay at the same time in order to see what I am acquiring ?
On the internet I found the following command

    


    ffmpeg -i <video> out.mp4 | ffplay -i video&#xA;</video>

    &#xA;

    but i don't know how to implement it in java.&#xA;Some idea ??&#xA;Thanks in advance

    &#xA;

  • How to get stream data from producer on server side to pipe to fluent-ffmpeg

    6 juin 2023, par Nicolas Ferrari

    I’ve developped a live streaming app using mediasoup but I’m having trouble understanding how data flows from producer to consumer on the server side.&#xA;I’d like to get the producer video stream on the server and process it with fluent-ffmpeg library.

    &#xA;

    I tried trace events, I looked for data events, I found old posts about “rtppacket” or “rtp” or other events that don’t appear in the documentation.

    &#xA;

    I also tried to use the mediasoup-demo github code as help but it didn’t work, and I don’t want to use ffmpeg with shell commands but with the fluent-ffmpeg library.

    &#xA;

    Maybe I missed something in the documentation. If so, can you point me in the right direction please ?

    &#xA;

    TL ;DR : How can I access the streaming data being sent by the producer on the server side with mediasoup ?

    &#xA;

    Thanks in advance for your help :)

    &#xA;

  • Problems writing to pipe in ffmpeg

    28 juin 2018, par Mikkel Bachmann

    I have written a stream server that utilizes FFMPEG for transcoding. [StreamServer2 v.1.5]

    The way it works is that i have thru a control channel tell a DVR to open a stream, when the stream is open the DVR will respond with a sdp file- or the info for the sdp file.
    This is working when i run StreamServer2 on my windows 10 computer, byt when i run it on my 2016 server, i get an error saying : Output file #0 does not contain any stream

    I works on my Windows 10 computer, also I have an old version of StreamServer2 from before we created the control channel ; that one is opning a RTSP stream as you normally will do, bu calling the rtsp url, and that is currently running live on an server 2008R2 environment.

    The reason that we did change the way of getting a stream is that we have a new system where the DVRs IPAddress is dynamic and unpredictable.

    So i hope that somebody can help me find out why it does not work on Windows Server 2016

    The FFMPG Report file

    ffmpeg started on 2018-06-27 at 13:06:51
    Report written to "ffmpeg-20180627-130651.log"
    Command line:
    "E:\\r2pPrograms\\StreamServer2\\ffmpeg.exe" -stdin -y -loglevel info -report -protocol_whitelist file,udp,rtp -i 8936021605650268160_37.sdp -f mpeg1video -g 52 -movflags frag_keyframe+empty_moov -b:v 64k -q 5 -an -
    ffmpeg version N-91024-g293a6e8332 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 7.3.0 (GCC)
     configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
     libavutil      56. 18.100 / 56. 18.100
     libavcodec     58. 19.101 / 58. 19.101
     libavformat    58. 13.102 / 58. 13.102
     libavdevice    58.  4.100 / 58.  4.100
     libavfilter     7. 21.100 /  7. 21.100
     libswscale      5.  2.100 /  5.  2.100
     libswresample   3.  2.100 /  3.  2.100
     libpostproc    55.  2.100 / 55.  2.100
    Splitting the commandline.
    Reading option '-stdin' ... matched as option 'stdin' (enable or disable interaction on standard input) with argument '1'.
    Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
    Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'info'.
    Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
    Reading option '-protocol_whitelist' ... matched as AVOption 'protocol_whitelist' with argument 'file,udp,rtp'.
    Reading option '-i' ... matched as input url with argument '8936021605650268160_37.sdp'.
    Reading option '-f' ... matched as option 'f' (force format) with argument 'mpeg1video'.
    Reading option '-g' ... matched as AVOption 'g' with argument '52'.
    Reading option '-movflags' ... matched as AVOption 'movflags' with argument 'frag_keyframe+empty_moov'.
    Reading option '-b:v' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '64k'.
    Reading option '-q' ... matched as option 'q' (use fixed quality scale (VBR)) with argument '5'.
    Reading option '-an' ... matched as option 'an' (disable audio) with argument '1'.
    Reading option '-' ... matched as output url.
    Finished splitting the commandline.
    Parsing a group of options: global .
    Applying option stdin (enable or disable interaction on standard input) with argument 1.
    Applying option y (overwrite output files) with argument 1.
    Applying option loglevel (set logging level) with argument info.
    Applying option report (generate a report) with argument 1.
    Successfully parsed a group of options.
    Parsing a group of options: input url 8936021605650268160_37.sdp.
    Successfully parsed a group of options.
    Opening an input file: 8936021605650268160_37.sdp.
    [NULL @ 000001484256c1c0] Opening '8936021605650268160_37.sdp' for reading
    [sdp @ 000001484256c1c0] Format sdp probed with size=2048 and score=50
    [sdp @ 000001484256c1c0] video codec set to: h264
    [udp @ 0000014842572700] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
    [udp @ 0000014842572700] end receive buffer size reported is 65536
    [udp @ 000001484258f140] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
    [udp @ 000001484258f140] end receive buffer size reported is 65536
    [sdp @ 000001484256c1c0] setting jitter buffer size to 500
    [sdp @ 000001484256c1c0] Before avformat_find_stream_info() pos: 152 bytes read:152 seeks:0 nb_streams:1
    [sdp @ 000001484256c1c0] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [sdp @ 000001484256c1c0] After avformat_find_stream_info() pos: 152 bytes read:152 seeks:0 frames:0
    Input #0, sdp, from '8936021605650268160_37.sdp':
     Duration: N/A, bitrate: N/A
       Stream #0:0, 0, 1/90000: Video: h264, none, 90k tbr, 90k tbn, 180k tbc
    Successfully opened the file.
    Parsing a group of options: output url -.
    Applying option f (force format) with argument mpeg1video.
    Applying option b:v (video bitrate (please use -b:v)) with argument 64k.
    Applying option q (use fixed quality scale (VBR)) with argument 5.
    Applying option an (disable audio) with argument 1.
    Successfully parsed a group of options.
    Opening an output file: -.
    Output #0, mpeg1video, to 'pipe:':
    Output file #0 does not contain any stream
    [AVIOContext @ 0000014842574b80] Statistics: 152 bytes read, 0 seeks