Recherche avancée

Médias (1)

Mot : - Tags -/bug

Autres articles (78)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

Sur d’autres sites (4819)

  • Clojure shell/sh does not handle single-quoted arguments correctly ?

    14 juillet 2016, par Jarzka

    Executing the following command in the REPL :

    (shell/sh "ls" "-lah" "'resources'")

    gives the following output :

    {:exit 2, :out "", :err "ls: cannot access 'resources': No such file or directory\n"}

    Executing the same command in the Bash shell gives the correct output, the list of files in the resources directory. To my understanding this means that shell/sh is unable to handle single-quoted arguments correctly. Is this true or am I doing something wrong ?

    The example above is a simple example, as usually I probably would not need to single-quote the folder name. But why this is a real problem is because I try to concat audio files by executing the following ffmpeg command using shell/sh ;

    ffmpeg -i resources/ffmpeg_working/1.flac
    -i resources/ffmpeg_working/2.flac
    -i resources/ffmpeg_working/3.flac
    -i resources/ffmpeg_working/4.flac
    -filter_complex '[0:0][1:0][2:0][3:0]concat=n=4:v=0:a=1[out]'
    -map '[out]'
    resources/ffmpeg_working/done.flac

    This gives the following output

    Stream map ''[out]'' matches no streams.

    Once again, if I execute the same ffmpeg command in the Bash shell it concatenates the files successfully. Thus, it seems that the single-quoted argument is not handle correctly ?

  • Clojure shell/sh does not handle single-quoted arguments correctly ?

    3 janvier 2020, par Jarzka

    Executing the following command in the REPL :

    (shell/sh "ls" "-lah" "'resources'")

    gives the following output :

    {:exit 2, :out "", :err "ls: cannot access 'resources': No such file or directory\n"}

    Executing the same command in the Bash shell gives the correct output, the list of files in the resources directory. To my understanding this means that shell/sh is unable to handle single-quoted arguments correctly. Is this true or am I doing something wrong ?

    The example above is a simple example, as usually I probably would not need to single-quote the folder name. But why this is a real problem is because I try to concat audio files by executing the following ffmpeg command using shell/sh ;

    ffmpeg -i resources/ffmpeg_working/1.flac
    -i resources/ffmpeg_working/2.flac
    -i resources/ffmpeg_working/3.flac
    -i resources/ffmpeg_working/4.flac
    -filter_complex '[0:0][1:0][2:0][3:0]concat=n=4:v=0:a=1[out]'
    -map '[out]'
    resources/ffmpeg_working/done.flac

    This gives the following output

    Stream map ''[out]'' matches no streams.

    Once again, if I execute the same ffmpeg command in the Bash shell it concatenates the files successfully. Thus, it seems that the single-quoted argument is not handle correctly ?

  • Detecting Successful Conversion with ffmpeg

    22 février 2017, par J M

    I have code that scans a file system for videos files encoded with H.264 and re-encodes them with H.265. It runs pretty much on its own constantly, generating various log files for me to review periodically.

    One thing that I want to further improve is the successful conversion detection. Right now, a file returns as being successfully converted after it meets these criteria/checks :

    1. The output file exists
    2. ffprobe can detect that the output file is in hevc format
    3. The duration of the output file matches that of the input file (within 3 seconds)
    4. The length of the output file is greater than 30 MB (it’s rare that I have a video so short where after conversion it is less than this, usually this happens when an error occurs or conversion terminates early).

    Obviously, this is rather computationally intense as there are many file checks to confirm all of this information. I do this because if the file is detected as successful conversion, the old file is overwritten and the new converted file takes it’s place. I don’t want to overwrite a file because I overlooked a scenario where I think conversion is successful but was in fact not. The files are under a crashplan constant backup, so I don’t lose them, but I also do not go through and review every file.

    So, my basic question is if you see any area of improvement for this detection. My goal is to determine, to my best extent, if after conversion the video remains "playable". So deciding programmatically how/what that means is what I’m attempting to do.

    I can post code if you want it (powershell), but the question seems independent of actual program language choice.