Recherche avancée

Médias (91)

Autres articles (81)

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

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

Sur d’autres sites (10604)

  • avformat/tta : fix crash with corrupted files

    3 février 2015, par wm4
    avformat/tta : fix crash with corrupted files
    

    av_add_index_entry() can fail, for example because the parameters are
    invalid, or because memory allocation fails. Check this ; it can actually
    happen with corrupted files.

    The second hunk is just for robustness. Just in case functions like
    ff_reduce_index() remove entries. (Not sure if this can actually
    happen.)

    Fixes ticket #4294.

    Reviewed-by : Paul B Mahol <onemda@gmail.com>
    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavformat/tta.c
  • FFmpeg :Run one bat after one bat

    16 avril 2018, par AniEncoder

    well I tried to run a .bat file after a file gets downloaded by qBittorrent, the .bat will change font and rename it and move it another folder.

    There are 3 problems
    1. two .bat needed to run...font & rename
    2. the file gets copied in to folders

    I need to add some gap between EngSub, if i do that, it donot shows in the file output

    Change Font
    for %%A in (*.mkv) do ffmpeg -i "%%A" -map 0:s:0 "%%A.ass"

       ren *.ass *.txt

       setlocal

       @echo off
       call :FindReplace "Open Sans Semibold" "CronosPro-Bold" "*.txt"
       call :FindReplace "&amp;H00020713" "&amp;H0000003B" "*.txt"
       call :FindReplace ",1.7," ",2," "*.txt"
       @echo on

       ren *.txt *.ass

       for %%A in (*.mkv) do ffmpeg -i "%%A" -i "%%A".ass -c copy -map 0:0 -map 0:1 -map 1:0 -metadata:s:s:0 language=eng -disposition:s:0 default -attach CronosPro-Bold.ttf -metadata:s:3 mimetype=application/x-truetype-font "..\720p\%%A"

       del *.ass

       :FindReplace <findstr> <replstr> <file>
       set tmp="%temp%\tmp.txt"
       If not exist %temp%\_.vbs call :MakeReplace
       for /f "tokens=*" %%a in ('dir "%3" /s /b /a-d /on') do (
         for /f "usebackq" %%b in (`Findstr /mic:"%~1" "%%a"`) do (
           echo(&amp;Echo Replacing "%~1" with "%~2" in file %%~nxa
           &lt;%%a cscript //nologo %temp%\_.vbs "%~1" "%~2">%tmp%
           if exist %tmp% move /Y %tmp% "%%~dpnxa">nul
         )
       )

       del %temp%\_.vbs

       :MakeReplace
       >%temp%\_.vbs echo with Wscript
       >>%temp%\_.vbs echo set args=.arguments
       >>%temp%\_.vbs echo .StdOut.Write _
       >>%temp%\_.vbs echo Replace(.StdIn.ReadAll,args(0),args(1),1,-1,1)
       >>%temp%\_.vbs echo end with
    </file></replstr></findstr>

    Rename

    ren  "[HorribleSubs]*.mkv" "[hasu]*.mkv"
    ren  *[*  *[1090p][Eng Sub].*
    call "1080.bat"
    move [hasu]*.* ..\Trash
  • 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')