How to make timelapse with Mainsail/Fluidd. Klipper

177 Просмотры
Издатель
Tutorial on how to impletement the timelapse.py script to mooraker/klipper.
I didn't find a lot of info on the web about it, other than the documentation on github, so I thought I would share this one with all makers out there.

-The py script: https://github.com/FrYakaTKoP/moonraker/blob/dev-timelapse/moonraker/components/timelapse.py

-Mainsail OS: https://github.com/raymondh2/MainsailOS/releases

-Fluidd pi: https://github.com/cadriel/FluiddPI

Moonraker config:
[timelapse]
enabled: True
## If this set to False the Gcode macros are ignored and
## the autorender is disabled at the end of the print.
## The idea is to disable the plugin by default and only activate
## it during runtime via the http endpoint if a timelapse is desired.
autorender: False
## If this is set to False, the autorender is disabled at the end of the print.
constant_rate_factor: 10
## The range of the CRF scale is 0–51, where 0 is lossless,
## 23 is the default, and 51 is worst quality possible.
## A lower value generally leads to higher quality, and a
## subjectively sane range is 17–28.
## more info: https://trac.ffmpeg.org/wiki/Encode/H.264
output_framerate: 30
## Output framerate of the generated video
output_path: ~/timelapse/
## Path where the generated video will be saved
frame_path: /tmp/timelapse/
## Path where the temporary frames are saved
time_format_code: %Y%m%d_%H%M
## Manipulates datetime format of the output filename
## see: https://docs.python.org/3/library/datetime.html#strftime-and-strptime-format-codes
snapshoturl: http://localhost:8080/?action=snapshot
## url to your webcamstream
pixelformat: yuv420p
## set pixelformat for output video
## default to yuv420p because eg. yuvj422p will not play on
## on most smartphones or older media players
extraoutputparams: -vf transpose=2,transpose=2
## -filter_complex "[0]trim=0:5[hold];[0][hold]concat[extended];[extended][0]overlay"
## here you can extra output parameters to FFMPEG
## further info: https://ffmpeg.org/ffmpeg.html
## eg rotate video by 180° "-vf transpose=2,transpose=2"


-Printer.cfg (MACROS)
[gcode_macro TIMELAPSE_TAKE_FRAME]
gcode:
{action_call_remote_method("timelapse_newframe")}

[gcode_macro TIMELAPSE_RENDER]
gcode:
{action_call_remote_method("timelapse_render")}
Категория
3Д Печать
Комментариев нет.