

-pix_fmt is the pixel format, I dn’t know much about these but the script failed until I added it in.-i infiles confusinging names out_0001.jpg ect the %04d means look for 4 figured numbers starting with 0001.
#GIFSICLE COMMAND LOOPCOUNT DOS MOVIE#
-framerate 6 to get the smae length of movie as I started with.-f chooses the format image2 which makes an image sequence.(google helps).įfmpeg -f image2 -framerate 6 -i out_%04d.jpg -c:v libx264 -pix_fmt yuv420p out.mp4 Time to stich these together, it took me a few goes to get the paramaters right. The next morning I have 1023 cartoons (I don’t imagine that it took all night). When I kicked this off I quickly realised it would take a while to r=un through 1212 images, so went to bed. cartoon $i out/$i.jpg runs the cartoon script from the folder above (./), and saves the output file in the out folder with the same name. jpg extension in the current folder do does: cartoon $i out/$i.jpg doneįor i in *.jpg for each file with a. So I move into the shower folder cd shower This would take the image on the left and create the one on the right: There are some paramaters you can use but I stuck to the default. I now need to loop through all of those images and create a cartoon version. I delete the last few manually to give me 1023 images. Given the movie is 3 minutes 22 seconds long I end up with 1212 images in the folder. This takes the input file (-i) at 6 frames per second and create jpg files in the shower folder with the file name out_0001.jpg ,out_0002.jpg ect Open the terminal and cd into the folder that has the cartoon script and the movie in it.įirst extract lots of still images (make a folder shower first mkdir shower):įfmpeg -i shower.mp4 -r 6 shower/out_%04d.jpg

I already have ffmpeg & imagemagick installed on my mac. Google takes me to Fred’s ImageMagick Scripts: CARTOON.īounus points for getting the sound track back in. I did start musing on doing something similar, I was thinging FFmpeg & ImageMagick. paid $5 and set things up.Īt that point I realise that the app helps you to manually trace frames, seemed a wee bit time consuming. I hied over to MacOS/OSX – Paint of Persia community – itch.io, read about it. I’ve tried Rotoscoping before, but this looked good. Jim might be thinking that ( says Alan) but so far I am just having fun.Īuthor John Posted on JJCategories animatedgif, Tutorial Tags comandline, ffmpeg, gifsicle, imagemagick, jim groom Leave a comment on Commandline gifs: Cartoon The Nitty Gritty This ain’t no RotoscopeĪs usual it started with a So this would be an excellent example of #ds106 SPLOT, port to a web version and bam Like the cartooning of videos a couple of posts ago there is the opportunity to see and understand a bit more about film using this technique. New blog post: "Gimme the Bat" I'M COMING FOR YOU Jim Groom July 14, 2016 There is a 12/100 of a second delay, it loops forever, is reduced to 16 colors and optimised (O3).Īlong the way there are a lot of other possibilities, convert for example can adjust the brightness and contrast (and a raft of other things). You can see the gif ends up in the top folder. Gifsicle -delay 12 gifs/*.gif -loopcount -O3 -colors 16 -o. This takes a wee while, I then make yet another folder:Īnd convert all the cartoon jpgs into gifs:įor i in *.jpg do convert $i gifs/$i.gif done I then use cartoon to make a cartoon image for each jpg in the toon folder:įor i in *.jpg do cartoon $i toon/$i done I move int othat folder and make a new one: I switched to the finder and previewed the movie to find out where I want to start extracting frames, which turns out to be at 26 seconds, and I want to get 3 seconds worth at 6 frames per second:įfmpeg -ss 00:00:26.000 -i dance.mp4 -t 00:00:03.000 -r 6 jpg2/dance_%04d.jpg In the terminal I move into the folder by typing cd and dragging the folder int the window and pressing return.
#GIFSICLE COMMAND LOOPCOUNT DOS DOWNLOAD#
I copied the download into a folder and renamed it dancer.mp4 Which I downloaded with YouTube downloader tool – Fastesttube!.
