
Recherche avancée
Autres articles (30)
-
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 (...) -
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 -
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 (4170)
-
swscale : add two spatially stable dithering methods
23 mars 2014, par Øyvind Kolåsswscale : add two spatially stable dithering methods
Both of these dithering methods are from http://pippin.gimp.org/a_dither/ for
GIF they can be considered better than bayer (provides more gray-levels), and
spatial stability - often more than twice as good compression and less visual
flicker than error diffusion methods (the methods also avoids error-shadow
artifacts of diffusion dithers).These methods are similar to blue/green noise type dither masks ; but are
simple enough to generate their mask on the fly. They are still research work
in progress ; though more expensive to generate masks (which can be used in a
LUT) like ’void and cluster’ and similar methods will yield superior results -
How to optimize FFMPEG/ Chromacast video ?
5 août 2021, par HasanRe-broadcast a live broadcast by chromecasting it. The code below delays 5 seconds.


Server I use :
https://instances.vantage.sh/?selected=c5.2xlarge


Can you help me optimize the code ?


chromakey.sh



# Combine two files using a chromakey effects
filter_complex(){
 local videoWith="${1:-1920}" # Video Size
 local videoHeight="${2:-1080}" # Video Size
 local key="${3:-00FF00}" # Colorkey colour - default vaue is 0000FF or green
 local colorSim="${4:-0.2}" # Colorkey similarity level - default value is 0.2
 local colorBlend="${5:-0.1}" # Colorkey blending level - default value is 0.1

 # Update color variable according to user input
 # This makes the matching case insensitive
 if [[ $3 =~ ^[0-9A-F]{6}$ ]]; then
 key=$3
 elif [[ $(tr "[:upper:]" "[:lower:]" <<<"$1") = "blue" ]]; then
 key="0000FF"
 elif [[ $(tr "[:upper:]" "[:lower:]" <<<"$1") = "green" ]]; then
 key="00FF00"
 elif [[ $(tr "[:upper:]" "[:lower:]" <<<"$1") = "red" ]]; then
 key="FF0000"
 elif [[ $(tr "[:upper:]" "[:lower:]" <<<"$1") = "purple" ]]; then
 key="0000FF"
 elif [[ $(tr "[:upper:]" "[:lower:]" <<<"$1") = "orange" ]]; then
 key="ff9900"
 elif [[ $(tr "[:upper:]" "[:lower:]" <<<"$1") = "yellow" ]]; then
 key="FFFF00"
 fi

 
 filterString="[1:v]scale=$videoWith x $videoHeight,chromakey=0 x $key:$colorSim:$colorBlend[ckout];[0:v]scale=(iw*sar)*max($videoWith/(iw*sar)\,$videoHeight/ih):ih*max($videoWith/(iw*sar)\,$videoHeight/ih), crop=$videoWith:$videoHeight[bg];[bg][ckout]overlay[out]"
 
 printf '%s%s%s%s%s' $filterString
}

ffmpeg -re -stream_loop -1 -i "${1}" -i "${2}" -preset ultrafast -filter_complex "$(filter_complex "${@:4}")" -map '[out]' -c:v libx264 -f flv "${3}"



Usage : ./chromakey.sh mask.mp4 http://example.com/live/broadcast_orj rtmp ://example.com/live/broadcast_greenscreen 1920 1080 green 0.1 0.2


-
Anomalie #2381 : Corriger le niveau d’intertitre
9 juin 2018, par b bIl y a des H2 dans la dist, qui introduisent des listes d’articles, de résultats, ou des blocs (forum), je pense qu’ils peuvent rester comme ça.
Si le bloc de forum sous le texte de l’article reste en h2, il va se retrouver "au même niveau" qu’un intertitre en h2 donc, c’est pas top non ?