Recherche avancée

Médias (0)

Mot : - Tags -/signalement

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

Autres articles (80)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

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

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

  • avformat/rtsp : extend the PATH buffer to 2048

    7 août 2024, par Stefano Mandelli
    avformat/rtsp : extend the PATH buffer to 2048
    

    Recently, I have been experiencing an increasing number of user that use ffmpeg
    to retrive RTSP stream from personal mediaproxies (e.g. MediaMtx) with
    authorization based on JWT. The current length of PATH does not permit to
    insert the token in the URL failing the authorization with no possibilities to
    get the video.

    VLC has just modified the RSTP max URL length, and it permits to use token
    inside the URL.

    For these reasons, I propose this patch to extend the PATH buffer from 1024 to
    2048 in order to use tokens and the authorization process based on JWT.

    Signed-off-by : Marton Balint <cus@passwd.hu>

    • [DH] libavformat/rtsp.c
  • 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;

  • Where to (long time) host Spring Boot Application with Data Base Backup and Linux Root Access [closed]

    22 mai 2024, par Lord Helmchen

    I developed a small application for my father. It uses Spring Boot, MySQL and FFMPEG, which I currently installed on Linux.

    &#xA;

    I want to host it, deploy it automatically, have a back up and root access for FFMPEG installation.

    &#xA;

    It runs smoothly locally on Windows / Linux, now I want to host it somewhere.

    &#xA;

    What I would like to have :

    &#xA;

      &#xA;
    • Ease of deployment : I got experience in adminstration of linux root servers, but I look for something easy to integrate and maybe automatically deploy it from Github or Gitlab
    • &#xA;

    • Backup : I want to backup the database ideally to another service provider in case something goes wrong.
    • &#xA;

    • Linux : One Part of it, amongs others is to convert different audio formats using ffmpeg.&#xA;So, (I think) I need linux root access as well.
    • &#xA;

    • Time Horzion : I would like to make sure it still runs in ten+ years, so it should be a reliable provider where I only update the application from time to time if needed.
    • &#xA;

    • Money : As it is only for personal use at this moment, I don't want to invest a fortune.
    • &#xA;

    &#xA;

    What provider and deployment pipeline would you recommend to me ?

    &#xA;