Recherche avancée

Médias (1)

Mot : - Tags -/vidéo

Autres articles (100)

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

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • MediaSPIP : Modification des droits de création d’objets et de publication définitive

    11 novembre 2010, par

    Par défaut, MediaSPIP permet de créer 5 types d’objets.
    Toujours par défaut les droits de création et de publication définitive de ces objets sont réservés aux administrateurs, mais ils sont bien entendu configurables par les webmestres.
    Ces droits sont ainsi bloqués pour plusieurs raisons : parce que le fait d’autoriser à publier doit être la volonté du webmestre pas de l’ensemble de la plateforme et donc ne pas être un choix par défaut ; parce qu’avoir un compte peut servir à autre choses également, (...)

Sur d’autres sites (8168)

  • how to fade in and out background music when speech play and fade out audio at the end and mix them together using ffmpeg

    3 avril 2019, par Harshil Dholakiya

    I am using below command in my project to mix background music with my speech audio and background music slow down volume level when speech play :

    ffmpeg -y -i speech.mp3 -stream_loop -1 -i music.mp3 -filter_complex "[0:a]asplit=2[sc][mix];[1:a][sc]sidechaincompress=threshold=0.01:ratio=5[bg];[mix][bg]amix=inputs=2:duration=first:dropout_transition=0[final]" -map [final] finalAudio.mp3

    i want to add this two filter to audio :

    1) Fade-in effect to background music for 1.5 sec when speech arrive and fade-out effect when speech is finish for 1.5 sec. speech.mp3 has more than one speech and silence in between speech.

    2) Fade out effect at the end of audio for 1.5 sec.

    can anyone help me to achieve both of above filter using ffmpeg with my above command ?

  • How to Concatenate bunch of videos using python ?

    5 juillet 2023, par Saikat Chakraborty

    So, I have over 5000 small clips that I need to combine. To apply various custom filter over their names, I want to do it with python. I have the following code :

    


    import os
from moviepy.editor import *
os.chdir('D:/videos')
list1, list2 = os.listdir(), []

for i in list1: #filtering
    if i[-6:] != '-l.mp4' and i[-7:] != 'ALT.mp4':
        list2.append(i)
print('Getting Video Info:')

final = VideoFileClip(list2[0])


for i in range(1,len(list2)):
    final = concatenate_videoclips([final, VideoFileClip(list2[i])])
    print('\r' + str(i+1) + '/' + str(len(list2)), end='')


os.chdir('D:')
final.write_videofile('Merged.mp4')


    


    But the program is creating lots of processes and just after reading 150 clips it's crashing.
enter image description here
It keeps increasing !
Is there any easier way/alternative to do this ? Thanks !

    


    Edit :
    
I've tried using ffmpeg too, but concatenation removes the audio since concat protocol doesn't support .mp4 extension. In that case. Even if I convert all the files to .ts extension and try to concatenate them,WindowsError: [Error 206] The filename or extension is too long pops up because too many files are separated by |. I did the following changes after converting all the files to .ts format :

    


    import os
import ffmpeg
os.chdir('D:/videos')
list1 = os.listdir()
list2 = [i for i in list1 if i[-3:] == '.ts']
list2[0] = ffmpeg.input(list2[0])
for i in range(1, len(list2)):
    list2[i] = ffmpeg.concat(list2[i-1], ffmpeg.input(list2[i]))
    print('\r' + str(i) + '/' + str(len(list2)), end='')
ffmpeg.output(list2[-1], 'D:\Merged.mp4')
ffmpeg.run(list2[-1])


    


    But now I'm getting RecursionError: maximum recursion depth exceeded while calling a Python object.

    


  • How to add transition effects like fade in, fade out, slide in, etc, to a video [on hold]

    31 mai 2018, par Janhavi Savla

    I am trying to add crossfade effect to a series of images ina folder and then create a video but I am getting an error :’tuple’ object has no attribute ’crossfadein’.
    How should I resolve it ?
    Here’s the code :

    from moviepy.editor import *
    import os

    delay =1
    H = 720
    W = 1280
    output = "out.mp4"
    path = "/Users/test/Desktop/Image_test_data/testdata2"
    dirs = os.listdir( path )
    ext = '.jpg'
    clips=[]
    images = [img for img in os.listdir(path) if img.endswith(ext)]

    for image in images:
       img=ImageClip(path+'/'+image).set_duration(2).resize(height=H,width=W)
       clips.append(img)

    final = concatenate([clip.crossfadein(delay) for clip in enumerate(clips)],
        padding=-delay, method="compose")

    final.write_videofile(output,fps=24, audio_codec="aac")