Recherche avancée

Médias (0)

Mot : - Tags -/auteurs

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

Autres articles (70)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (13679)

  • Evolution #4749 (Nouveau) : [UX] Comportement des labels : quoi par défaut, quoi ponctuel ?

    27 avril 2021, par RastaPopoulos ♥

    Ce ticket sert à réfléchir et possiblement reconcevoir les choix par défaut pour les labels des formulaires.

    État des lieux

    On le sait, l’ergo c’est normalement beaucoup d’objectif : certains placements, certaines tailles, épaisseurs, etc fonctionnent mieux que d’autres, et ceci est prouvable par tests utilisateurs.

    Or cela fait des années que les tests par eye-tracking montrent que les formulaires sont
    1) lu plus rapidement
    2) avec une meilleure compréhension
    lorsque les labels sont au-dessus des champs.

    Ça ne veut pas dire qu’il faut totalement interdire autrement mais : ça veut clairement dire que ça devrait être le comportement par défaut. Et seulement ponctuellement, par choix explicite, pouvoir mettre les labels sur le côté.

    Par ailleurs les pros de l’ergo (sur base des mêmes tests) préconisent tou⋅tes : dans les rares cas où on met les labels sur le côté, ça devrait être calé à droite sur le champ, pour les mêmes raisons de compréhension.

    Les avantages des labels au-dessus :
    - prouvé que c’est bien mieux compris par tout le monde
    - lecture plus rapide
    - fonctionne de base sur tous les écrans, pas d’adaptation à faire
    - polyvalent et générique sur le contenu des labels : marche mieux quelque soit la longueur, et donc à prioriser dans un contexte multilingue
    => cela correspond bien au maximum de notre utilisation : un CMS multi-lingue, allant enfin vers le responsive, se souciant d’accessibilité.

    Le seul désavantage : allonge la hauteur des formulaires, mais ça n’a un impact surtout que pour les formulaires ayant vraiment vraiment beaucoup de champs, ce qui est rare !
    Quand un formulaire est extrêmement long, il y a même plusieurs méthodes qui peuvent être utilisées sans pour autant passer les labels sur le côté :
    1) placer certains champs sur le même ligne (prénom + nom, etc)
    2) découper le formulaire en plusieurs étapes.

    Proposition pour le futur

    - tous les labels doivent être au-dessus comme comportement par défaut
    - pour certains cas, une classe permet de mettre sur le côté : valable uniquement en grand écran, ça reste au-dessus en mobile first
    - si sur le côté : c’est mieux si aligné sur le champ (donc à droite en LTR)
    - ex de rare formulaire candidat : changement des dates

    Quelques sources

    Tests utilisateurs
    https://www.uxmatters.com/mt/archives/2006/07/label-placement-in-forms.php

    Placing a label above an input field works better in most cases
    Placing labels above input fields is preferable
    In most cases, when placing labels to the left of input fields, using left-aligned labels imposes a heavy cognitive workload on users
    if you choose to place them to the left of input fields, at least make them right aligned

    Chez le très connu cabinet d’ergo Nielsen Group
    https://www.nngroup.com/articles/form-design-white-space/

    We recommend placing field labels above the corresponding text fields [en gras chez eux !]
    it makes the form easier to scan, because users can see the text field in the same fixation as the label. Top placement also allows for longer field labels
    If the labels are too far to the left, it can be difficult to associate the correct label with its corresponding field

    Chez Adobe, ils préconisent de suivre les recommandations de la première source
    https://xd.adobe.com/ideas/principles/web-design/best-practices-form-design/

    Matteo Penzo’s 2006 article on label placement suggests that forms are completed faster if labels are on top of the fields. Top-aligned labels are good if you want users to scan the form as quickly as possible.
    The biggest advantage of top-aligned labels is that different-sized labels and localized versions can more easily fit the UI.
    Takeaway : If you want users to scan a form quickly, put labels above the fields. The layout will be easier to scan because the eye will move straight down the page. However, if you want users to read carefully, put labels to the left of the fields. This layout will slow down the reader and make them scan in a Z-shaped motion.

    Chez une appli de conception d’interface
    https://phase.com/magazine/usability-of-forms/

    from a cognitive point of view, the association is powerful
    Also, the eyes move only in one direction since the scanning is top down as compared to Z shape (left-right and top-bottom) for inline labels
    Design is space efficient and hence adaptable to all resolutions ; in short, responsive in nature
    We also get flexibility regarding the length of labels. This proves useful while working with variable label lengths like multilingual support for applications
    One drawback of this approach is the increased height of the form. However, it can be solved with alternate designs like a grouping of fields or stepper forms

  • Bad quality output with FFmpeg, bitrate specified [closed]

    28 septembre 2012, par Darkman2412

    I have a static background image where I add 2 videos on top of it using FFmpeg CLI. The output file (test.avi in this case), is very bad quality.

    ffmpeg -loop 1 -i outro.png
         -vf "movie='intro.mov' [last], [last]scale=512:288[scaled1], [in][scaled1] overlay=290:396 [tmp];
              movie='intro2.mov' [featured], [featured]scale=512:288[scaled2], [tmp][scaled2] overlay=1118:396 [out]" -b 512k -t 10 -r 30 -y test.avi

    The first image is the first frame of test.avi.
    The second one is what it should be.

    image 1

    image 2

    Edit : my question is why it's such bad quality.

    Edit2 : Console output :

    ffmpeg version N-44601-gcb3591e Copyright (c) 2000-2012 the FFmpeg developers
     built on Sep 19 2012 16:31:43 with gcc 4.7.1 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
     libavutil      51. 73.101 / 51. 73.101
     libavcodec     54. 56.100 / 54. 56.100
     libavformat    54. 27.101 / 54. 27.101
     libavdevice    54.  2.100 / 54.  2.100
     libavfilter     3. 16.104 /  3. 16.104
     libswscale      2.  1.101 /  2.  1.101
     libswresample   0. 15.100 /  0. 15.100
     libpostproc    52.  0.100 / 52.  0.100
    [image2 @ 0000000001f4fa40] Stream #0: not enough frames to estimate rate; consider increasing probesize
    Input #0, image2, from 'outro.png':
     Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: png, rgba64be, 1920x1080, 25 tbr, 25 tbn, 25 tbc
    Please use -q:a or -q:v, -qscale is ambiguous
    Output #0, avi, to 'test.avi':
     Metadata:
       ISFT            : Lavf54.27.101
       Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 1920x1080, q=2-31, 200 kb/s, 30 tbn, 30 tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (png -> mpeg4)
    Press [q] to stop, [?] for help
    frame=    6 fps=0.0 q=2.0 size=      72kB time=00:00:00.23 bitrate=2527.9kbits/s    
    frame=   12 fps= 11 q=2.0 size=     115kB time=00:00:00.46 bitrate=2013.6kbits/s    
    frame=   18 fps= 11 q=2.0 size=     190kB time=00:00:00.70 bitrate=2223.8kbits/s    
    frame=   24 fps= 11 q=2.0 size=     235kB time=00:00:00.96 bitrate=1987.4kbits/s    
    frame=   30 fps= 11 q=2.0 size=     314kB time=00:00:01.20 bitrate=2142.8kbits/s    
    frame=   36 fps= 11 q=2.0 size=     368kB time=00:00:01.43 bitrate=2102.2kbits/s    
    frame=   42 fps= 11 q=2.0 size=     457kB time=00:00:01.66 bitrate=2247.6kbits/s    
    frame=   48 fps= 11 q=2.0 size=     510kB time=00:00:01.90 bitrate=2199.8kbits/s    
    frame=   54 fps= 11 q=2.0 size=     596kB time=00:00:02.16 bitrate=2253.9kbits/s    
    frame=   60 fps= 11 q=2.0 size=     649kB time=00:00:02.40 bitrate=2216.5kbits/s    
    frame=   66 fps= 11 q=2.0 size=     718kB time=00:00:02.63 bitrate=2232.9kbits/s    
    frame=   72 fps= 11 q=2.0 size=     779kB time=00:00:02.86 bitrate=2226.4kbits/s    
    frame=   78 fps= 11 q=2.0 size=     868kB time=00:00:03.10 bitrate=2293.0kbits/s    
    frame=   84 fps= 11 q=2.0 size=     956kB time=00:00:03.36 bitrate=2325.8kbits/s    
    frame=   90 fps= 11 q=2.0 size=    1049kB time=00:00:03.60 bitrate=2386.2kbits/s    
    frame=   96 fps= 11 q=2.0 size=    1143kB time=00:00:03.83 bitrate=2442.9kbits/s    
    frame=  101 fps= 11 q=2.0 size=    1224kB time=00:00:04.03 bitrate=2485.2kbits/s    
    frame=  106 fps= 10 q=2.0 size=    1259kB time=00:00:04.23 bitrate=2436.7kbits/s    
    frame=  111 fps= 10 q=2.0 size=    1326kB time=00:00:04.43 bitrate=2449.5kbits/s    
    frame=  116 fps= 10 q=2.0 size=    1355kB time=00:00:04.63 bitrate=2396.5kbits/s    
    frame=  121 fps= 10 q=2.0 size=    1409kB time=00:00:04.83 bitrate=2388.1kbits/s    
    frame=  127 fps= 10 q=2.0 size=    1424kB time=00:00:05.06 bitrate=2302.5kbits/s    
    frame=  133 fps= 10 q=2.0 size=    1480kB time=00:00:05.30 bitrate=2286.8kbits/s    
    frame=  139 fps= 10 q=2.0 size=    1497kB time=00:00:05.56 bitrate=2203.7kbits/s    
    frame=  145 fps= 10 q=2.0 size=    1552kB time=00:00:05.80 bitrate=2191.8kbits/s    
    frame=  151 fps= 10 q=2.0 size=    1567kB time=00:00:06.03 bitrate=2127.6kbits/s    
    frame=  157 fps= 10 q=2.0 size=    1621kB time=00:00:06.26 bitrate=2119.2kbits/s    
    frame=  163 fps= 10 q=2.0 size=    1641kB time=00:00:06.50 bitrate=2068.1kbits/s    
    frame=  169 fps= 10 q=2.0 size=    1710kB time=00:00:06.76 bitrate=2070.3kbits/s    
    frame=  175 fps= 10 q=2.0 size=    1750kB time=00:00:07.00 bitrate=2047.9kbits/s    
    frame=  181 fps= 10 q=2.0 size=    1834kB time=00:00:07.23 bitrate=2077.6kbits/s    
    frame=  187 fps= 10 q=2.0 size=    1876kB time=00:00:07.46 bitrate=2058.4kbits/s    
    frame=  193 fps= 10 q=2.0 size=    1962kB time=00:00:07.70 bitrate=2087.7kbits/s    
    frame=  199 fps= 10 q=2.0 size=    2005kB time=00:00:07.96 bitrate=2061.5kbits/s    
    frame=  205 fps= 10 q=2.0 size=    2088kB time=00:00:08.20 bitrate=2086.1kbits/s    
    frame=  211 fps= 10 q=2.0 size=    2126kB time=00:00:08.43 bitrate=2065.0kbits/s    
    frame=  217 fps= 10 q=2.0 size=    2201kB time=00:00:08.66 bitrate=2080.5kbits/s    
    frame=  223 fps= 10 q=2.0 size=    2230kB time=00:00:08.90 bitrate=2052.8kbits/s    
    frame=  229 fps= 10 q=2.0 size=    2293kB time=00:00:09.16 bitrate=2049.5kbits/s    
    frame=  235 fps= 10 q=2.0 size=    2307kB time=00:00:09.40 bitrate=2010.4kbits/s    
    frame=  241 fps= 10 q=2.0 size=    2366kB time=00:00:09.63 bitrate=2011.8kbits/s    
    frame=  247 fps= 10 q=2.0 size=    2409kB time=00:00:09.86 bitrate=2000.1kbits/s    
    frame=  250 fps= 10 q=2.0 Lsize=    2438kB time=00:00:10.00 bitrate=1997.2kbits/s    

    video:2425kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.523809%
  • Creating a shared library that statically includes ffmpeg

    10 octobre 2017, par El Sampsa

    I’m having hard time trying to create a shared library that has ffmpeg libraries "baked in" as static ones.

    Consider the following directory schema :

    include/
     my own .h files
     ext/
       ffmpeg .h files
    lib/
     libav*.a archive files (softlinks to the actual .a files)
     libValkka.so (my shared library)
    test/
     mytest.cpp
    bin/
     (binaries appear here)

    I’ve come a long way (see Including objects to a shared library from a C++ archive (.a) ) and the library compiles ok with this : ([STUFF] has been omitted for brevity)

    /usr/bin/c++ -fPIC -std=c++14 -pthread -Iinclude/ext -I/usr/include/libdrm -g -shared -Wl,-soname,libValkka.so -o lib/libValkka.so CMakeFiles/Valkka.dir/src/avthread.cpp.o CMakeFiles/Valkka.dir/src/opengl.cpp.o CMakeFiles/Valkka.dir/src/openglthread.cpp.o [STUFF] CMakeFiles/Valkka.dir/src/filters.cpp.o -lX11 -lGLEW -lGLU -lGL -Wl,—allow-multiple-definition -Wl,-Bsymbolic -Wl,—whole-archive -Wreorder lib/libavdevice.a lib/libavfilter.a lib/libavformat.a lib/libavcodec.a lib/libavutil.a lib/libswscale.a lib/libswresample.a -Wl,—no-whole-archive

    However, when creating executables - their source code does not use any ffmpeg api (just my own api) - with :

    c++ -std=c++14 -pthread -Iinclude -Iinclude/ext -Llib test/mytest.cpp -lValkka -g -o bin/mytest

    I get a hoard of errors about missing ffmpeg dependencies. Not everything is missing, just some weird stuff :

    lib/libValkka.so: undefined reference to `pa_stream_get_index'
    lib/libValkka.so: undefined reference to `deflateInit_'
    lib/libValkka.so: undefined reference to `pa_stream_get_state'
    lib/libValkka.so: undefined reference to `lzma_stream_decoder'
    lib/libValkka.so: undefined reference to `BZ2_bzDecompress'
    lib/libValkka.so: undefined reference to `vaInitialize'
    lib/libValkka.so: undefined reference to `pa_stream_unref'
    lib/libValkka.so: undefined reference to `deflateInit2_'
    lib/libValkka.so: undefined reference to `snd_pcm_close'
    ...
    lib/libValkka.so: undefined reference to `vaGetDisplayDRM'
    lib/libValkka.so: undefined reference to `vaMaxNumEntrypoints'
    lib/libValkka.so: undefined reference to `uncompress'
    lib/libValkka.so: undefined reference to `pa_stream_drop'
    lib/libValkka.so: undefined reference to `pa_context_connect'
    lib/libValkka.so: undefined reference to `FT_Get_Kerning'
    lib/libValkka.so: undefined reference to `ass_free_track'
    lib/libValkka.so: undefined reference to `pa_operation_unref'
    lib/libValkka.so: undefined reference to `FT_Stroker_Done'
    lib/libValkka.so: undefined reference to `vaTerminate'
    lib/libValkka.so: undefined reference to `ass_new_track'
    lib/libValkka.so: undefined reference to `jack_client_close'
    ...
    lib/libValkka.so: undefined reference to `xcb_xfixes_query_version'
    lib/libValkka.so: undefined reference to `xcb_shape_rectangles'
    lib/libValkka.so: undefined reference to `pa_mainloop_free'
    lib/libValkka.so: undefined reference to `snd_device_name_hint'
    lib/libValkka.so: undefined reference to `vaCreateImage'
    lib/libValkka.so: undefined reference to `vaBeginPicture'
    lib/libValkka.so: undefined reference to `DtsSetColorSpace'
    lib/libValkka.so: undefined reference to `vaDestroyConfig'
    lib/libValkka.so: undefined reference to `pa_stream_writable_size'
    lib/libValkka.so: undefined reference to `snd_pcm_hw_params_get_buffer_size_max'
    lib/libValkka.so: undefined reference to `ass_read_file'

    This is pretty frustrating, especially when I can see that those names are included in the shared library..!

    nm lib/libValkka.so | grep "vaBeginPicture"

    gives

    U vaBeginPicture

    etc. I thought it might be a problem regarding the dependency order the archive .a files, and also tried with :

    ..... -Wl,—allow-multiple-definition -Wl,-Bsymbolic -Wl,—start-group -Wl,—whole-archive -Wreorder lib/libavdevice.a lib/libavfilter.a lib/libavformat.a lib/libavcodec.a lib/libavutil.a lib/libswscale.a lib/libswresample.a -Wl,—no-whole-archive -Wl,—end-group

    But the problem persists.

    I have succesfully created a shared library that does not "bake in" those .a archives, i.e. that just depends dynamically on ffmpeg libraries, and there are no such problems.

    I am baffled.. Have I misunderstood something fundamental, forgot some annoying linked option, or both ? Help appreciated !