
Recherche avancée
Autres articles (104)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)
Sur d’autres sites (11070)
-
avcodec/vp3 : pass correct context to av_log()
6 février 2015, par Michael Niedermayer -
bash scripting : pass string containing multiple parameters and filenames with spaces to ffmpeg
2 septembre 2016, par Mia LonI have a script that generates a text file with entries like :
-ss 5.5 -i "/path/vid 1.mp4" -t 3 "/path/vid out1.mp4"
But when I call ffmpeg with this string attached it fails.
If I quote the variable then ffmpeg considers the entire string as a single option, error "Option not found".
If I don’t quote, then for some reason ffmpeg ignores the double quotes and reports "/path/vid :No such file or directory.Even though it prints the input correctly as -i "/path/vid 1.mp4".
Replacing the double quotes around the filenames with single quotes doesn’t help.
But when I pass the string to zenity and then manually copy it into the terminal, it works :zenity --entry --entry-text "ffmpeg -nostdin $line2"
So I tried assigning the entire command to a var and then running
bash $var or exec $var, but no luck. Assigning it to an alias doesn’t work either : "command not found"Solution by Joan Estaban :
echo $stringvar | xargs ffmpeg
A short full script demonstrating the problem :
#!/bin/bash
fffile="/home/vume5/Desktop/dwhelper/bud grafting animation.mp4"
line="-ss 4.920000 -i \"$fffile\" -t 60.000000 -map 0 -c:v copy -c:a copy \"$fffile.cut.mkv\""
zenity --entry --entry-text "$line"
ffmpeg $line
read dummy -
lavfi : pass min explicitly to samples_ready().
22 décembre 2016, par Nicolas George