CT2-MAKE-MOVIE(1)

πŸ’– CT2-MAKE-MOVIE πŸ’–

okay bestie, welcome to ct2-make-movie from the User Commands girlies β€” it's a lil manual page for the ct2-make-movie program and honestly? it's giving movie director energy. 🎬✨


✨ NAME ✨

ct2-make-movie β€” literally just the manual page for ct2-make-movie, that's it, that's the name section 🫢


🌸 SYNOPSIS 🌸

ct2-make-movie [options] file.ct2 arguments...

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the vibe: it automates making movies out of one single ctioga2 command file. One file. That's the whole plot. πŸ‘‘

When you run:

ct2-make-movie plot.ct2 file1.dat file2.dat file3.dat ...

it runs ctioga2 over and over and over, with the variable $(arg) taking each of the arguments you gave on the command line β€” so file1.dat first, then file2.dat, then file3.dat, and so on forever until it runs out. it's a loop, bestie, a whole little for-loop with main character energy. πŸ’…

But wait, there's more β€” it can also generate its own arguments, no thoughts needed:

ct2-make-movie plot.ct2 0..10:101

that makes $(arg) go from 0 to 10 through 101 steps. slay. ✨

And in every case, the variable $(index) gets set to the current number of the frame being drawn, starting from 0. so in that example above? it would range from 0 to 100. πŸŽ€

Then the PDF files that ctioga2 spits out get converted by ImageMagick's convert and fed into an ffmpeg encoding pipe. pipeline? more like pipe-line. iconic. πŸ”₯


πŸ’… OPTIONS πŸ’…

  • -t, --target FILE β€” the target video file, bestie. defaults to the ctioga2 file name you gave, except the suffix .ct2 gets swapped out for .avi.
  • --dir DIR β€” temporary directory for storage. put your lil files somewhere cute. πŸ“
  • --version β€” prints the version of ct2-make-movie. that's it. that's the whole job. πŸ’€
  • -p, --[no-]pdftoppm β€” using pdftoppm to rasterize the PDF file instead of convert can lead to very significant speed improvements, depending on your version of gs. using this option enables the use of pdftoppm. that said β€” convert remains necessary for the processing, though. so don't go thinking you can ghost convert, it's still showing up. 😭
  • --page-size SIZE β€” every single page-size instruction in the ctioga2 command file gets ignored. using this option lets you set the target page size instead (in TeX dimensions). it's giving override. πŸ‘‘
  • --resolution RES β€” set target resolution. (overridden to some extent by page-size, jsyk 🫢)
  • --[no-]store β€” when this is on (and it's on by default), ct2-make-movie gives a different name to every generated PDF file. handy for seeing what actually happened! but also it can take up quite a lot of disk space too, so… choices. when this option is disabled, the same PDF file just gets rewritten over and over again. one file, infinite glow-ups. πŸ™ˆ
  • -b, --bitrate RATE β€” bitrate (indicative). passed directly to ffmpeg. no notes. ⭐
  • --codec CODEC β€” target codec. pick your fighter. 🌈
  • --ffmpeg-args ARGS β€” extra ffmpeg args. go off, add whatever. πŸ’œ

πŸŽ€ SEE ALSO πŸŽ€

convert(1), pdftoppm(1), ffmpeg(1), ctioga2(1)


and that's the whole page, bestie!! this was ct2-make-movie version 0.0, dated February 2014 β€” yes it's a lil vintage, and yes it still ate. now go make a movie, you absolute legend πŸ’–βœ¨πŸŽ¬

πŸ“¦ where this page comes from