Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (77)

  • Organiser par catégorie

    17 mai 2013, par

    Dans 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, par

    Utilité
    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 (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le 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 (7142)

  • "The system cannot find the file specified" when animating with ffmpeg in matplotlib

    27 novembre 2019, par algol

    I am trying to generate a movie from a stack of numpy arrays using a function I have used on a different computer (a mac) on my home computer (Windows 10). Here is the function that I am using :

    def make_animation(frames,name):

       plt.rcParams['animation.ffmpeg_path'] = u'C:\ffmpeg-20190320-0739d5c-win64-static\bin\ffmpeg.exe'
       n_images=frames.shape[2]
       assert (n_images>1)  
       figsize=(10,10)
       fig, ax = plt.subplots(figsize=figsize)
       fig.tight_layout()
       fig.subplots_adjust(left=0, bottom=0, right=1, top=1, wspace=None, hspace=None)
       #lineR, = ax.plot(xaxis_data[0],R_data[0],'c-',label="resources")
       img = ax.imshow(frames[:,:,0], animated = True)  


       def updatefig(img_num):

           #lineR.set_data(xaxis_data[img_num],R_data[img_num],'r-')

           img.set_data(frames[:,:,img_num])

           return [img]


       ani = animation.FuncAnimation(fig, updatefig, np.arange(1, n_images), interval=50, blit=True)
       mywriter = animation.FFMpegWriter(fps = 20)
       #ani.save('mymovie.mp4',writer=mywriter)

       ani.save(f"D:\{name}.mp4",writer=mywriter)

       plt.close(fig)

    Here is the error that I am getting :

    Traceback (most recent call last):

     File "", line 1, in <module>
       make_animation(stack,'full_test')

     File "", line 27, in make_animation
       ani.save(f"D:\{name}.mp4",writer=mywriter)

     File "C:\Users\~snip~\Anaconda3\lib\site-packages\matplotlib\animation.py", line 1136, in save
       with writer.saving(self._fig, filename, dpi):

     File "C:\Users\~snip~\Anaconda3\lib\contextlib.py", line 112, in __enter__
       return next(self.gen)

     File "C:\Users\~snip~\Anaconda3\lib\site-packages\matplotlib\animation.py", line 228, in saving
       self.setup(fig, outfile, dpi, *args, **kwargs)

     File "C:\Users\~snip~\Anaconda3\lib\site-packages\matplotlib\animation.py", line 352, in setup
       self._run()

     File "C:\Users\~snip~\Anaconda3\lib\site-packages\matplotlib\animation.py", line 363, in _run
       creationflags=subprocess_creation_flags)

     File "C:\Users\~snip~\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 143, in __init__
       super(SubprocessPopen, self).__init__(*args, **kwargs)

     File "C:\Users\~snip~\Anaconda3\lib\subprocess.py", line 775, in __init__
       restore_signals, start_new_session)

     File "C:\Users\~snip~\Anaconda3\lib\subprocess.py", line 1178, in _execute_child
       startupinfo)

    FileNotFoundError: [WinError 2] The system cannot find the file specified
    </module>

    I know this code basically works since I have used it before on another computer. My guess is that something about ffmpeg is messed up or something about the output path is wrong. I’m not sure what could be wrong with the ffmpeg since I definitely have it installed (via conda) and the path is pretty straightforward. On the other hand I’m not sure what could be wrong with the output path.

  • Which Platform/Language to choose for Video Management System [closed]

    5 décembre 2019, par Vivek Buddhadev

    We have started on a new project, Which enables for the multiple IP cameras(Around 1000 Cameras) to record as well as available for live streaming.

    Like https://www.security.honeywell.com/uk/product-repository/maxpro-vms

    Initially, we have tried using ffmpeg commands that saves data in chunks :

    ffmpeg -i {rtsp_url} -fflags flush_packets -max_delay 2 -flags -global_header \
       -hls_time 2 -hls_list_size 3 -vcodec copy -y /var/www/html/Cam01.m3u8

    Then we have started http server and using node.js we are displaying the stream.

    But as we are adding more cameras into it, the performance is going down.

    Kindly suggest if there is any other way to achieve this functionality which help us to fulfill the above requirement.

  • FFmpeg os.system commands not working but work in Terminal

    28 janvier 2020, par Oscar Dolloway

    I’ve downloaded ffmpeg through the website and ran some commands through the terminal to confirm its install.

    when running the command ’ffmpeg’ in the Terminal it returns

    ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg
    developers
    built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)

    if i type into Python

    import os
    os.system ('ffmpeg')

    it returns

    os.system ('ffmpeg')
    sh: ffmpeg: command not found
    Out[25]: 32512

    any ideas ?

    Solution :

    ffmpeg = '/bin/ffmpeg' #path to the binary file

    os.system(ffmpeg)

    Output :

    os.system (ffmpeg)
    ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
    built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)