mirdaki / theforce

A Star Wars themed programming language
MIT License
22 stars 4 forks source link

Compiling optionally creates a video compliation of the quotes from the movie #45

Open mirdaki opened 1 year ago

mirdaki commented 1 year ago

Not quite sure how to do it, but it'd be really fun to have a video (or maybe the metadata to build a video) that would combine clips that contain the quotes into a playable video in the order the program is execute or just parsed.

Forgind commented 1 year ago

If anyone wants to work on this, I put a little starter code in #43.

It looks like ffpmeg should do the trick nicely. Here's some documentation: https://trac.ffmpeg.org/wiki/Concatenate

So then you'd have to gather all the relevant video clips and put them into a folder accessible to the console app. Hardcode their relative paths in order, then in the relevant if clause, create a list of the clips in order. Execute the concatenation command line they provided (programmatically, ideally) to create the results, passing it the output file path.