Recherche avancée

Médias (1)

Mot : - Tags -/belgique

Autres articles (106)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Ajout d’utilisateurs manuellement par un administrateur

    12 avril 2011, par

    L’administrateur d’un canal peut à tout moment ajouter un ou plusieurs autres utilisateurs depuis l’espace de configuration du site en choisissant le sous-menu "Gestion des utilisateurs".
    Sur cette page il est possible de :
    1. décider de l’inscription des utilisateurs via deux options : Accepter l’inscription de visiteurs du site public Refuser l’inscription des visiteurs
    2. d’ajouter ou modifier/supprimer un utilisateur
    Dans le second formulaire présent un administrateur peut ajouter, (...)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (13218)

  • Ffmpeg can't convert at 24fps AND burn a subtitles

    14 novembre 2020, par Oshida_BCF

    i like to save my anime but i don't like when the subs are softburned and if the video is in mkv (it's heavier)

    


    so i made some .bat that encode the video and burn the subtitles.

    


    cd To convert
for %%a in ("*.mkv") do ffmpeg -i "%%a" -vf subtitles="%%a" -crf 18 -c:v libx264 -c:a aac -b:a 256k ../Converted/"%%~na.mp4"
pause


    


    this command burn the subtitles and it's perfect

    


    cd To convert
for %%a in ("*.mp4") do ffmpeg -i "%%a" -filter:v fps=fps=24 -crf 18 -c:v libx264 -c:a aac -b:a 256k ../Converted/"%%~na.mp4"
pause


    


    this one encode at 24 fps and it's perfect too

    


    but this one

    


    cd To convert
for %%a in ("*.mkv") do ffmpeg -i "%%a" -vf subtitles="%%a" -crf 18 -c:v libx264 -c:a aac -b:a 256k -filter:v fps=fps=24 ../Converted/"%%~na.mp4"
pause


    


    doesn't work.

    


    and i have no idea

    


    it convert the video in mp4, at 24fps
but it "forgot" the subtitles

    


    do there is some commands that aren't compatible and cancel each other ?

    


    for now i burn the sub on the video and i convert at 24 fps after.
but being able to do the 2 at the same time would save me a lot of time.

    


  • Revision 42179 : Détecter les numéros français d’après l’indicatif +33 Pour appliquer la ...

    8 novembre 2010, par da@… — Log

    Détecter les numéros français d’après l’indicatif +33 Pour appliquer la vérification de format sur les numéros français même dans le cas où aucun pays n’a été passé en option, on détecte le pays d’après le préfixe international. Le même mécanisme pourra être appliqué par la suite si des tests se font pour (...)

  • 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')