Recherche avancée

Médias (91)

Autres articles (80)

  • 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" ;

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

Sur d’autres sites (6664)

  • avcodec/me_cmp : restore author attribution and copyrights

    17 juillet 2014, par Michael Niedermayer
    avcodec/me_cmp : restore author attribution and copyrights
    

    These where removed by libav in

    See : git show -C 2d60444331fca1910510038dd3817bea885c2367
    diff —git a/libavcodec/dsputil.c b/libavcodec/me_cmp.c
    similarity index 98%
    rename from libavcodec/dsputil.c
    rename to libavcodec/me_cmp.c
    index ba71a99..9fcc937 100644
    — - a/libavcodec/dsputil.c
    +++ b/libavcodec/me_cmp.c
    @@ -1,8 +1,4 @@
    /*
    - * DSP utils
    - * Copyright (c) 2000, 2001 Fabrice Bellard
    - * Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
    - *
    * This file is part of Libav.
    *
    * Libav is free software ; you can redistribute it and/or

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavcodec/me_cmp.c
  • MPEG-DASH create initialization segment

    3 novembre 2014, par static

    I’m segmenting the video capture of the desktop using ffmpeg -segment and sending them over network in order to be served to clients and to be played using dash.js. The problem is that the player is searching for the initialization segment and i don’t seem to be able to figure out how to create it.
    I create the segments using this ffmpeg command :

    ffmpeg -rtbufsize 1500M -f dshow -r 15 -i video="UScreenCapture"
    -flags +global_header -vcodec libvpx -crf 10 -quality good -keyint_min 15 -g 15
    -cpu-used 3 -b:v 1000k -qmin 10 -qmax 42  -threads 2 -vf scale=-1:480 -bufsize 1
    500 -map 0 -f stream_segment -segment_time 2 -segment_format webm http://localho
    st:3000/stream/22/%03d

    The manifest that i create for the stream looks something like this :

    <mpd xmlns="urn:mpeg:dash:schema:mpd:2011" type="dynamic" availabilitystarttime="2014-06-19T07:47:40.079Z" minbuffertime="PT0S" profiles="urn:mpeg:dash:profile:isoff-live:2011" suggestedpresentationdelay="PT40S" maxsegmentduration="PT2.000S" minimumupdateperiod="PT1000M">
    <period bitstreamswitching="true" start="PT0S">
    <adaptationset mimetype="video/webm" segmentalignment="true" startwithsap="1" maxwidth="1280" maxheight="720" maxframerate="15">
    <contentcomponent contenttype="video"></contentcomponent>
    <segmenttemplate presentationtimeoffset="0" timescale="90000" media="$Number$/" duration="180000" startnumber="0"></segmenttemplate>
    <representation width="853" height="480" framerate="15" bandwidth="1000000" codecs="vp8"></representation>
    </adaptationset>
    </period>
    </mpd>

    The player debugging mode prints the following things :

    Getting the request for time: 0 dash.all.js:2073
    Index for time 0 is 0 dash.all.js:2073
    Waiting for more video buffer before starting playback. dash.all.js:2073
    BufferController video seek: 0 dash.all.js:2073
    Marking a special seek for initial video playback. dash.all.js:2073
    Start searching for initialization. dash.all.js:2073
    Perform init search: stream/22/ dash.all.js:2073
    Getting the request for time: 0 dash.all.js:2073
    Index for time 0 is 0 dash.all.js:2073
    Data changed - loading the video fragment for time: 0 dash.all.js:2073
    Getting the request for time: 0

    How can i create the initialization segment for the generated segments ? I can’t seem to be able to get it to work.

  • Dash output with ffmpeg not producing durations specified with -seg_duration

    30 juillet 2022, par Codie

    There is a .mp4 file of 35 MB and 51 seconds. I have to create 51 chunks, each corresponding to 1 second with a size of less than 1MB (the total size should be almost the same as the original file). Please note that I have to implement lossless converting.

    &#xA;

    I've tried many times, but it just produces about 10 files above 10 MB.

    &#xA;


    &#xA;

    Command :

    &#xA;

    ffmpeg -re -i input.mp4 -map 0:v -c:v libx264 -crf 0 -bf 1 -keyint_min 120 -g 120 -sc_threshold 0 -b_strategy 0 -use_template 1 -seg_duration 1 -window_size 60 -adaptation_sets "id=0,streams=v id=1,streams=a" -f dash ./dashTest/out.mpd&#xA;

    &#xA;


    &#xA;

    Command line log :

    &#xA;

    ffmpeg version 5.1-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers&#xA;  built with gcc 12.1.0 (Rev2, Built by MSYS2 project)&#xA;  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint&#xA;  libavutil      57. 28.100 / 57. 28.100&#xA;  libavcodec     59. 37.100 / 59. 37.100&#xA;  libavformat    59. 27.100 / 59. 27.100&#xA;  libavdevice    59.  7.100 / 59.  7.100&#xA;  libavfilter     8. 44.100 /  8. 44.100&#xA;  libswscale      6.  7.100 /  6.  7.100&#xA;  libswresample   4.  7.100 /  4.  7.100&#xA;  libpostproc    56.  6.100 / 56.  6.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;input.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : mp42&#xA;    minor_version   : 0&#xA;    compatible_brands: mp42mp41&#xA;    creation_time   : 2022-07-27T09:13:31.000000Z&#xA;  Duration: 00:00:50.03, start: 0.000000, bitrate: 5716 kb/s&#xA;  Stream #0:0[0x1](eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 5396 kb/s, 25 fps, 25 tbr, 25k tbn (default)&#xA;    Metadata:&#xA;      creation_time   : 2022-07-27T09:13:31.000000Z&#xA;      handler_name    : ?Mainconcept Video Media Handler&#xA;      vendor_id       : [0][0][0][0]&#xA;      encoder         : AVC Coding&#xA;  Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 317 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2022-07-27T09:13:31.000000Z&#xA;      handler_name    : #Mainconcept MP4 Sound Media Handler&#xA;      vendor_id       : [0][0][0][0]&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))&#xA;Press [q] to stop, [?] for help&#xA;[libx264 @ 000001d13acb0380] using SAR=1/1&#xA;[libx264 @ 000001d13acb0380] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX&#xA;[libx264 @ 000001d13acb0380] profile High 4:4:4 Predictive, level 3.1, 4:2:0, 8-bit&#xA;[libx264 @ 000001d13acb0380] 264 - core 164 r3095 baee400 - H.264/MPEG-4 AVC codec - Copyleft 2003-2022 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=0 mixed_ref=1 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=0 chroma_qp_offset=0 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=2 keyint=120 keyint_min=61 scenecut=0 intra_refresh=0 rc=cqp mbtree=0 qp=0&#xA;[dash @ 000001d13a2a4680] No bit rate set for stream 0&#xA;[dash @ 000001d13a2a4680] Opening &#x27;./dashTest/init-stream0.m4s&#x27; for writing&#xA;Output #0, dash, to &#x27;./dashTest/out.mpd&#x27;:&#xA;  Metadata:&#xA;    major_brand     : mp42&#xA;    minor_version   : 0&#xA;    compatible_brands: mp42mp41&#xA;    encoder         : Lavf59.27.100&#xA;  Stream #0:0(eng): Video: h264, yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 12800 tbn (default)&#xA;    Metadata:&#xA;      creation_time   : 2022-07-27T09:13:31.000000Z&#xA;      handler_name    : ?Mainconcept Video Media Handler&#xA;      vendor_id       : [0][0][0][0]&#xA;      encoder         : Lavc59.37.100 libx264&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A&#xA;[dash @ 000001d13a2a4680] Opening &#x27;./dashTest/chunk-stream0-00001.m4s.tmp&#x27; for writing&#xA;[dash @ 000001d13a2a4680] Opening &#x27;./dashTest/out.mpd.tmp&#x27; for writing0.849x&#xA;[dash @ 000001d13a2a4680] Opening &#x27;./dashTest/chunk-stream0-00002.m4s.tmp&#x27; for writing&#xA;[dash @ 000001d13a2a4680] Opening &#x27;./dashTest/out.mpd.tmp&#x27; for writing0.918x&#xA;[dash @ 000001d13a2a4680] Opening &#x27;./dashTest/chunk-stream0-00003.m4s.tmp&#x27; for writing&#xA;[dash @ 000001d13a2a4680] Opening &#x27;./dashTest/out.mpd.tmp&#x27; for writing0.942x&#xA;[dash @ 000001d13a2a4680] Opening &#x27;./dashTest/chunk-stream0-00004.m4s.tmp&#x27; for writing&#xA;[dash @ 000001d13a2a4680] Opening &#x27;./dashTest/out.mpd.tmp&#x27; for writing0.957x&#xA;[dash @ 000001d13a2a4680] Opening &#x27;./dashTest/chunk-stream0-00005.m4s.tmp&#x27; for writing&#xA;[dash @ 000001d13a2a4680] Opening &#x27;./dashTest/out.mpd.tmp&#x27; for writing0.964x&#xA;[dash @ 000001d13a2a4680] Opening &#x27;./dashTest/chunk-stream0-00006.m4s.tmp&#x27; for writing&#xA;[dash @ 000001d13a2a4680] Opening &#x27;./dashTest/out.mpd.tmp&#x27; for writing0.971x&#xA;[dash @ 000001d13a2a4680] Opening &#x27;./dashTest/chunk-stream0-00007.m4s.tmp&#x27; for writing&#xA;[dash @ 000001d13a2a4680] Opening &#x27;./dashTest/out.mpd.tmp&#x27; for writing0.975x&#xA;[dash @ 000001d13a2a4680] Opening &#x27;./dashTest/chunk-stream0-00008.m4s.tmp&#x27; for writing&#xA;[dash @ 000001d13a2a4680] Opening &#x27;./dashTest/out.mpd.tmp&#x27; for writing0.978x&#xA;[dash @ 000001d13a2a4680] Opening &#x27;./dashTest/chunk-stream0-00009.m4s.tmp&#x27; for writing&#xA;[dash @ 000001d13a2a4680] Opening &#x27;./dashTest/out.mpd.tmp&#x27; for writing0.981x&#xA;[dash @ 000001d13a2a4680] Opening &#x27;./dashTest/chunk-stream0-00010.m4s.tmp&#x27; for writing&#xA;[dash @ 000001d13a2a4680] Opening &#x27;./dashTest/out.mpd.tmp&#x27; for writing0.982x&#xA;[dash @ 000001d13a2a4680] Opening &#x27;./dashTest/chunk-stream0-00011.m4s.tmp&#x27; for writing&#xA;[dash @ 000001d13a2a4680] Opening &#x27;./dashTest/out.mpd.tmp&#x27; for writing0.983x&#xA;frame= 1250 fps= 25 q=-1.0 Lsize=N/A time=00:00:49.96 bitrate=N/A speed=0.992x&#xA;video:171641kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown&#xA;[libx264 @ 000001d13acb0380] frame I:11    Avg QP: 0.00  size:255122&#xA;[libx264 @ 000001d13acb0380] frame P:1239  Avg QP: 0.00  size:139591&#xA;[libx264 @ 000001d13acb0380] mb I  I16..4: 52.8%  8.8% 38.4%&#xA;[libx264 @ 000001d13acb0380] mb P  I16..4:  3.9%  0.7%  1.3%  P16..4: 28.0% 13.9% 11.3%  0.0%  0.0%    skip:40.8%&#xA;[libx264 @ 000001d13acb0380] 8x8 transform intra:11.9% inter:33.4%&#xA;[libx264 @ 000001d13acb0380] coded y,uvDC,uvAC intra: 68.6% 80.1% 78.9% inter: 38.0% 47.1% 46.5%&#xA;[libx264 @ 000001d13acb0380] i16 v,h,dc,p: 65% 28%  5%  2%&#xA;[libx264 @ 000001d13acb0380] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 33% 28%  2%  1%  1%  1%  1%  1%&#xA;[libx264 @ 000001d13acb0380] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 36%  7%  3%  5%  3%  4%  3%  2%&#xA;[libx264 @ 000001d13acb0380] i8c dc,h,v,p: 17% 38% 44%  1%&#xA;[libx264 @ 000001d13acb0380] Weighted P-Frames: Y:0.0% UV:0.0%&#xA;[libx264 @ 000001d13acb0380] ref P L0: 86.4%  7.6%  4.6%  1.4%&#xA;[libx264 @ 000001d13acb0380] kb/s:28121.58&#xA;

    &#xA;


    &#xA;

    .mpd file :

    &#xA;

    &lt;?xml version="1.0" encoding="utf-8"?>&#xA;<mpd xmlns="urn:mpeg:dash:schema:mpd:2011" profiles="urn:mpeg:dash:profile:isoff-live:2011" type="static" mediapresentationduration="PT50.0S" maxsegmentduration="PT1.0S" minbuffertime="PT9.6S">&#xA;    <programinformation>&#xA;    </programinformation>&#xA;    <servicedescription>&#xA;    </servicedescription>&#xA;    <period start="PT0.0S">&#xA;        <adaptationset contenttype="video" startwithsap="1" segmentalignment="true" bitstreamswitching="true" framerate="25/1" maxwidth="1280" maxheight="720" par="16:9" lang="eng">&#xA;            <representation mimetype="video/mp4" codecs="avc1.f4001f" bandwidth="28122926" width="1280" height="720" sar="1:1">&#xA;                <segmenttemplate timescale="12800" initialization="init-stream$RepresentationID$.m4s" media="chunk-stream$RepresentationID$-$Number%05d$.m4s" startnumber="1">&#xA;                    <segmenttimeline>&#xA;                        <s t="0" d="61440" r="9"></s>&#xA;                        <s d="25600"></s>&#xA;                    </segmenttimeline>&#xA;                </segmenttemplate>&#xA;            </representation>&#xA;        </adaptationset>&#xA;        <adaptationset contenttype="audio" startwithsap="1" segmentalignment="true" bitstreamswitching="true">&#xA;        </adaptationset>&#xA;    </period>&#xA;</mpd>&#xA;

    &#xA;


    &#xA;

    Please, if you want to put a negative point, mention your reason in the comments !

    &#xA;


    &#xA;