-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Timestamp embedded into timelapse video. #585
Comments
You are in luck, as this feature already exists :) Check the rendering profile and look for the text overlay section. There are lots of options there, like font and size selection, alignment, position, and myriad replacement tokens. You can even preview the overlay before you print. Let me know how it goes! |
I LOVE YOU... going to look now :0) |
It worked perfectly, recommend 72 point text for a 1920x1080 timelapse, thank you :0) |
Woot! Fyi, if you are using a raspberry pi, install fontconfig for access to all of the installed fonts. Or you can add your own and have access to whatever you can find online. |
You're a star, is fontconfig an octopi add-in? I was thinking it needed an 80s style digital clock font :0) |
FontConfig can be installed via apt-get like so: Regarding donations, thank you very much! You will find links on the Octolapse tab to Patreon, Paypal and Github (I'm on Github Sponsors too): Donations are not required, but are much appreciated! |
Sent some spons via paypal, thank you, well deserved, top product and top support. It looks like fontconfig is already installed and up to date so all I need to do is get some TTF files over to the pi. xx@xxxxx:~ $ sudo apt install fontconfig |
Thanks! Also, fontconfig must now be installed by default, which is awesome. It used to not be. Let me know if you find a good digital font! |
You're most welcome. I got a digital font from https://www.1001fonts.com/digital-fonts.html Installed the FileZilla 64 bit windows client. Connected to the IP address of the Raspberry PI on port 22 via FileZilla using my Pi username and password. However, I kept getting an access denied so did some more research. |
Hey, I added more formatting options to the 'time elapsed' token. Watch for the next release. Closing this now, thanks for the submission! |
I'd be interested in an analog clock feature. I have seen code for creating an analog clock in python. The code to make the clock does not seem very complicated. Is there a way that a analog clock could be drawn on the frames. The sweep of the minute and hour hand has a nice look to it when a timelapse is playing. I currently sit a small clock within the view of the camera but wish I could experiment with a drawn clock. Is there an existing point I could plug code into to draw on the frames if I wanted to experiment with the idea? |
Let me think about this @bheiland. There may be a way to generalize it, which would be cool 😎 |
I am testing some code outside of the application where I draw a clock on an image. It is very basic at this point, but it is a starting point. If I could just squeeze the code into the right section it would draw the analog clock at the correct spot. Here is the code I came up with for drawing clock on an image. I originally looked at code for drawing a clock for turtle, but wanted to used PIL for compatibility with octolapse. Please check it out. It should easily be able to be plugged into octolapse. There are a few things that are hard coded ( offsets, colors ) etc. These could be interface selectable . Eventually Id like to take the clock face and once drawn, transform to match the bed angle to place clock on bed so it appears that the clock is being projected onto the bed in the image. Here is the code. from PIL import Image, ImageFilter, ImageFont, ImageDraw, ImageEnhance def lineAngleLengthEndpoint(x0,y0,angleDegrees,length): # calculate x/y coordinates of a line at given length and angle
except: |
I'm thinking about adding an event to Octolapse, or something similar. Could be used for any effect. I can provide the images and metadata necessary. I would do this before rendering the video in the preprocessing phase. |
video of analog clock and graphic of analog clock. |
Really nice! Hoping I have some time to work on a universal integration for your code! |
this is just a proof of concept. I sorta shoe horned it into your code. Your code is a bit more advanced than my understanding of it all so I struggled getting it in. Didn't work the first few ways I tried to cleanly put it in. |
Firstly, Octolapse is "the" top notch time lapse feature. Kudos...
Next, I saw lots of people placing analogue clocks inside their enclosures to give a sense of time passing during the capture.
I did this myself with a kitchen timer and a digital clock.
Then figured, this is high end tech... why not have the current date/time stamped on the frames (circa 1995 style)?
That would be very cool with either an analogue (or digital) clock spinning in one of the corners of the video.
I think this would be very cool and negate the need to find somewhere to place a physical clock inside the enclosure.
Presumably the timestamp can be read from the frame capture image file...
Has anyone suggested this before?
The text was updated successfully, but these errors were encountered: