
Recherche avancée
Médias (1)
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (111)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne 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 (...) -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Contribute to documentation
13 avril 2011Documentation is vital to the development of improved technical capabilities.
MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
To contribute, register to the project users’ mailing (...)
Sur d’autres sites (9672)
-
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