Recherche avancée

Médias (1)

Mot : - Tags -/Christian Nold

Autres articles (58)

  • Problèmes fréquents

    10 mars 2010, par

    PHP 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

  • Mediabox : ouvrir les images dans l’espace maximal pour l’utilisateur

    8 février 2011, par

    La visualisation des images est restreinte par la largeur accordée par le design du site (dépendant du thème utilisé). Elles sont donc visibles sous un format réduit. Afin de profiter de l’ensemble de la place disponible sur l’écran de l’utilisateur, il est possible d’ajouter une fonctionnalité d’affichage de l’image dans une boite multimedia apparaissant au dessus du reste du contenu.
    Pour ce faire il est nécessaire d’installer le plugin "Mediabox".
    Configuration de la boite multimédia
    Dès (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 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 (...)

Sur d’autres sites (7443)

  • How to merge multiple video files into one video only

    1er août 2017, par shamaleyte

    I have multiple webm video files of a conference call.
    However, each participant joined the call at a different time which resulted in the fact that each video file has a different startTimeOffset values.

    Video Start Time

    Video1 : 00:00

    Video2 : 00:10

    Video3 : 01:40

    My purpose is to play back this conference. However, I do not record the conference as 1 video, it is recorded with multiple video files, instead.
    Is there any best practice to stitch such videos accordingly ?
    Maybe by ffmpeg library ?

    There is also a paid solution ; https://aws.amazon.com/about-aws/whats-new/2016/11/amazon-elastic-transcoder-adds-support-for-clip-stitching/ ) to merge video fragments to a single clip, this will make the client-side much simpler. But any free practice of doing it ?

    The expected outcome is to have 1 video showing 3 videos in a grid.
    When ffmpeg stitches the videos, it should consider their start time values properly so that the videos are played accordingly.

  • "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.

  • Convert powershell command to terminal (osx)

    10 mars 2015, par user1765661

    I use a loop on powershell to convert some videos, can you please help me to translate the same "code" so I can use it in the terminal of my mac ?

    Thank you.

    cd D:\Videos\Original

    new-item -path . -name "Videos_convert_003" -type directory

    dir -exclude *.png | foreach-object { $newname = $_.Basename + ".mp4"; ffmpeg -i "$_" -i logo_img_003.png -filter_complex overlay D:\Videos\Original\Videos_convert_003\$newname }