
Recherche avancée
Médias (91)
-
Valkaama DVD Cover Outside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
Valkaama DVD Label
4 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Valkaama DVD Cover Inside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
1,000,000
27 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Demon Seed
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Four of Us are Dying
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (36)
-
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
Que fait exactement ce script ?
18 janvier 2011, parCe script est écrit en bash. Il est donc facilement utilisable sur n’importe quel serveur.
Il n’est compatible qu’avec une liste de distributions précises (voir Liste des distributions compatibles).
Installation de dépendances de MediaSPIP
Son rôle principal est d’installer l’ensemble des dépendances logicielles nécessaires coté serveur à savoir :
Les outils de base pour pouvoir installer le reste des dépendances Les outils de développements : build-essential (via APT depuis les dépôts officiels) ; (...) -
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...)
Sur d’autres sites (5243)
-
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());
}
} -
-
Find exe files in batch script
20 septembre 2017, par D.SpamOk so I have a batch script that looks something like this
:Input
ECHO.
SET url=
ECHO Enter URL
SET /P url=
IF "%url%" EQU "" GOTO End
IF "%url: =%" NEQ "%url%" GOTO Input
ECHO Enter start time (in seconds, or in hh:mm:ss form):
SET /P start=
ECHO Enter duration (in seconds, or in hh:mm:ss form):
SET /P dur=
ECHO.
FOR /F "delims==" %%A IN ('youtube-dl.exe --no-warnings --get-filename "%url%"') DO SET filename=%%A
FOR /F %%B IN ('youtube-dl.exe -g "%url%"') DO (
ffmpeg.exe -hide_banner -ss "%start%" -i "%%B" -c copy -t "%dur%" -bsf:a aac_adtstoasc video.mp4
)
:EndThe script works flawlessly but my only problem is the script only works when the batch file is inside the folder with all the executables (ffmpeg.exe, youtube-dl.exe). I would like the scripts to run outside the folder
The folder in which the executables are :
\Clips\ffmpeg\binThe folder I would like to store/run the batch files from is Clips.
Another tricky problem is that the Clips folder will be shared with other users so I dont want to specify a directory like G :\Desktop\Clips as it will not work for them.
-
Bash script not finding files
9 septembre 2017, par user2751809I am writing a simple script to iterate over all the m4a files in a folder and encode them to mp3. I want to do the encoding of the files in different threads to increase the speed of execution and take advantage of all the cores in my PC, so I am sending the tasks to background, please advice me if this is the right approach.
Anyway, I am getting a No such file or direcory error for every single file that I want to encode, even though the file is there ; and the funny thing is that if I copy the exact same instruction to a terminal, it will be executed correctly. Can you please help me to find out what am I doing wrong ?Thanks in advance.
#!/bin/bash
function encode {
echo "<<<<<<<<<<< encode >>>>>>>>>>>>>>>>"
cd "$1"
find . -mindepth 1 -maxdepth 1 | while read f
do
if [ -f "${f}" ]
then
if [ ${f: -4} == ".m4a" ]
then
if [ ! -d "converted" ]
then
mkdir converted
fi
newPath="${f%m4a}mp3"
echo "ffmpeg -i \""$f"\" -ac 2 -b:a 320k -y \""$newPath"\" null >/dev/null &"
ffmpeg -i \""$f"\" -ac 2 -b:a 320k -y \""$newPath"\" null >/dev/null &
fi
elif [ -d "${f}" ]
then
echo "folder $f"
encode "$f"
fi
done
}
encode "$1"