Recherche avancée

Médias (1)

Mot : - Tags -/Christian Nold

Autres articles (49)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (9373)

  • ffmpeg overlay transparent animated gif over video and keep gif background transparency

    14 août 2020, par Diego Perez

    I'm trying to overlap an animated gif over a video with no success.

    



    My goals are the next :

    



      

    1. gif animation have to loop until video ends.
    2. 


    3. gif is scaled so it covers the whole video.
    4. 


    5. gif preserves transparency.
    6. 


    



    The most I have achieved regarding this is that the gif covers the whole video with the scale filter and that it loops until video ends (but this not in the best way, I guess).

    



    Regarding loop I know I can use -ignore_loop 0 gif filter parameter with shortest=1 in overlay but this way it is not working so I ended up with -frames:v 900 (my video is 30fps and 30sec long so 900 is the number of frames).

    



    My most important issue is I'm not able to keep gif transparency and everything I've tried resulted in no success.

    



    This is my ffmpeg command with arguments, so I hope anybody can help (I'm using ffmpeg 4.1).

    



    ffmpeg -y 
-i videoin.mp4 
-i anim01.gif 
-filter_complex [1:v]scale=1080:1920[ovrl] [0:v][ovrl]overlay=main_w-overlay_w:main_h-overlay_h
-frames:v 900 
-codec:a copy
-codec:v libx264
-preset ultrafast
video.mp4


    


  • How to plot an animated graph

    2 août 2019, par Mukonza Sabastian Simbarashe

    Following along How to Create Animated Graphs in Python when constructing an animated plot then on writing the ffmpeg I get the following error :

    'Requested MovieWriter ({}) not available'.format(name))
    RuntimeError: Requested MovieWriter (ffmpeg) not available

    After getting this error, I initially tried to install ffmpeg using pip by the following method :

    python -m install ffmpeg

    and it seems to have successfully installed ffmpeg, but going back to my code I still get the same error

    Find below my code :

    import numpy as np
    import pandas as pd
    import seaborn as sns
    import matplotlib
    import matplotlib.pyplot as plt
    import matplotlib.animation as animation

    overdoses = pd.read_excel(r'C:\Users\ACER\Desktop\overdose_data_1999-2015.xls',sheet_name='Online',skiprows =6)

    def get_data(table,rownum,title):
       data = pd.DataFrame(table.loc[rownum][2:]).astype(float)
       data.columns = {title}
       return data

    title = 'Heroin Overdoses'
    d = get_data(overdoses,18,title)
    x = np.array(d.index)
    y = np.array(d['Heroin Overdoses'])
    overdose = pd.DataFrame(y,x)
    overdose.columns = {title}
    Writer = animation.writers['ffmpeg']

    Here is the stack trace :

    Traceback (most recent call last):
     File "C:\Python\Python36\lib\site-packages\matplotlib\animation.py", line 161, in __getitem__
       return self.avail[name]
    KeyError: 'ffmpeg'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
     File "", line 1, in <module>
       Writer = animation.writers['ffmpeg']
     File "C:\Python\Python36\lib\site-packages\matplotlib\animation.py", line 164, in __getitem__
       'Requested MovieWriter ({}) not available'.format(name))
    RuntimeError: Requested MovieWriter (ffmpeg) not available
    </module>
  • Advice on how to specify length of animated GPX video with ffmpeg/image2pipe

    21 mai 2019, par Chris Olin

    I’m working on a personal project involving an action camera that records GPS data alongside video from an image sensor. I found an open source projected on GitHub called ’trackanimation’ that uses a colored marker to trace the GPX path on a OpenStreetMaps overlay, but it appears that the project has been abandoned. I’m trying to sync the trackanimation video to the image sensor video, but when I try using video editing software to slow the GPX video down to 1%, it still ends up being shorter than the image sensor video. I’ve tried messing with the baked in ffmpeg command in make_video(), but still can’t get the output video to be as long as I want it to be.

    I started digging into the library source to see how the video was being created, tried tweaking a couple things to no avail.

    import trackanimation
    from trackanimation.animation import AnimationTrack

    gpx_file = "Videos/20190516 unity ride #2.mp4.gpx"
    gpx_track = trackanimation.read_track(gpx_file)

    fig = AnimationTrack(df_points=gpx_track, dpi=300, bg_map=True, map_transparency=0.7)
    fig.make_video(output_file="Videos/1-11trackanimationtest.mp4", framerate=30, linewidth=1.0)
       def make_video(self, linewidth=0.5, output_file='video', framerate=5):
           cmdstring = ('ffmpeg',
                        '-y',
                        '-loglevel', 'quiet',
                        '-framerate', str(framerate),
                        '-f', 'image2pipe',
                        '-i', 'pipe:',
                        '-r', '25',
                        '-s', '1920x1080',
                        '-pix_fmt', 'yuv420p',
                        output_file + '.mp4'
                        )

    I expect that I should be able to linearly "slow" the GPX video to a dynamic value based on the length of the video and the length I want it to be.