Recherche avancée

Médias (0)

Mot : - Tags -/serveur

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

Autres articles (29)

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

  • Activation de l’inscription des visiteurs

    12 avril 2011, par

    Il est également possible d’activer l’inscription des visiteurs ce qui permettra à tout un chacun d’ouvrir soit même un compte sur le canal en question dans le cadre de projets ouverts par exemple.
    Pour ce faire, il suffit d’aller dans l’espace de configuration du site en choisissant le sous menus "Gestion des utilisateurs". Le premier formulaire visible correspond à cette fonctionnalité.
    Par défaut, MediaSPIP a créé lors de son initialisation un élément de menu dans le menu du haut de la page menant (...)

  • Diogene : création de masques spécifiques de formulaires d’édition de contenus

    26 octobre 2010, par

    Diogene est un des plugins ? SPIP activé par défaut (extension) lors de l’initialisation de MediaSPIP.
    A quoi sert ce plugin
    Création de masques de formulaires
    Le plugin Diogène permet de créer des masques de formulaires spécifiques par secteur sur les trois objets spécifiques SPIP que sont : les articles ; les rubriques ; les sites
    Il permet ainsi de définir en fonction d’un secteur particulier, un masque de formulaire par objet, ajoutant ou enlevant ainsi des champs afin de rendre le formulaire (...)

