
Recherche avancée
Médias (1)
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (99)
-
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 ) (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (10005)
-
tools/target_swr_fuzzer : do not use negative numbers of samples
30 novembre 2024, par Michael Niedermayertools/target_swr_fuzzer : do not use negative numbers of samples
Fixes : signed integer overflow : -277109688 * 8 cannot be represented in type 'int'
Fixes : 376118159/clusterfuzz-testcase-minimized-ffmpeg_SWR_fuzzer-5884436320681984Found-by : continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by : Michael Niedermayer <michael@niedermayer.cc> -
avformat/mpegts* : reduce use of magic numbers
1er décembre 2024, par Scott Theisenavformat/mpegts* : reduce use of magic numbers
Note ISO/IEC 13818-1 defines an Extension_descriptor with descriptor_tag value
0x3f (63), so I kept the DVB comment.I don't know what defines stream_type value 0x8a as DTS.
I don't have any Blu-ray standards so I don't know where those stream_type
values are defined.Signed-off-by : Marton Balint <cus@passwd.hu>
-
Unable to find correct bash syntax for comparing numbers
17 octobre 2024, par kaliPart of a long script I'm simply trying to compare two numbers, one is constant and the other one is retrieved via
ffprobe
(The 474 in the error messages is the height found by ffprobe)

CURRENT_RES=$(ffprobe -v quiet -select_streams v:0 -show_entries stream=height -of csv=s=x:p=0 "${fn}")
 if [[ $CURRENT_RES -gt 1080 ]]; then
 echo "leaving preset normal"
 SLOW_PRESET=("" "")
 else
 echo "setting preset to slow"
 SLOW_PRESET=(-preset slow)
 fi;



produces :


/usr/local/bin/startScreen.sh: line 95: [[: 474

474: syntax error in expression (error token is "474")
setting preset to slow



I also tried arithmetic operators like :


if (($CURRENT_RES>1080)); then
 echo "leaving preset normal"
 SLOW_PRESET=("" "")
 else
 echo "setting preset to slow"
 SLOW_PRESET=(-preset slow)
 fi;



got a slightly different, but essentially same error message like :


/usr/local/bin/startScreen.sh: line 95: ((: 474

474>1080: syntax error in expression (error token is "474>1080")
setting preset to slow



What's even more baffling is there 15 lines below this block there is another comparison which works perfectly fine !


if [[ $CURRENT_RES -gt $CONVERT_HEIGHT ]]; then



I thought may be the inline written 1080 number is confusing the if expression so I tried assigning 1080 to variable and reusing it, which changed nothing.


edit : (dropping this here in case someone else falls into same mistake)
following up on Shawn's advice from comments using
cat -v
showed 474 was repeated twice.
For debugging purposes ran :

ffprobe -v quiet -select_streams v:0 -show_entries stream=height -of json "filename.mp4"



to find this weird format :


{
 "programs": [
 {
 "streams": [
 {
 "height": 472
 }
 ]
 }
 ],
 "streams": [
 {
 "height": 472
 }
 ]
}



finally changed the ffprobe command to :


CURRENT_RES=$(ffprobe -v quiet -select_streams v:0 -show_entries stream=height -of json "${fn}" | jq .streams[0].height)



to resolve the issue.