
Recherche avancée
Autres articles (78)
-
Problèmes fréquents
10 mars 2010, parPHP et safe_mode activé
Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site -
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)
Sur d’autres sites (12698)
-
configure : Add missing asyncts filter, movie filter, and output example deps
22 novembre 2016, par Diego Biurrun -
Animated watermark moving on the edges of the movie - ffmpeg
25 février, par saeid ezzatiI wanna overlay a picture on a video, as a watermark. How do I insert an animated watermark that randomly moves from side to side.



For example, 
A watermark, placed on top/ upper-left corner, moves randomly to the top/upper-right corner and freezes there for five seconds before moving down to the lower- right corner.



I don't want the watermark to have a cross movement and move from the upper-right corner to the lower-left corner.



Here is an example of my code, using which the watermark randomly jumps to a corner each 200 frames without animate :



ffmpeg -i "source.mp4" -i "watermark.png" -filter_complex "[1:v]scale=50:-1[a]; [0:v][a]overlay=x='st(0,floor(random(n)*2)+1);if(eq(mod(n-1,200),0), if(eq(ld(0),1),0, main_w-overlay_w ) ,x)':y='st(0,floor(random(n)*2)+1);if(eq(mod(n-1,200),0),if(eq(ld(0),1),0, main_h-overlay_h ),y)'" -codec:a copy "out.mp4"



-
Scheduled ffmpeg function gives thread.error and also fires ffmpeg too many times
16 février 2016, par user2192778I want to record a clip of a radio stream every hour. Below is the code I am using to accomplish this so far.
def sched(): # schedules a recording every hour
def stream_record ():
timeinfo = datetime.now().strftime('%Y%m%d_%H%M_%S%f')
ffmpegEXE = "C:/path/to/ffmpeg.exe"
subprocess.call([ffmpegEXE, '-i', url, '-t', '00:07:00',
output_folder + timeinfo + '_' + str(start_minute) + 'url.mp3'], shell=True)
i = 0
while True:
x = datetime.today()
y=x.replace(day=x.day+1, hour=i, minute= start_minute, second=0, microsecond=0)
i = (i + 1) % 24
delta_t=y-x
secs=delta_t.seconds+1
t = Timer(secs,stream_record)
t.start()
sched()Two things go wrong. (1) It will run, however an error reads :
line X in (module)
sched()
line Y in sched
t.start()
line Z in start
_start_new_thread(self.__bootstrap, ())
thread.error : can’t start new thread
And (2) when it runs, ffmpeg will initialize a recording anywhere from 5-15 times, saving many clips when I only want it to save one.
How do I fix these errors and get ffmpeg to connect and record only one clip every hour ?
I know this is an issue with the scheduling function ; the ffmpeg command works fine, as does the python script calling it.