Recherche avancée

Médias (91)

Autres articles (80)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

Sur d’autres sites (10954)

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

    


  • react-native-ffmpeg Unrecognized option 'preset'

    8 avril 2021, par Tommy Khumarga

    Below is my ffmpeg command :

    


    -y -i vidInput.mp4 -vcodec mpeg4 -b:v 1000k -b:a 48000 -preset ultrafast vidOutput.mp4

    


    And the result is :

    


    [Mon Jul 06 2020 20:42:08.171]  LOG      Unrecognized option 'preset'.
[Mon Jul 06 2020 20:42:08.172]  LOG      Error splitting the argument list:
[Mon Jul 06 2020 20:42:08.174]  LOG      Option not found


    


    Need advice...

    


  • Hung out to dry

    31 mai 2013, par Mans — Law and liberty

    Outrage was the general reaction when Google recently announced their dropping of XMPP server-to-server federation from Hangouts, as the search giant’s revamped instant messaging platform is henceforth to be known. This outrage is, however, largely unjustified ; Google’s decision is merely a rational response to issues of a more fundamental nature. … Continue reading