
Recherche avancée
Autres articles (86)
-
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community. -
Configuration spécifique pour PHP5
4 février 2011, parPHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
Modules spécifiques
Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...) -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
Sur d’autres sites (3871)
-
ffmpeg : Using tee with segmenter
17 juillet 2024, par LevI'm trying to use a tee to output my stream into 1min segments and into a file at the same time. Here's my command :



ffmpeg -i "rtsp://${cameraIp}:554/axis-media/media.amp?videocodec=h264&resolution=1280x720&fps=15" -c copy -map 0 \
-f tee "[f=ssegment:segment_time=60:segment_format=mp4:reset_timestamps=1:r=15] ${rootPath}/${storeId}-${location}-%03d.mp4 \
| /tmp/${cameraIp}.mkv"




Individually (without tee) both outputs work fine. So I can either output into segmented files or into a non-segmented file. But with the tee I get this error :





[stream_segment,ssegment @ 0x217ece0] Failed to open segment '
 /etc/cida/diagnostics/vid/780801-99-000.mp4' [tee @ 0x217d820] Slave
 '[f=ssegment:segment_time=60:segment_format=mp4:reset_timestamps=1:r=15]
 /etc/cida/diagnostics/vid/780801-99-%03d.mp4' : error writing header :
 No such file or directory





See full command output below. Any suggestions ?





ffmpeg version 3.3 Copyright (c) 2000-2017 the FFmpeg developers

 built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1 14.04.3) configuration :
 —extra-libs=-ldl —prefix=/opt/ffmpeg —mandir=/usr/share/man —enable-avresample —disable-debug —enable-nonfree —enable-gpl —enable-version3 —enable-libopencore-amrnb —enable-libopencore-amrwb —disable-decoder=amrnb —disable-decoder=amrwb —enable-libpulse —enable-libfreetype —enable-gnutls —enable-libx264 —enable-libx265 —enable-libfdk-aac —enable-libvorbis —enable-libmp3lame —enable-libopus —enable-libvpx —enable-libspeex —enable-libass —enable-avisynth —enable-libsoxr —enable-libxvid —enable-libvidstab —enable-libwavpack —enable-nvenc libavutil 55. 58.100 / 55. 58.100 libavcodec 57. 89.100 / 57. 89.100 libavformat 57. 71.100 / 57. 71.100 libavdevice 57. 6.100 / 57. 6.100 libavfilter 6. 82.100 / 6. 82.100 libavresample 3. 5. 0 / 
 3. 5. 0 libswscale 4. 6.100 / 4. 6.100 libswresample 2. 7.100 / 2. 7.100 libpostproc 54. 5.100 / 54. 5.100 Input #0, rtsp, from 'rtsp ://10.83.245.7:554/axis-media/media.amp ?videocodec=h264&resolution=1280x720&fps=15' :
 Metadata :
 title : Session streamed with GStreamer
 comment : rtsp-server Duration : N/A, start : 0.080011, bitrate : N/A
 Stream #0:0 : Video : h264 (Main), yuvj420p(pc, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 25 tbr, 90k tbn, 180k tbc
 [stream_segment,ssegment @ 0x217ece0] Failed to open segment '
 /etc/cida/diagnostics/vid/780801-99-000.mp4' [tee @ 0x217d820] Slave
 '[f=ssegment:segment_time=60:segment_format=mp4:reset_timestamps=1:r=15]
 /etc/cida/diagnostics/vid/780801-99-%03d.mp4' : error writing header :
 No such file or directory [tee @ 0x217d820] Slave muxer #0 failed,
 aborting. Could not write header for output file #0 (incorrect codec
 parameters ?) : No such file or directory Stream mapping : Stream #0:0
 -> #0:0 (copy)
 Last message repeated 1 times



