Recherche avancée

Médias (1)

Mot : - Tags -/ticket

Autres articles (66)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

Sur d’autres sites (6626)

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