robotika / osgar

Open Source Garden (Autonomous) Robot
MIT License
13 stars 11 forks source link

Add option --duration also to base logger #997

Closed m3d closed 1 month ago

m3d commented 1 month ago

Add the same --duration option also to osgar.logger (next to osgar.record and osgar.replay). The code was already there (needed for replay), so now it is just public. Motivation is creation H264 video for YouTube from OAK-D camera where interesting is only the first part. An example:

python -m osgar.logger /data/pat/2024_05_18/pat-go-314-240518_082742.log --stream oak.color --raw --duration 300 > roro24-pat-1st-round.h264

was used to generate https://youtu.be/UKBNOBJEYZU