-
ffmpeg : Using tee with segmenter
30 avril 2017, par LevI’m trying to use a tee to output my stream into 1min segments and into a file at the same time. Here’s my command :
ffmpeg -i "rtsp://${cameraIp}:554/axis-media/media.amp?videocodec=h264&resolution=1280x720&fps=15" -c copy -map 0 \
-f tee "[f=ssegment:segment_time=60:segment_format=mp4:reset_timestamps=1:r=15] ${rootPath}/${storeId}-${location}-%03d.mp4 \
| /tmp/${cameraIp}.mkv"Individually (without tee) both outputs work fine. So I can either output into segmented files or into a non-segmented file. But with the tee I get this error :
[stream_segment,ssegment @ 0x217ece0] Failed to open segment ’
/etc/cida/diagnostics/vid/780801-99-000.mp4’ [tee @ 0x217d820] Slave
’[f=ssegment:segment_time=60:segment_format=mp4:reset_timestamps=1:r=15]
/etc/cida/diagnostics/vid/780801-99-%03d.mp4’ : error writing header :
No such file or directorySee full command output below. Any suggestions ?
ffmpeg version 3.3 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1 14.04.3) configuration :
—extra-libs=-ldl —prefix=/opt/ffmpeg —mandir=/usr/share/man —enable-avresample —disable-debug —enable-nonfree —enable-gpl —enable-version3 —enable-libopencore-amrnb —enable-libopencore-amrwb —disable-decoder=amrnb —disable-decoder=amrwb —enable-libpulse —enable-libfreetype —enable-gnutls —enable-libx264 —enable-libx265 —enable-libfdk-aac —enable-libvorbis —enable-libmp3lame —enable-libopus —enable-libvpx —enable-libspeex —enable-libass —enable-avisynth —enable-libsoxr —enable-libxvid —enable-libvidstab —enable-libwavpack —enable-nvenc libavutil 55. 58.100 / 55. 58.100 libavcodec 57. 89.100 / 57. 89.100 libavformat 57. 71.100 / 57. 71.100 libavdevice 57. 6.100 / 57. 6.100 libavfilter 6. 82.100 / 6. 82.100 libavresample 3. 5. 0 /
3. 5. 0 libswscale 4. 6.100 / 4. 6.100 libswresample 2. 7.100 / 2. 7.100 libpostproc 54. 5.100 / 54. 5.100 Input #0, rtsp, from ’rtsp ://10.83.245.7:554/axis-media/media.amp ?videocodec=h264&resolution=1280x720&fps=15’ :
Metadata :
title : Session streamed with GStreamer
comment : rtsp-server Duration : N/A, start : 0.080011, bitrate : N/A
Stream #0:0 : Video : h264 (Main), yuvj420p(pc, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 25 tbr, 90k tbn, 180k tbc
[stream_segment,ssegment @ 0x217ece0] Failed to open segment ’
/etc/cida/diagnostics/vid/780801-99-000.mp4’ [tee @ 0x217d820] Slave
’[f=ssegment:segment_time=60:segment_format=mp4:reset_timestamps=1:r=15]
/etc/cida/diagnostics/vid/780801-99-%03d.mp4’ : error writing header :
No such file or directory [tee @ 0x217d820] Slave muxer #0 failed,
aborting. Could not write header for output file #0 (incorrect codec
parameters ?) : No such file or directory Stream mapping : Stream #0:0
-> #0:0 (copy)
Last message repeated 1 times -
Saving scatterplot animations with matplotlib produces blank video file
1er avril 2013, par user2175850I am having a very similar problem to this question
but the suggested solution doesn't work for me.
I have set up an animated scatter plot using the matplotlib animation module. This works fine when it is displaying live. I would like to save it to an avi file or something similar. The code I have written to do this does not error out but the video it produces just shows a blank set of axes or a black screen. I've done several checks and the data is being run and figure updated it's just not getting saved to video...
I tried removing "animated=True" and "blit=True" as suggested in this question but that did not fix the problem.
I have placed the relevant code below but can provide more if necessary. Could anyone suggest what I should do to get this working ?
def initAnimation(self):
rs, cfgs = next(self.jumpingDataStreamIterator)
#self.scat = self.axAnimation.scatter(rs[0], rs[1], c=cfgs[0], marker='o')
self.scat = self.axAnimation.scatter(rs[0], rs[1], c=cfgs[0], marker='o', animated=True)
return self.scat,
def updateAnimation(self, i):
"""Update the scatter plot."""
rs, cfgs = next(self.jumpingDataStreamIterator)
# Set x and y data...
self.scat.set_offsets(rs[:2,].transpose())
#self.scat = self.axAnimation.scatter(rs[0], rs[1], c=cfgs[0], animated=True)
# Set sizes...
#self.scat._sizes = 300 * abs(data[2])**1.5 + 100
# Set colors..
#self.scat.set_array(cfgs[0])
# We need to return the updated artist for FuncAnimation to draw..
# Note that it expects a sequence of artists, thus the trailing comma.
matplotlib.pyplot.draw()
return self.scat,
def animate2d(self, steps=None, showEvery=50, size = 25):
self.figAnimation, self.axAnimation = matplotlib.pyplot.subplots()
self.axAnimation.set_aspect("equal")
self.axAnimation.axis([-size, size, -size, size])
self.jumpingDataStreamIterator = self.jumpingDataStream(showEvery)
self.univeseAnimation = matplotlib.animation.FuncAnimation(self.figAnimation,
self.updateAnimation, init_func=self.initAnimation,
blit=True)
matplotlib.pyplot.show()
def animate2dVideo(self,fileName=None, steps=10000, showEvery=50, size=25):
self.figAnimation, self.axAnimation = matplotlib.pyplot.subplots()
self.axAnimation.set_aspect("equal")
self.axAnimation.axis([-size, size, -size, size])
self.Writer = matplotlib.animation.writers['ffmpeg']
self.writer = self.Writer(fps=1, metadata=dict(artist='Universe Simulation'))
self.jumpingDataStreamIterator = self.jumpingDataStream(showEvery)
self.universeAnimation = matplotlib.animation.FuncAnimation(self.figAnimation,
self.updateAnimation, scipy.arange(1, 25), init_func=self.initAnimation)
self.universeAnimation.save('C:/universeAnimation.mp4', writer = self.writer)