
Recherche avancée
Autres articles (77)
-
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...) -
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...) -
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)
Sur d’autres sites (6251)
-
Inline background, one less HTTP request.
1er janvier 2013, par scottschillerm demo/index.css Inline background, one less HTTP request.
-
Set background colour when converting flv to mp4 with ffmpeg
28 août 2012, par CastlesI'm attempting to convert flv files (with an alpha channel) that are uploaded to a server to html5 compatible formats. I've got the conversion working but the transparency is rendered as black. What I would like to do is have the ability to specify a colour.
Is it possible to convert the video and specify the colour ?
Alternatively, am I able to overlay the video with transparency on a still image that I generate ?
Update
I may of solved my own question... Here is my ffmpeg command :`ffmpeg -loop_input -f image2 -i background.png -r 25 -t 10 -an -level 21 -refs 2 -b 345k -bt 345k -acodec libfaac -vcodec libx264 -ac 2 -ab 96k -ar 44100 -vf "movie=input.flv, scale=370:500 [logo]; [in][logo] overlay=0:0 [out]" -y -threads 0 output.mp4`
Which works.. I just need to generate a background image at the right dimensions on the server before converting.
-
Calling ffmpeg kills script in background only
14 mai 2014, par TimDI’ve got a python script that calls ffmpeg via subprocess to do some mp3 manipulations. It works fine in the foreground, but if I run it in the background, it gets as far as the ffmpeg command, which itself gets as far as dumping its config into stderr. At this point, everything stops and the parent task is reported as stopped, without raising an exception anywhere. I’ve tried a few other simple commands in the place of ffmpeg, they execute normally in foreground or background.
This is the minimal example of the problem :
import subprocess
inf = "3HTOSD.mp3"
outf = "out.mp3"
args = [ "ffmpeg",
"-y",
"-i", inf,
"-ss", "0",
"-t", "20",
outf
]
print "About to do"
result = subprocess.call(args)
print "Done"I really can’t work out why or how a wrapped process can cause the parent to terminate without at least raising an error, and how it only happens in so niche a circumstance. What is going on ?
Also, I’m aware that ffmpeg isn’t the nicest of packages, but I’m interfacing with something that has using ffmpeg compiled into it, so using it again seems sensible.