Recherche avancée

Médias (1)

Mot : - Tags -/artwork

Autres articles (111)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

  • Que fait exactement ce script ?

    18 janvier 2011, par

    Ce script est écrit en bash. Il est donc facilement utilisable sur n’importe quel serveur.
    Il n’est compatible qu’avec une liste de distributions précises (voir Liste des distributions compatibles).
    Installation de dépendances de MediaSPIP
    Son rôle principal est d’installer l’ensemble des dépendances logicielles nécessaires coté serveur à savoir :
    Les outils de base pour pouvoir installer le reste des dépendances Les outils de développements : build-essential (via APT depuis les dépôts officiels) ; (...)

Sur d’autres sites (10483)

  • Concatenate Movies from Python List using MoviePy or FFmpeg

    24 septembre 2020, par Python_Learner_DK

    I have about 10,000 short videos that I am trying to make several longer videos from.

    



    I've created these videos using MoviePy, but keep getting memory errors when trying to concatenate them back together.

    



    In my code I have an outer loop going through each letter of the alphabet and getting the files that start with that letter.

    



    From the returned video clips I get the length and and strip off the last 3.5 seconds (outro_clip_duration) of the video, and then add it into a Python list clips.

    



    Where I'm stuck is I then want to take this list of trimmed videos and make one long long video from it.

    



    I have all the files, I just need to trim them, concatenate them, and then export them as one.

    



    I've tried many times with different MoviePy attempts and keep getting MemoryErrors so I gave up and took a swing at an ffmpeg solution seen here but it is not working out either.

    



    The latest version of the main part of my code is here :

    



    clips = []
outro_clip = mpy.VideoFileClip('Logo_Intro_w_Stinger_Large.mp4')
outro_clip_duration = outro_clip.duration
for def_image in vid_list_long:
    video_item = mpy.VideoFileClip('F:/sm_My_Video/sm_%s.mp4' % def_image)
    video_item_duration = video_item.duration
    clips.append(ffmpeg_extract_subclip(video_item,0,(video_item_duration - outro_clip_duration), targetname = def_image))

# #Append the outro_clip to the end 
clips.append(mpy.VideoFileClip('Logo_Intro_w_Stinger_Large.mp4',target_resolution = (h,w),audio=True))
slided_clips = [CompositeVideoClip([clip.fx( transfx.crossfadein, transition_seconds)]) for clip in clips]
#added 'method = compose' NEED TO TEST - supposedly removes the weird glitches.
c = concatenate_videoclips(slided_clips, method = 'compose')
c.write_videofile('F:/Extended_Play/%s_Extended_Play_vid.mp4' % letter,fps=23.98)


    



    My PC is Windows 10 and I have 32 GB of RAM running Anaconda and Python 3.

    


  • Need help to change working ffmpeg command to overlay instead of concatenate two audio files at specific position

    7 mars 2019, par lukistar

    By asking another question here, I got working code

    ffmpeg -i input.mp3 -i second.mp3 -filter_complex "[0:a]atrim=end=10,asetpts=N/SR/TB[begin];[0:a]atrim=start=10,asetpts=N/SR/TB[end];[begin][1:a][end]concat=n=3:v=0:a=1[a]" -map "[a]" output

    The code inserts second.mp3 into the input.mp3 at 10 seconds.

    But now I need to overlay second.mp3 into the input.mp3 starting at 10seconds.
    In other words I need playing input.mp3 and after 10 seconds I need start playing second.mp3 simultaneously.

    The code I have been given keeps the params of input.mp3 and changes everything about second.mp3 to match input.mp3.

    Could you help me altering the command I have to do the overlay...

  • How to fix ffmpeg & mencoder pushing Persian (RTL) subtitles reversed ?

    5 avril 2019, par sheshkovsky

    I’m trying to build an application to burn subtitles on videos. The specific task to do is burning Persian (Right-to-left language) subtitles. But I have a problem with it.

    When I got several words simuntaneously without any "Enter" between them, the ffmpeg or mencoder push the lines to up. for example if I have three lines, the third lines comes on first line, then the second line, and then the first line prints on the screen.

    I have attached two screenshot to be clear about it. As you may see in the second one, there are 9 lines of persian subtitle which should be aligned from 1 on top to 9 on the bottom, but the 9th line appears on the first line on top.

    enter image description here

    enter image description here

    I’m using this code at the moment to burn the subtitles on mp4 videos :

    mencoder video.mp4 -sub subtitle.srt -utf8  -o output.mp4 -oac pcm -ovc lavc