Script to convert movies to Synfig compliant image sequences

Discuss anything about synfig.
User avatar
rylleman
Site Admin
Posts: 790
Joined: Wed Jan 21, 2009 2:36 pm
Location: Sweden.
Contact:

Script to convert movies to Synfig compliant image sequences

Postby rylleman » Fri Apr 03, 2009 7:26 pm

I've created a nautilus script that converts any movie to an image sequence along with a lst-file for import into Synfig.

Convert-movie-to-png-seq

To install just download the script and copy it to your Nautilus script folder and make it executable (chmod +x convert-movie-to-png-seq).
To use it select any movie file, right click it and choose the script from the Script sub-menu.
Now it creates a folder named as your movie-file minus the exension, in which it outputs an image sequence and a .lst-file which you can import into Synfig.

Note that I've set the image size to 480x270 and the frame rate to 25fps which you easily can change to whatever you prefer within the script file.

Hope you'll find it useful.

Advertisement

User avatar
pabs
Site Admin
Posts: 292
Joined: Fri Nov 30, 2007 8:25 pm
Contact:

Re: Script to convert movies to Synfig compliant image sequences

Postby pabs » Sat Apr 04, 2009 3:12 am

You might want to add a link to it from the ListImporter docs:

http://synfig.org/ListImporter
bye, pabs

User avatar
Genete
Site Admin
Posts: 5155
Joined: Sat Dec 01, 2007 6:26 am
Location: Spain

Re: Script to convert movies to Synfig compliant image sequences

Postby Genete » Sat Apr 04, 2009 3:23 am

Cool! thank you very much!.
I wonder if it is possible to read the frame rate form the original movie file to insert the same in the lst file.
One thing that I should change is the number of digits on the output png sequence. You've set it to 3 what implies a total of 1000 frames. It could cause problems if the length of the movie is longer than 1000/25=40 seconds.
-G
Synfig needs your help!
Developers, packagers, bug testers, translators, artists, web developers, wiki writers... you can contribute! :D

User avatar
rylleman
Site Admin
Posts: 790
Joined: Wed Jan 21, 2009 2:36 pm
Location: Sweden.
Contact:

Re: Script to convert movies to Synfig compliant image sequences

Postby rylleman » Sat Apr 04, 2009 5:02 am

pabs wrote:You might want to add a link to it from the ListImporter docs:

Done.

Genete wrote:Cool! thank you very much!.
I wonder if it is possible to read the frame rate form the original movie file to insert the same in the lst file.
One thing that I should change is the number of digits on the output png sequence. You've set it to 3 what implies a total of 1000 frames. It could cause problems if the length of the movie is longer than 1000/25=40 seconds.
-G

Yeah, it should be fairly easy to grab the framerate from the moviefile, I'll fix that when I get some time.
I updated the script to 4 digit numbering instead which will allow you a bit more flexibility. If you'd need to convert movies longer than around 6 minutes you'd just change that number to whatever you like.

MetroPietro
Posts: 5
Joined: Sun May 03, 2009 12:26 am

Re: Script to convert movies to Synfig compliant image sequences

Postby MetroPietro » Wed Jun 10, 2009 7:27 pm

For us newbies, the location of that Nautilus script folder is:
home/[username]/.gnome2/nautilus-scripts

GimliBimli
Posts: 7
Joined: Sun Jan 29, 2017 1:35 pm

Re: Script to convert movies to Synfig compliant image sequences

Postby GimliBimli » Mon Apr 17, 2017 10:12 am

Hey,
would love to import some .mp4s to synfig. Im using windows7. I just dont get it, how to create a .lst-file out of my .mp4. to import it to synfig.
NautilusScript is just for gnome and OS isnt it? How to do it on windows?
Thanks for helping and happy easter!
Cheers from Germany


Return to “Synfig general discussion”

Who is online

Users browsing this forum: No registered users and 1 guest