
Recherche avancée
Autres articles (64)
-
Qu’est ce qu’un éditorial
21 juin 2013, parEcrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
Vous pouvez personnaliser le formulaire de création d’un éditorial.
Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...) -
Gestion des droits de création et d’édition des objets
8 février 2011, parPar 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 ;
-
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.
Sur d’autres sites (8156)
-
ffmpeg program doesn't running on shell script with java Application
20 octobre 2017, par Hae-Yoon JoI code java Application and running Linux shell-script when java App running on Linux server.
The linux shell-script is running. But, i need runnning ffmpeg program by shell.-
the ffmpeg is running with shell-script command by ./shellName.sh
-
ffmpeg is not running with java App run by .
- only ffmpeg command in shell.
- working mkdir command
- working pwd command
#!/bin/bash
echo -n "ffmpeg cmd :"
/home/popsline/ffmpeg -i /home/popsline/sub02_chocolat.mp4 -r 0.14 -ss 00:00:20 -t 10:00:00 -vframes 10 -f image2 -y /home/popsline/img/iamges%d.png
mkdir /home/username/test
pwdJava code.
HomeController.java refer sh.java as Object.
so codes is follows :HomeController.java
/**
* Simply selects the home view to render by returning its name.
*/
@RequestMapping(value = "/", method = RequestMethod.GET)
public String home(Locale locale, Model model) {
logger.info("Welcome home! The client locale is {}.", locale);
Sh sh = new Sh();
sh.shRun();
return "home";
}sh.java
private static final Logger logger = LoggerFactory.getLogger(HomeController.class);
public void shRun(){
Runtime rt = Runtime.getRuntime();
Process proc = null;
InputStream is = null;
BufferedReader bf = null;
try {
String[] cmd = {
"/bin/sh"
, "-c"
, "/usr/local/bin/creaThum.sh"
};
proc = rt.exec(cmd);
proc.getInputStream();
is = proc.getInputStream();
bf = new BufferedReader(new InputStreamReader(is));
while (true) {
String info = bf.readLine();
if(info == null || info.equals("")){
break;
}
logger.info("info haeyoon:: " + info);
}
} catch (Exception e) {
logger.info(e.getMessage());
}
} -
-
why 'read' command in shell script is missing initial characters ? [duplicate]
15 avril 2019, par todThis question already has an answer here :
I have the following shell script and it is missing some initial characters (it misses initial couple of characters, so far in my observation) from each line except the first line.
And this happens only when I use the
ffmpeg
command. Otherwise, it is fine. But this command does the actual task in this script.Why is it so and what is the fix ?
#!/bin/bash
while read line; do
printf "%s\n" "$line"
ifile=$line
printf "%s\n" "$ifile"
ofile=abc_$line
printf "%s\n" "$ofile"
############### Problem is the following command: ##########
ffmpeg -y -i $ifile -c:v libx264rgb -b:v 512k -bf 0 -pix_fmt rgb24 -r 25 -strict -2 $ofile
##########rest is fine##########
echo $ifile
done < file_list -
Shell script not working on a different server
11 novembre 2013, par Alex BlundellI've just migrated a shell script to another server with similar specs (same CentOS version) but the following command seems to fail :
find /home/removed/captures -name '*.avi' -exec ffmpeg -y -i {} -ab 1280 -b 1024000 {}.mp4 \;
The following message gets returned :
find: `ffmpeg': No such file or directory
I have installed ffmpeg, and made sure it runs from the command line. I've also tried passing in the full path to ffmpeg instead of just 'ffmpeg'. Both ffmpeg versions are the same on each server. I was thinking it was something to do with syntax of the find program changing between versions, but they're both the same version too. This runs via the root crontab.
The script does run by itself though if I call it directly. Could this be an issue with permissions ? It runs on a cPanel server.
Thanks :)