Recherche avancée

Médias (91)

Autres articles (64)

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

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

Sur d’autres sites (10724)

  • how to add transitions on multiple videos using ffmpeg ?

    31 mars 2021, par Captain_Zaraki

    I am trying to add transitions between multiple videos and it works perfectly for two videos but when I use 3 videos then it is giving an error-

    


    the code I am trying is-
merge is a function which contains many different types of motions

    


    v = merge(ls[0], ls[1], motions[0])
j = 1
filename = str(uuid.uuid4())
for i in range(2, len(ls)):
    v = merge(v, ls[i], motions[j])
    j += 1
return v


    


    and the code for one of the transitions is -

    


    def pixelize(videos):
#both videos will be combined without any motion
v_1 = videos[0]
vid = VideoFileClip(v_1)
print(v_1)
v_1_time = vid.duration
offset = int(v_1_time-2)
v_2 = videos[1]
print(v_2)
combined_video = os.path.join(BASE_DIR, "media/images/" + filename + ".mp4")
cmd = "ffmpeg -i {} -i {} -filter_complex '[0]scale=1280:720,settb=AVTB[v0];[1]scale=1280:720,settb=AVTB[v1];[v0][v1]xfade=transition=pixelize:duration=1:offset={},format=yuv420p' ".format(v_1, v_2, offset) + combined_video
os.system(cmd)
print(combined_video)
return combined_video


    


    and the error I am getting is -

    


    Output /home/user/Desktop/folder/f72c2825-7113-4569-8add- a6103f649207.mp4 same as Input #0- 
exiting 
FFmpeg cannot edit existing files in-place.


    


    is there any way to fix this error ?

    


  • How to merge two videos ?

    1er mai 2016, par Alexander

    I use https://github.com/Zulko/moviepy library for merge two videos with python. It merged successfully but sound of videos is not exists in merged.mp4.

    The python code :

    clip1 = VideoFileClip("2.mp4",audio=True)
    clip2 = VideoFileClip("1.mp4",audio=True)
    final_clip = concatenate_videoclips([clip1,clip2],method="compose")
    final_clip.write_videofile("merged.mp4")

    I also tried with ffmpeg

    ffmpeg -i 'concat:1.mp4|2.mp4' -codec copy merged.mp4

    ffmpeg couldn’t merge videos. It create merged.mp4 which has only 1.mp4

    How can I merge two videos with python or another way ?

  • How to merge two videos ?

    20 mars 2023, par Alexander

    I use https://github.com/Zulko/moviepy library for merge two videos with python. It merged successfully but sound of videos is not exists in merged.mp4.

    



    The python code :

    



    clip1 = VideoFileClip("2.mp4",audio=True)
clip2 = VideoFileClip("1.mp4",audio=True)
final_clip = concatenate_videoclips([clip1,clip2],method="compose")
final_clip.write_videofile("merged.mp4")


    



    I also tried with ffmpeg

    



    ffmpeg -i 'concat:1.mp4|2.mp4' -codec copy merged.mp4


    



    ffmpeg couldn't merge videos. It create merged.mp4 which has only 1.mp4

    



    How can I merge two videos with python or another way ?