Zulko / moviepy

Video editing with Python
https://zulko.github.io/moviepy/
MIT License
12.42k stars 1.55k forks source link

Gif to MP4 by VideoFileClip, always plays the first frame #2088

Closed chengxs1994 closed 9 months ago

chengxs1994 commented 9 months ago

Expected Behavior

Play dynamic content similar to gif

Actual Behavior

When I use VideoFileClip to convert gif to MP4, the generated MP4 always plays the first frame of content

Steps to Reproduce the Problem

from moviepy import editor
video = editor.VideoFileClip('pics.gif')
video.write_videofile(video_filepath)

Specifications

SohamTilekar commented 9 months ago

Is Your Gif Work Normally Because It Work on my pc. Below is the Input Clip and Output Clip Chake Whether the Below Input Gif Work on Device.

Input Clip: - pigs_in_a_polka

Output Clip: -

https://github.com/Zulko/moviepy/assets/152298897/c34d6b06-62e1-4f23-95ed-b880c9ed409b

SohamTilekar commented 9 months ago

I was using the Windows 10, python 3.12, moviepy 1.03

Do you Like to Work on My Project Vidiopy Which is to Make an alternative to the Moviepy Because the Moviepy python Version is outdated, To Many Bugs, Zulko Unviability.

chengxs1994 commented 9 months ago

Is Your Gif Work Normally Because It Work on my pc. Below is the Input Clip and Output Clip Chake Whether the Below Input Gif Work on Device.

Input Clip: - pigs_in_a_polka pigs_in_a_polka

Output Clip: -

pigs_in_a_polka.mp4

Thank you very much. I used your GIF successfully, but the GIF I generated using ImageIO failed

chengxs1994 commented 9 months ago

I was using the Windows 10, python 3.12, moviepy 1.03

Do you Like to Work on My Project Vidiopy Which is to Make an alternative to the Moviepy Because the Moviepy python Version is outdated, To Many Bugs, Zulko Unviability.

I was using the Windows 10, python 3.12, moviepy 1.03

Do you Like to Work on My Project Vidiopy Which is to Make an alternative to the Moviepy Because the Moviepy python Version is outdated, To Many Bugs, Zulko Unviability.

Okay, I'll try it locally

SohamTilekar commented 9 months ago

I was using the Windows 10, python 3.12, moviepy 1.03 Do you Like to Work on My Project Vidiopy Which is to Make an alternative to the Moviepy Because the Moviepy python Version is outdated, To Many Bugs, Zulko Unviability.

I was using the Windows 10, python 3.12, moviepy 1.03 Do you Like to Work on My Project Vidiopy Which is to Make an alternative to the Moviepy Because the Moviepy python Version is outdated, To Many Bugs, Zulko Unviability.

Okay, I'll try it locally

I Am Currently Developing it Would You Like To Work With me on it. Reply me on the Vidiopy Discussions.

chengxs1994 commented 9 months ago

I was using the Windows 10, python 3.12, moviepy 1.03 Do you Like to Work on My Project Vidiopy Which is to Make an alternative to the Moviepy Because the Moviepy python Version is outdated, To Many Bugs, Zulko Unviability.

I was using the Windows 10, python 3.12, moviepy 1.03 Do you Like to Work on My Project Vidiopy Which is to Make an alternative to the Moviepy Because the Moviepy python Version is outdated, To Many Bugs, Zulko Unviability.

Okay, I'll try it locally

I Am Currently Developing it Would You Like To Work With me on it. Reply me on the Vidiopy Discussions.

Of course, I fork and star