
Recherche avancée
Autres articles (89)
-
Le plugin : Gestion de la mutualisation
2 mars 2010, parLe plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
Installation basique
On installe les fichiers de SPIP sur le serveur.
On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
< ?php (...) -
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 (...) -
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 (...)
Sur d’autres sites (7187)
-
Different results using qt-faststart and "ffmpeg -movflags +faststart"
31 mars 2020, par Juan Ignacio SánchezI have a set of videos generated by security cameras, which have the MOOV atom at the end of the file, like this :
ftyp (32 bytes)
free (8 bytes)
mdat (29647845 bytes)
moov (42054 bytes)I want to serve these files using progressive downloads (pseudo streaming) and it’s the only acceptable way to do it.
Knowing that I tried to use tools like
qt-faststart
or directlyffmpeg
with the corresponding flags (-movflags +faststart
). Other detail is that I’m running this on a low profile machine, and FFmpeg takes like 6 8 seconds to finish (even using-c copy
) and the other tool results to be much more efficient since it only moves some bytes, taking less than a second to finish. The thing here is thatqt-faststart
produces a video that can’t be pseudo streamed butffmpeg
does it. Here are some comparisons :ffmpeg
:ftyp (32 bytes)
moov (42422 bytes)
free (8 bytes)
mdat (29647845 bytes)qt-faststart
:ftyp (32 bytes)
moov (42054 bytes)
free (8 bytes)
mdat (29647845 bytes)As you can see, FFmpeg adds some extra bytes on the MOOV atom, can anyone point me in some research direction ? Thank you all.
-
"Missing reference picture" error when saving rtsp stream with ffmpeg
4 mars 2020, par Cédric KamermansI want to record 10 seconds of video with an IP camera via ffmpeg. The output video looks fine but i get a bunch of "Missing reference picture" errors in the log. This only happens in the beginning of the process. I also get the warning "circular_buffer_size is not supported on this build".
I started of with the following code :
-y -i rtsp://username:password@IP:88/videoMain -t 10 ffmpeg_capture.mp4
But this resulted in the output being corrupted in the beginning.
I found the following code on a forum and this seems to fix that problem. The errors still remain though.-y -i rtsp://username:password@IP:88/videoMain -b 900k -vcodec copy -r 60 -t 10 ffmpeg_capture.mp4
One thing to note is that currently we’re using a C2 V3 IP camera. This model is just for testing, we will upgrade to a better model when we get this working.
I want to clarify that i’m just beginning to use ffmpeg, so I don’t quite understand it yet. It would be greatly appreciated if someone could provide an example code of how I can fix this problem.
Thanks in advance !
-
problem with "subprocess.Popen" AFTER make .exe file
1er février 2020, par afcc0060im try to convert mp3 to mp4 with ffmpeg (command line)
everything is well and program runs correctly.
i have one progressbar and handle it from this function by reading ffmpeg command line outputcls_wnd.pbar_step(line.lower())
but after make (single) .exe file with pyinstaller program not run and did not convert anything
def _cli(self ,cls_wnd ,cmd):
errors = False
cmd_output=""
line=''
try:
p = subprocess.Popen(cmd ,stdout=subprocess.PIPE ,
stderr=subprocess.STDOUT ,
universal_newlines=True ,
shell=False ,
creationflags = subprocess.CREATE_NO_WINDOW)
for line in p.stdout:
if cls_wnd.bt02.cget('text').lower()!="cancel":
p.kill()
return cmd_output, True ,'cancel'
cmd_output+=line
if line.lower().find('duration:')>-1 or line.lower().find('frame=')<1:
cls_wnd.pbar_step(line.lower())
cls_wnd.root.update()
stdoutdata, stderrdata = p.communicate()
if p.wait() != 0:
p.kill()
return cmd_output, True ,line
p.kill()
return cmd_output, errors ,' '
except OSError as e:
p.kill()
return cmd_output,True,' exit from except '
return '',True,'exit from _cli end'cmd is somthnig like this
cmd='ffmpeg -y -loop 1 -i 1.jpg -i 1.mp3 -c:a copy -c:v libx264 -shortest 1.mp4'
make .exe file with this command
pyinstaller -w --onefile mp3tomp4.py --onefile
if i dont use’-w’ every thing is well .. but that ugly black cmd-windows shown and i can not close or hide it