Recherche avancée

Médias (3)

Mot : - Tags -/collection

Autres articles (40)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (5376)

  • MoviePy on EC2 Instance Super Slow

    27 janvier 2020, par connorvo

    No matter what size EC2 instance I use, MoviePy.write_videofile() takes forever.

    I ran it on a t2.micro, c5.large, and c4.2xlarge and they all projected to take the same amount of time ( 7 hours).

    I have a 720mb mp4 file that I am adding a 30mb mp4 file to the beginning of and then putting a text overlay on the entire video (just static text saying the company name in the bottom corner).

    final_video.write_videofile(
       f"{FINAL_VIDEO_FILENAME}.mp4",
       fps=60,
       codec='libx264',
       audio_codec='aac',
       temp_audiofile=f'{FINAL_VIDEO_FILENAME}_temp_audio.mp4',
       remove_temp=True,
       threads = 8, # this was for c4.2xlarge instance
    )
    def __get_intro_clip(self, title, size, fps):
           clip = ( VideoFileClip('ytbot/intro_video/intro_video.mp4')
               .subclip(0,9.5)
               .resize(size)
               .set_fps(fps)
           )

           # make bigger then resize() so stroke works properly
           text_clip1 = ( TextClip(f'{TEXTTEXT}',font='Helvetica-Narrow-Bold',fontsize=self.DEFAULT_TEXT_SIZE*self.TITLE_MULTIPLIER,color='white',stroke_color='black',stroke_width=self.DEFAULT_STROKE_SIZE*self.TITLE_MULTIPLIER).resize(self.DEFAULT_RESIZE_MULTIPLIER)
               .margin(bottom=175, opacity=0)
               .set_position('center')
               .set_duration(4)
               .set_start(1)
               .fadein(0.25)
               .fadeout(0.25)
           )
           text_clip2 = ( TextClip(f'presents',font='Helvetica-Narrow-Bold',fontsize=self.DEFAULT_TEXT_SIZE*self.TITLE_MULTIPLIER*0.7,color='white',stroke_color='black',stroke_width=self.DEFAULT_STROKE_SIZE*self.TITLE_MULTIPLIER).resize(self.DEFAULT_RESIZE_MULTIPLIER)
               .set_position('center')
               .set_duration(3.5)
               .set_start(1.5)
               .fadein(0.25)
               .fadeout(0.25)
           )
           text_clip3 = ( TextClip(title,font='Helvetica-Narrow-Bold',fontsize=self.DEFAULT_TEXT_SIZE*self.TITLE_MULTIPLIER,color='white',stroke_color='black',stroke_width=self.DEFAULT_STROKE_SIZE*self.TITLE_MULTIPLIER).resize(self.DEFAULT_RESIZE_MULTIPLIER)
               .margin(top=175, opacity=0)
               .set_position('center')
               .set_duration(3)
               .set_start(2)
               .fadein(0.25)
               .fadeout(0.25)
           )

           return CompositeVideoClip([clip, text_clip1, text_clip2, text_clip3]).fadein(0.5)

       def edit_yt_video(self, video_path, name):
           video_clips = []

           clip = VideoFileClip(video_path)

           video_clips.append(self.__get_intro_clip(name, clip.size, clip.fps))

           text_clip = ( TextClip('Company: {name}',font='Helvetica-Narrow-Bold',fontsize=self.DEFAULT_TEXT_SIZE,color='white',stroke_color='black',stroke_width=self.DEFAULT_STROKE_SIZE).resize(self.DEFAULT_RESIZE_MULTIPLIER)
               .margin(bottom=15, left=15, opacity=0)
               .set_position(('left', 'bottom'))
               .set_duration(clip.duration)
           )

           video_clips.append(CompositeVideoClip([clip, text_clip]).fadeout(0.5).crossfadein(0.5))

           return concatenate_videoclips(video_clips, padding=-1, method='compose')
  • Anomalie #3540 : menus des sous-rubrique

    29 mars 2016, par b b

    C’est la conception de la dist "qui impose ça". Comme tu le remarques, le menu n’est affiché que s’il y a bien plus d’une rubrique. Je ne pense pas que ça soit bloquant pour la dist, puisque la page d’un des articles affiche bien la liste des rubriques dans le bloc lattéral, cf :

    http://3540.grml.eu/spip.php?article2

    De plus, il y a aussi le fil d’ariane et le plan du site...

    Et je ne suis pas certain pas qu’il soit une bonne idée d’introduire un "menu déroulant" dans la dist.

  • fftools/ffmpeg : Fallback to duration if sample rate is unavailable

    1er mai 2018, par Michael Niedermayer
    fftools/ffmpeg : Fallback to duration if sample rate is unavailable
    

    Regression since : af1761f7
    Fixes : Division by 0
    Fixes : ffmpeg_crash_1

    Found-by : Thuan Pham, Marcel Böhme, Andrew Santosa and Alexandru Razvan Caciulescu with AFLSmart
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] fftools/ffmpeg.c