
Recherche avancée
Autres articles (48)
-
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 (8371)
-
ffmpeg is adding an extra new line into a box
4 août 2017, par newbie123I’m overlaying weather data over my webcam stream. I put a background box filter, but the padding between the text and the box is uneven. There is "a new line" of extended box bellow the text.
Why is that ? There are no empty lines in a text file I’m providing to ffmpeg. Here is my code for the ffmpeg :
ffmpeg \
-f lavfi -i anullsrc \
-rtsp_transport tcp \
-i "$SOURCE" \
-vcodec libx264 -pix_fmt yuv420p -preset ultrafast -g 20 -b:v 1000k \
-vf "drawtext="fontfile=${FONT}":textfile=${textfile}:x=5:y=55:reload=1: \
fontcolor=white:fontsize=${FONTSIZE}:box=1:boxborderw=5:boxcolor=black@0.5" \
-threads $THREADS -bufsize 512k \
-f flv "$YOUTUBE_URL/$KEY"EDIT :
I found out what the problem was. I was using printf "%s\n" "$variable1" "$variable2" to create a text file. Printf %s\n automatically prints each variable into a new line. The solution was to print the last variable without the new line. Code example :
#!/bin/sh
LC_CTYPE=en_US.utf8
# Get APRS weather data from aprs.fi
wxstation="S55MA-10"
name="Juršče, Pivka"
# Basic weather data
temp="$(wget -q https://aprs.fi/weather/a/${wxstation} -O - | grep Temperature | egrep '[-+]?([0-9]*\.[0-9]+|[0-9]+)' -o)"
humidity="$(wget -q https://aprs.fi/weather/a/${wxstation} -O - | grep Humidity | egrep '[-+]?([0-9]*\.[0-9]+|[0-9]+)' -o)"
wind="$(wget -q https://aprs.fi/weather/a/${wxstation} -O - | grep Wind | egrep '[-+]?([0-9]*\.[0-9]+|[0-9]+)' -o | sed -n -e 2p)"
rain="$(wget -q https://aprs.fi/weather/a/${wxstation} -O - | grep Rain | egrep '[-+]?([0-9]*\.[0-9]+|[0-9]+)' -o | sed -n -e 1p)"
# Telemetry
radioactivity="$(wget -q https://aprs.fi/telemetry/a/${wxstation} -O - | grep Radioactivity | egrep '[-+]?([0-9]*\.[0-9]+|[0-9]+)' -o | sed -n -e 5p)"
printf "%s\n" "$name" "Temperature: ${temp}\°C" "Humidity: ${humidity}\%" "Wind: ${wind} m/s" "Rain: ${rain} mm/h"
printf "Radioactivity: ${radioactivity} uSv/h" -
doc/libav-merge : remove line about aac_adtstoasc
24 mai 2017, par James Almer -
libavformat/mov : Change log line from debug to trace
7 août 2021, par Soft Works