Recherche avancée

Médias (91)

Autres articles (102)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (10871)

  • Unable to find correct bash syntax for comparing numbers

    17 octobre 2024, par kali

    Part of a long script I'm simply trying to compare two numbers, one is constant and the other one is retrieved via ffprobe (The 474 in the error messages is the height found by ffprobe)

    


    CURRENT_RES=$(ffprobe -v quiet -select_streams v:0 -show_entries stream=height -of csv=s=x:p=0 "${fn}")
  if [[ $CURRENT_RES -gt 1080 ]]; then
    echo "leaving preset normal"
    SLOW_PRESET=("" "")
  else
    echo "setting preset to slow"
    SLOW_PRESET=(-preset slow)
  fi;


    


    produces :

    


    /usr/local/bin/startScreen.sh: line 95: [[: 474

474: syntax error in expression (error token is "474")
setting preset to slow


    


    I also tried arithmetic operators like :

    


      if (($CURRENT_RES>1080)); then
    echo "leaving preset normal"
    SLOW_PRESET=("" "")
  else
    echo "setting preset to slow"
    SLOW_PRESET=(-preset slow)
  fi;


    


    got a slightly different, but essentially same error message like :

    


    /usr/local/bin/startScreen.sh: line 95: ((: 474

474>1080: syntax error in expression (error token is "474>1080")
setting preset to slow


    


    What's even more baffling is there 15 lines below this block there is another comparison which works perfectly fine !

    


    if [[ $CURRENT_RES -gt $CONVERT_HEIGHT ]]; then


    


    I thought may be the inline written 1080 number is confusing the if expression so I tried assigning 1080 to variable and reusing it, which changed nothing.

    


    edit : (dropping this here in case someone else falls into same mistake)
following up on Shawn's advice from comments using cat -v showed 474 was repeated twice.
For debugging purposes ran :

    


    ffprobe -v quiet -select_streams v:0 -show_entries stream=height -of json "filename.mp4"


    


    to find this weird format :

    


    {
    "programs": [
        {
            "streams": [
                {
                    "height": 472
                }
            ]
        }
    ],
    "streams": [
        {
            "height": 472
        }
    ]
}


    


    finally changed the ffprobe command to :

    


    CURRENT_RES=$(ffprobe -v quiet -select_streams v:0 -show_entries stream=height -of json "${fn}" | jq .streams[0].height)


    


    to resolve the issue.

    


  • avformat/mpegts* : reduce use of magic numbers

    1er décembre 2024, par Scott Theisen
    avformat/mpegts* : reduce use of magic numbers
    

    Note ISO/IEC 13818-1 defines an Extension_descriptor with descriptor_tag value
    0x3f (63), so I kept the DVB comment.

    I don't know what defines stream_type value 0x8a as DTS.

    I don't have any Blu-ray standards so I don't know where those stream_type
    values are defined.

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

    • [DH] libavformat/mpegts.c
    • [DH] libavformat/mpegts.h
    • [DH] libavformat/mpegtsenc.c
  • tools/target_swr_fuzzer : do not use negative numbers of samples

    30 novembre 2024, par Michael Niedermayer
    tools/target_swr_fuzzer : do not use negative numbers of samples
    

    Fixes : signed integer overflow : -277109688 * 8 cannot be represented in type 'int'
    Fixes : 376118159/clusterfuzz-testcase-minimized-ffmpeg_SWR_fuzzer-5884436320681984

    Found-by : continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] tools/target_swr_fuzzer.c