Sur d’autres sites (3812)

  • latency when streaming x264

    18 novembre 2013, par tobsen

    I would like to produce a zerolatency live video stream and play it in VLC player with as little latency as possible.

    This are the settings I currently use :

    x264_param_default_preset( &m_Params, "veryfast", "zerolatency" );

    m_Params.i_threads              =   2;
    m_Params.b_sliced_threads       =   true;
    m_Params.i_width                =   m_SourceWidth;
    m_Params.i_height               =   m_SourceHeight;

    m_Params.b_intra_refresh        =   1;

    m_Params.b_vfr_input            =   true;
    m_Params.i_timebase_num         =   1;
    m_Params.i_timebase_den         =   1000;

    m_Params.i_fps_num              =   1;
    m_Params.i_fps_den              =   60;

    m_Params.rc.i_vbv_max_bitrate   =   512;
    m_Params.rc.i_vbv_buffer_size   =   256;
    m_Params.rc.f_vbv_buffer_init   =   1.1f;

    m_Params.rc.i_rc_method         =   X264_RC_CRF;
    m_Params.rc.f_rf_constant       =   24;
    m_Params.rc.f_rf_constant_max   =   35;

    m_Params.b_annexb               =   0;
    m_Params.b_repeat_headers       =   0;
    m_Params.b_aud                  =   0;

    x264_param_apply_profile( &m_Params, "high" );

    Using those settings, I have the following issues :

    • VLC shows lots of missing frames (see screenshot, "verloren"). I am not sure if this is an issue.
    • If I set a value <200ms for the network stream delay in VLC, VLC renders a few frames and than stops to decode/render frames.
    • If I set a value >= 200ms for the network stream delay in VLC, everything looks good so far but the latency is, obviously, 200ms, which is too high.

    Question :
    Which settings (x264lib and VLC) should I use in order to encode and stream with as little latency as possible ?

    enter image description here

  • Converting mp4 to webm , ogg formats

    24 août 2016, par user2943893

    Currently i need to convert mp4 video to webm and ogg . To convert mp4 to webm i have used "ffmpeg.exe". I am running following code to convert video mp4 to webm.

    [DllImport("User32.dll")]
    public static extern bool SetForegroundWindow(IntPtr hWnd);
    public void mciConvertWavMP3(string fileName, bool waitFlag)
    {

       string savepath = Server.MapPath(fileName);
       string destpath = Server.MapPath(fileName);
       string pworkingDir = Server.MapPath("~/ffmpeg/");

    // string outfile = "-b:a 16 --resample 24 -m j " + savepath + " " + savepath.Replace(".wav", ".mp3") + ""; //--- lame code
     //  string outfile = "-b 192k -i " + savepath + " " + destpath.Replace(".mp4", ".webm");
      // string outfile = "ffmpeg -i " + savepath + " -acodec libvorbis -ac 2 -ab 96k -ar 44100 -b 345k -s 640x360 " + Server.MapPath("output-file.webm");

       string outfile = "ffmpeg -i \"test7.mp4\" -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis \"" + Server.MapPath("output-file.webm") + "\"";
      // string outfile = "ffmpeg -i \""+fileName+"\" -codec:v libvpx -quality good -cpu-used 0 -b:v 600k -qmin 10 -qmax 42 -maxrate 500k -bufsize 1000k -threads 2 -vf scale=-1:480 -an -pass 1 -f webm /dev/null";

       System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo();
       psi.FileName = pworkingDir+"ffmpeg.exe";
       psi.Arguments = outfile;
       psi.UseShellExecute = true;
       psi.CreateNoWindow = false;
       System.Diagnostics.Process p = System.Diagnostics.Process.Start(psi);
       Thread.Sleep(1000);// utput.webm
       if (waitFlag)
       {
           p.WaitForExit();
           // wait for exit of called application
       }
    }

    I kept my project folder in D :/ drive

    When i am running from Command promt its working fine. But when i am running this code its not working fine.

    Formal errors which i am getting are :

    " unable to find a suitable output format for ’ffmpeg’ " kind of errors. SO please can any one help to solve this issue.

    Thank & Regards

  • How to keep transparency when scale webm file with ffmpeg

    5 octobre 2022, par Sonia Kidman

    I'm using ffmpeg to scale my WEBM file, by using below command : &#xA;ffmpeg -i in.webm -c:v libvpx -vf scale=100:100 out.webm&#xA;The output has correct resolution as I expected but the problem is transparency become black background.

    &#xA;&#xA;

    Could someone give me a solution for this.

    &#xA;&#xA;

    Thank you so much.

    &#xA;&#xA;

    Below is the log of the operation :

    &#xA;&#xA;

    ffmpeg version 3.4 Copyright (c) 2000-2017 the FFmpeg developers&#xA;  built with gcc 7.2.0 (GCC)&#xA;  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --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-cuda --enable-cuvid --enable-d3d11va --enable-nvenc --enable-dxva2 --enable-avisynth --enable-libmfx&#xA;  libavutil      55. 78.100 / 55. 78.100&#xA;  libavcodec     57.107.100 / 57.107.100&#xA;  libavformat    57. 83.100 / 57. 83.100&#xA;  libavdevice    57. 10.100 / 57. 10.100&#xA;  libavfilter     6.107.100 /  6.107.100&#xA;  libswscale      4.  8.100 /  4.  8.100&#xA;  libswresample   2.  9.100 /  2.  9.100&#xA;  libpostproc    54.  7.100 / 54.  7.100&#xA;Splitting the commandline.&#xA;Reading option &#x27;-v&#x27; ... matched as option &#x27;v&#x27; (set logging level) with argument &#x27;56&#x27;.&#xA;Reading option &#x27;-i&#x27; ... matched as input url with argument &#x27;in.webm&#x27;.&#xA;Reading option &#x27;-c:v&#x27; ... matched as option &#x27;c&#x27; (codec name) with argument &#x27;libvpx&#x27;.&#xA;Reading option &#x27;-vf&#x27; ... matched as option &#x27;vf&#x27; (set video filters) with argument &#x27;scale=320:240&#x27;.&#xA;Reading option &#x27;out.webm&#x27; ... matched as output url.&#xA;Finished splitting the commandline.&#xA;Parsing a group of options: global .&#xA;Applying option v (set logging level) with argument 56.&#xA;Successfully parsed a group of options.&#xA;Parsing a group of options: input url in.webm.&#xA;Successfully parsed a group of options.&#xA;Opening an input file: in.webm.&#xA;[NULL @ 000002387e6322a0] Opening &#x27;in.webm&#x27; for reading&#xA;[file @ 000002387e632ea0] Setting default whitelist &#x27;file,crypto&#x27;&#xA;Probing matroska,webm score:100 size:2048&#xA;Probing mp3 score:1 size:2048&#xA;[matroska,webm @ 000002387e6322a0] Format matroska,webm probed with size=2048 and score=100&#xA;st:0 removing common factor 1000000 from timebase&#xA;[matroska,webm @ 000002387e6322a0] Before avformat_find_stream_info() pos: 634 bytes read:32768 seeks:0 nb_streams:1&#xA;[matroska,webm @ 000002387e6322a0] All info found&#xA;[matroska,webm @ 000002387e6322a0] stream 0: start_time: 0.000 duration: -9223372036854776.000&#xA;[matroska,webm @ 000002387e6322a0] format: start_time: 0.000 duration: 0.400 bitrate=1432 kb/s&#xA;[matroska,webm @ 000002387e6322a0] After avformat_find_stream_info() pos: 34843 bytes read:65536 seeks:0 frames:1&#xA;Input #0, matroska,webm, from &#x27;in.webm&#x27;:&#xA;  Metadata:&#xA;    ENCODER         : Lavf57.83.100&#xA;  Duration: 00:00:00.40, start: 0.000000, bitrate: 1432 kb/s&#xA;    Stream #0:0, 1, 1/1000: Video: vp8, 1 reference frame, yuv420p(progressive), 640x480, 0/1, SAR 1:1 DAR 4:3, 10 fps, 10 tbr, 1k tbn, 1k tbc (default)&#xA;    Metadata:&#xA;      alpha_mode      : 1&#xA;      ENCODER         : Lavc57.107.100 libvpx&#xA;      DURATION        : 00:00:00.400000000&#xA;Successfully opened the file.&#xA;Parsing a group of options: output url out.webm.&#xA;Applying option c:v (codec name) with argument libvpx.&#xA;Applying option vf (set video filters) with argument scale=320:240.&#xA;Successfully parsed a group of options.&#xA;Opening an output file: out.webm.&#xA;[file @ 000002387e658b40] Setting default whitelist &#x27;file,crypto&#x27;&#xA;Successfully opened the file.&#xA;detected 4 logical cores&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (vp8 (native) -> vp8 (libvpx))&#xA;Press [q] to stop, [?] for help&#xA;cur_dts is invalid (this is harmless if it occurs once at the start per stream)&#xA;    Last message repeated 4 times&#xA;[Parsed_scale_0 @ 000002387e718a60] Setting &#x27;w&#x27; to value &#x27;320&#x27;&#xA;[Parsed_scale_0 @ 000002387e718a60] Setting &#x27;h&#x27; to value &#x27;240&#x27;&#xA;[Parsed_scale_0 @ 000002387e718a60] Setting &#x27;flags&#x27; to value &#x27;bicubic&#x27;&#xA;[Parsed_scale_0 @ 000002387e718a60] w:320 h:240 flags:&#x27;bicubic&#x27; interl:0&#xA;[graph 0 input from stream 0:0 @ 000002387e743b00] Setting &#x27;video_size&#x27; to value &#x27;640x480&#x27;&#xA;[graph 0 input from stream 0:0 @ 000002387e743b00] Setting &#x27;pix_fmt&#x27; to value &#x27;0&#x27;&#xA;[graph 0 input from stream 0:0 @ 000002387e743b00] Setting &#x27;time_base&#x27; to value &#x27;1/1000&#x27;&#xA;[graph 0 input from stream 0:0 @ 000002387e743b00] Setting &#x27;pixel_aspect&#x27; to value &#x27;1/1&#x27;&#xA;[graph 0 input from stream 0:0 @ 000002387e743b00] Setting &#x27;sws_param&#x27; to value &#x27;flags=2&#x27;&#xA;[graph 0 input from stream 0:0 @ 000002387e743b00] Setting &#x27;frame_rate&#x27; to value &#x27;10/1&#x27;&#xA;[graph 0 input from stream 0:0 @ 000002387e743b00] w:640 h:480 pixfmt:yuv420p tb:1/1000 fr:10/1 sar:1/1 sws_param:flags=2&#xA;[format @ 000002387e7fe1e0] compat: called with args=[yuv420p|yuva420p]&#xA;[format @ 000002387e7fe1e0] Setting &#x27;pix_fmts&#x27; to value &#x27;yuv420p|yuva420p&#x27;&#xA;[AVFilterGraph @ 000002387e634e60] query_formats: 4 queried, 3 merged, 0 already done, 0 delayed&#xA;[Parsed_scale_0 @ 000002387e718a60] w:640 h:480 fmt:yuv420p sar:1/1 -> w:320 h:240 fmt:yuv420p sar:1/1 flags:0x4&#xA;[libvpx @ 000002387e657fe0] v1.6.1&#xA;[libvpx @ 000002387e657fe0] --prefix=/Users/kyle/software/libvpx/win64/libvpx-1.6.1-win64 --target=x86_64-win64-gcc&#xA;[libvpx @ 000002387e657fe0] vpx_codec_enc_cfg&#xA;[libvpx @ 000002387e657fe0] generic settings&#xA;  g_usage:                      0&#xA;  g_threads:                    0&#xA;  g_profile:                    0&#xA;  g_w:                          320&#xA;  g_h:                          240&#xA;  g_bit_depth:                  8&#xA;  g_input_bit_depth:            8&#xA;  g_timebase:                   {1/30}&#xA;  g_error_resilient:            0&#xA;  g_pass:                       0&#xA;  g_lag_in_frames:              0&#xA;[libvpx @ 000002387e657fe0] rate control settings&#xA;  rc_dropframe_thresh:          0&#xA;  rc_resize_allowed:            0&#xA;  rc_resize_up_thresh:          60&#xA;  rc_resize_down_thresh:        30&#xA;  rc_end_usage:                 0&#xA;  rc_twopass_stats_in:          0000000000000000(0)&#xA;  rc_target_bitrate:            256&#xA;[libvpx @ 000002387e657fe0] quantizer settings&#xA;  rc_min_quantizer:             4&#xA;  rc_max_quantizer:             63&#xA;[libvpx @ 000002387e657fe0] bitrate tolerance&#xA;  rc_undershoot_pct:            100&#xA;  rc_overshoot_pct:             100&#xA;[libvpx @ 000002387e657fe0] decoder buffer model&#xA;  rc_buf_sz:                    6000&#xA;  rc_buf_initial_sz:            4000&#xA;  rc_buf_optimal_sz:            5000&#xA;[libvpx @ 000002387e657fe0] 2 pass rate control settings&#xA;  rc_2pass_vbr_bias_pct:        50&#xA;  rc_2pass_vbr_minsection_pct:  0&#xA;  rc_2pass_vbr_maxsection_pct:  400&#xA;[libvpx @ 000002387e657fe0] keyframing settings&#xA;  kf_mode:                      1&#xA;  kf_min_dist:                  0&#xA;  kf_max_dist:                  128&#xA;[libvpx @ 000002387e657fe0] &#xA;[libvpx @ 000002387e657fe0] vpx_codec_enc_cfg&#xA;[libvpx @ 000002387e657fe0] generic settings&#xA;  g_usage:                      0&#xA;  g_threads:                    0&#xA;  g_profile:                    0&#xA;  g_w:                          320&#xA;  g_h:                          240&#xA;  g_bit_depth:                  8&#xA;  g_input_bit_depth:            8&#xA;  g_timebase:                   {1/10}&#xA;  g_error_resilient:            0&#xA;  g_pass:                       0&#xA;  g_lag_in_frames:              25&#xA;[libvpx @ 000002387e657fe0] rate control settings&#xA;  rc_dropframe_thresh:          0&#xA;  rc_resize_allowed:            0&#xA;  rc_resize_up_thresh:          60&#xA;  rc_resize_down_thresh:        30&#xA;  rc_end_usage:                 0&#xA;  rc_twopass_stats_in:          0000000000000000(0)&#xA;  rc_target_bitrate:            200&#xA;[libvpx @ 000002387e657fe0] quantizer settings&#xA;  rc_min_quantizer:             4&#xA;  rc_max_quantizer:             63&#xA;[libvpx @ 000002387e657fe0] bitrate tolerance&#xA;  rc_undershoot_pct:            100&#xA;  rc_overshoot_pct:             100&#xA;[libvpx @ 000002387e657fe0] decoder buffer model&#xA;  rc_buf_sz:                    6000&#xA;  rc_buf_initial_sz:            4000&#xA;  rc_buf_optimal_sz:            5000&#xA;[libvpx @ 000002387e657fe0] 2 pass rate control settings&#xA;  rc_2pass_vbr_bias_pct:        50&#xA;  rc_2pass_vbr_minsection_pct:  0&#xA;  rc_2pass_vbr_maxsection_pct:  400&#xA;[libvpx @ 000002387e657fe0] keyframing settings&#xA;  kf_mode:                      1&#xA;  kf_min_dist:                  0&#xA;  kf_max_dist:                  128&#xA;[libvpx @ 000002387e657fe0] &#xA;[libvpx @ 000002387e657fe0] vpx_codec_control&#xA;[libvpx @ 000002387e657fe0]   VP8E_SET_CPUUSED:             1&#xA;[libvpx @ 000002387e657fe0]   VP8E_SET_ARNR_MAXFRAMES:      0&#xA;[libvpx @ 000002387e657fe0]   VP8E_SET_ARNR_STRENGTH:       3&#xA;[libvpx @ 000002387e657fe0]   VP8E_SET_ARNR_TYPE:           3&#xA;[libvpx @ 000002387e657fe0]   VP8E_SET_NOISE_SENSITIVITY:   0&#xA;[libvpx @ 000002387e657fe0]   VP8E_SET_TOKEN_PARTITIONS:    0&#xA;[libvpx @ 000002387e657fe0]   VP8E_SET_STATIC_THRESHOLD:    0&#xA;[libvpx @ 000002387e657fe0] Using deadline: 1000000&#xA;Output #0, webm, to &#x27;out.webm&#x27;:&#xA;  Metadata:&#xA;    encoder         : Lavf57.83.100&#xA;    Stream #0:0, 0, 1/1000: Video: vp8 (libvpx), 1 reference frame, yuv420p, 320x240 [SAR 1:1 DAR 4:3], 0/1, q=-1--1, 200 kb/s, 10 fps, 1k tbn, 10 tbc (default)&#xA;    Metadata:&#xA;      alpha_mode      : 1&#xA;      DURATION        : 00:00:00.400000000&#xA;      encoder         : Lavc57.107.100 libvpx&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1&#xA;Clipping frame in rate conversion by 0.000008&#xA;[webm @ 000002387e656880] get_metadata_duration returned: 400000&#xA;[webm @ 000002387e656880] Write early duration from metadata = 400&#xA;[webm @ 000002387e656880] Writing block at offset 3, size 11223, pts 0, dts 0, duration 100, keyframe 1&#xA;[webm @ 000002387e656880] Writing block at offset 11233, size 1288, pts 100, dts 100, duration 100, keyframe 0&#xA;[webm @ 000002387e656880] Writing block at offset 12528, size 1504, pts 200, dts 200, duration 100, keyframe 0&#xA;[webm @ 000002387e656880] Writing block at offset 14039, size 2481, pts 300, dts 300, duration 100, keyframe 0&#xA;[out_0_0 @ 000002387e743d60] EOF on sink link out_0_0:default.&#xA;No more output streams to write to, finishing.&#xA;[webm @ 000002387e656880] end duration = 400&#xA;[webm @ 000002387e656880] stream 0 end duration = 400&#xA;frame=    4 fps=0.0 q=0.0 Lsize=      17kB time=00:00:00.30 bitrate= 457.8kbits/s speed=4.45x    &#xA;video:16kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 4.413191%&#xA;Input file #0 (in.webm):&#xA;  Input stream #0:0 (video): 4 packets read (34992 bytes); 4 frames decoded; &#xA;  Total: 4 packets (34992 bytes) demuxed&#xA;Output file #0 (out.webm):&#xA;  Output stream #0:0 (video): 4 frames encoded; 4 packets muxed (16496 bytes); &#xA;  Total: 4 packets (16496 bytes) muxed&#xA;4 frames successfully decoded, 0 decoding errors&#xA;[AVIOContext @ 000002387e698c20] Statistics: 14 seeks, 10 writeouts&#xA;[AVIOContext @ 000002387cc773e0] Statistics: 71649 bytes read, 0 seeks&#xA;

    &#xA;