mediamonks / display-ads-recorder

The Display Ads Recorder is a command line tool meant to record display ads and output these to separate formats, like video, jpg and gif (animated).
2 stars 6 forks source link

adds cli commands, allows to run backup creation in parallel with chunks #7

Closed mm-vasyl closed 11 months ago

mm-vasyl commented 1 year ago

CLI options: -c : define chunk size (10 by default). allows you to run as many chromiums in parallel as you need (can speed up recordings) -t : set the default target dir for recording -b : allows running backup creation with no need to answer the question (most use case) -a : allows you to skip the question with ad selection if you just need to record all ads

mm-paulie commented 1 year ago

Approved! Would be great if somebody else could take a look. Aaaand we need to update the documentation once this has been implemented with all the nice cli vars that we can add. To give an example

If you want to create backup jpgs and video mp4's "recorder": "display-ads-recorder --jpg --mp4"

If you want to create backup jpgs with 40kb max quality, gifs and video mp4's in fps 60 and run the gifs once: "recorder": "display-ads-recorder --jpg 40 --gif once --mp4 --fps 60"

"recorder": "display-ads-recorder --jpg 40 --chunkSize 15" It will run with 15 chunks for jpg/mp4/gif instead of 10 default. this can speed up the process since you are using more cores at the same time if that is possible with your pc