Recherche avancée

Médias (91)

Autres articles (44)

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

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

Sur d’autres sites (6917)

  • hw_base_encode : refactor picture allocation/freeing

    21 août 2024, par Lynne
    hw_base_encode : refactor picture allocation/freeing
    

    This commit cleans up and refactors the mess of private state upon
    private state that used to be.

    Now, FFHWBaseEncodePicture is fully initialized upon call-time,
    and, most importantly, this lets APIs which require initialization
    data for frames (VkImageViews) to initialize this for both the
    input image, and the reconstruction (DPB) image.

    Signed-off-by : Tong Wu <wutong1208@outlook.com>

    • [DH] libavcodec/d3d12va_encode.c
    • [DH] libavcodec/d3d12va_encode.h
    • [DH] libavcodec/d3d12va_encode_hevc.c
    • [DH] libavcodec/hw_base_encode.c
    • [DH] libavcodec/hw_base_encode.h
    • [DH] libavcodec/vaapi_encode.c
    • [DH] libavcodec/vaapi_encode.h
    • [DH] libavcodec/vaapi_encode_av1.c
    • [DH] libavcodec/vaapi_encode_h264.c
    • [DH] libavcodec/vaapi_encode_h265.c
    • [DH] libavcodec/vaapi_encode_mjpeg.c
    • [DH] libavcodec/vaapi_encode_mpeg2.c
    • [DH] libavcodec/vaapi_encode_vp8.c
    • [DH] libavcodec/vaapi_encode_vp9.c
  • Understanding User Flow : Eight Practical Examples for Better UX

    4 octobre 2024, par Daniel Crough — Analytics Tips, UX

    Imagine trying to cook a complex dish without a recipe. You might have all the ingredients, but without a clear sequence of steps, you’re likely to end up with a mess rather than a masterpiece. Similarly, designing a website without understanding user flow is a recipe for confusion and lost conversions.

    User flows—the paths visitors take through your site—are the recipes for digital success. They provide a clear sequence of steps that guide users towards their goals, whether that’s making a purchase, signing up for a newsletter, or finding information. By understanding and optimising these flows, you can create a website that’s not just functional, but delightfully intuitive.

    In this article, we’ll explore seven practical user flow examples and show you how to apply these insights using web analytics tools. Whether you’re new to user experience (UX) design or a seasoned professional, you’ll find valuable takeaways to enhance your digital strategy.

    Read More

  • mpv player with SFTP does not work in bash script [closed]

    19 mars 2024, par Pickles888

    I am making a bash script to make it easier to stream from my media server at home.

    &#xA;

    In the bash script, it asks whether you want to list or search, and then uses mpv to stream the file. For some reason it says the file does not exist. When I try this in the terminal it works, but running the script gives this error :

    &#xA;

    [ffmpeg] libssh: Error opening sftp file: SFTP server: No such file&#xA;Failed to open sftp://[username:password]@[ip.of.server]/[directory/to/file]&#xA;

    &#xA;

    My script :

    &#xA;

    #!/bin/bash&#xA;&#xA;pass="[password]"&#xA;&#xA;if [ $(nmcli | grep -c [home-network]) -gt 0 ]; then&#xA;    ip="[private.ip]"&#xA;else&#xA;    ip="[public.ip]"&#xA;fi&#xA;&#xA;mfolder="[/directory/of/file]"&#xA;&#xA;function select_option {&#xA;&#xA;    # little helpers for terminal print control and key input&#xA;    ESC=$( printf "\033")&#xA;    cursor_blink_on()  { printf "$ESC[?25h"; }&#xA;    cursor_blink_off() { printf "$ESC[?25l"; }&#xA;    cursor_to()        { printf "$ESC[$1;${2:-1}H"; }&#xA;    print_option()     { printf "   $1 "; }&#xA;    print_selected()   { printf "  $ESC[7m $1 $ESC[27m"; }&#xA;    get_cursor_row()   { IFS=&#x27;;&#x27; read -sdR -p $&#x27;\E[6n&#x27; ROW COL; echo ${ROW#*[}; }&#xA;    key_input()        { read -s -n3 key 2>/dev/null >&amp;2&#xA;                         if [[ $key = $ESC[A ]]; then echo up;    fi&#xA;                         if [[ $key = $ESC[B ]]; then echo down;  fi&#xA;                         if [[ $key = ""     ]]; then echo enter; fi; }&#xA;&#xA;    # initially print empty new lines (scroll down if at bottom of screen)&#xA;    for opt; do printf "\n"; done&#xA;&#xA;    # determine current screen position for overwriting the options&#xA;    local lastrow=`get_cursor_row`&#xA;    local startrow=$(($lastrow - $#))&#xA;&#xA;    # ensure cursor and input echoing back on upon a ctrl&#x2B;c during read -s&#xA;    trap "cursor_blink_on; stty echo; printf &#x27;\n&#x27;; exit" 2&#xA;    cursor_blink_off&#xA;&#xA;    local selected=0&#xA;    while true; do&#xA;        # print options by overwriting the last lines&#xA;        local idx=0&#xA;        for opt; do&#xA;            cursor_to $(($startrow &#x2B; $idx))&#xA;            if [ $idx -eq $selected ]; then&#xA;                print_selected "$opt"&#xA;            else&#xA;                print_option "$opt"&#xA;            fi&#xA;            ((idx&#x2B;&#x2B;))&#xA;        done&#xA;&#xA;        # user key control&#xA;        case `key_input` in&#xA;            enter) break;;&#xA;            up)    ((selected--));&#xA;                   if [ $selected -lt 0 ]; then selected=$(($# - 1)); fi;;&#xA;            down)  ((selected&#x2B;&#x2B;));&#xA;                   if [ $selected -ge $# ]; then selected=0; fi;;&#xA;        esac&#xA;    done&#xA;&#xA;    # cursor position back to normal&#xA;    cursor_to $lastrow&#xA;    printf "\n"&#xA;    cursor_blink_on&#xA;&#xA;    return $selected&#xA;}&#xA;&#xA;stream() {&#xA;    mpv --fs "sftp://[username]:$pass@$ip$mfolder${options[choice]}"&#xA;}&#xA;&#xA;search() {&#xA;    read -p "Search&#xA;> " search&#xA;    chars=$(echo -n "$search" | wc -c)&#xA;    printf &#x27;\n&#x27;&#xA;    clear&#xA;    printf "Search Results For $search:"&#xA;    printf &#x27;\n&#x27;&#xA;    readarray options &lt; &lt;(sshpass -p "$pass" ssh "[username]@$ip" ls "$mfolder" | agrep -i -$(($chars/3)) "$search")&#xA;    select_option "${options[@]}"&#xA;    choice=$?&#xA;    stream&#xA;}&#xA;&#xA;list() {&#xA;    clear&#xA;    sshpass -p "$pass" ssh [username]@$ip ls "$mfolder"&#xA;    search&#xA;}&#xA;&#xA;cmd() {&#xA;    read -p "List or Search &#xA;(S/l)> " cmd&#xA;    printf &#x27;\n&#x27;&#xA;    &#xA;    if [[ "$cmd" == "S" || "$cmd" == "s" ]]; then&#xA;        search&#xA;    elif [[ "$cmd" == "L" || "$cmd" == "l" ]]; then&#xA;        list&#xA;    else&#xA;        search&#xA;    fi&#xA;}&#xA;&#xA;main() {&#xA;    cmd&#xA;}&#xA;&#xA;main&#xA;

    &#xA;

    Anything put in brackets is to not share my personal info (except for arrays, if statements etc)

    &#xA;

    Also this seems to have only changed while I was making the script. In the beginning, it was working great, but at one point it randomly stopped working.

    &#xA;

    I have a feeling its some kind of quote mess up or something stupid like that. I have tried to edit it and fix it to the best of my abilities but nothing I did fixed it.

    &#xA;

    I also think it could have to do with it being run in the bash environment as I normally use zsh. However I tested it in my shell by running /bin/bash and executing the command and it worked.

    &#xA;

    Also the option chooser was not made by me.

    &#xA;