
Recherche avancée
Médias (3)
-
Elephants Dream - Cover of the soundtrack
17 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
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (66)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (12364)
-
ffprobe : Add Support to print information about AV_FRAME_DATA_DISPLAYMATRIX
3 mai 2015, par Michael Niedermayer -
avcodec/svq3 : Print unknown fields at debug level
2 mai 2015, par Michael Niedermayer -
Print the userlist with time log
19 janvier 2015, par Merlin SundarI have two bash scripts. One which parallelises the other script with accompanied parameters
(userlist:10,20,100...)
,Images :1,2,3..
,Image sizes :320x240,640x480...
,Virtual machines :1,2,3,4
. etc. in a loop and
the other script that has the executables and a counter for time(this is run in a loop).
the first script s run on my localhost , after which the directory is changed and the rest is run on the remote server. Technically the entire second script is in the server and begins with the time counter and executables like ffmped, sr.out code. etc.
Now i want the time log to also have the Userlist printed on it along side(which is so that computation gets easy after running the tests after 8-10 hours. I have written a line in the script but it instead runs the no. of times the user is and then prints time likethis is 1
0.20
this is 50
this is 50
this is 50
this is 50
this is 50
this is 50....(50 times) then the time...
2.98
3.49(50 entriesWhile all I want is
This is 1
0.24
This is 50
2.41
3.43
5.64...(50 entries)
This is 100
2.40(100 entries)How to do it ?
here are the two codes.
First code this runs on my end#!/bin/bash
# Variables are declared:
#50 100 200 300 400 500 600 700 800 900 1000
#FList=("input/flower1.jpg" "input/flower2.jpg" "input/flower3.jpg" "input/flower4.jpg")
#IList=("320X240" "640X480" "1280X960" "1920X1200")
NList=(1 10 20)
# FList and IList have been aligned exactly below each other so that the variable "index"
# takes the order of each file and its corresponding size
FList=("input/flower2.jpg")
IList=("640X480")
SList=(2)
for (( index=0; $index < ${#FList[@]}; index++ )) do
echo "$index"
file=${FList[$index]}
image_size=${IList[$index]}
width=`echo $image_size|cut -d "X" -f1`
height=`echo $image_size|cut -d "X" -f2`
for scale_factor in ${SList[@]}; do
for users in ${NList[@]}; do
echo "V: $VM, " "F: $file, " "S: $scale_factor, " "I: $width $height , " "N: $users"
for i in `seq 1 $users` ; do
echo $users
cd ~/Documents/Merlin_testing/
echo This is $users exp >>out_put/Time_log.txt
sh sr_run_once.sh $file $width $height $scale_factor &
done
wait
done # for users
done # for scale_factor
done # for index
exit 0second script : runs on server
#!/bin/bash
output_file=out_put/Time_log.txt
START=$(date +%s.%N)
echo PID=$$
#argumets : input_file.jpg width height scale_factor
./ffmpeg -i $1 -s $2x$3 -pix_fmt yuv420p in_$$.yuv
if (($? > 0)); then
# echo $? >$output_file
# printf '%s\n' 'Failure in first ffmpeg' > $output_file
exit 1
fi
./OUT_SR.out in_$$.yuv out_sr_$$.yuv $2 $3 $4
w=$(($2 * $4));
h=$(($3 * $4));
# if (($? > 0)); then
# printf '%s\n' 'Failure in SR.out' >$output_file
# exit 1
# fi
./ffmpeg -s ${w}x${h} -pix_fmt yuv420p -i out_sr_$$.yuv out_put/out_sr_$$.jpg
# if (($? > 0)); then
# printf '%s\n' 'Failure in last ffmpeg' >$output_file
# exit 1
# fi
rm -rf out_put/*.yuv
rm -rf *.yuv
rm -rf out_put/*.jpg
END=$(date +%s.%N)
DIFF=$(echo "$END - $START" | bc)
echo "this is $DIFF" | tee -a $output_file
exit 0