Capturing Time Laps without using SD card
 
Notifications
Clear all

Capturing Time Laps without using SD card  

  RSS
Armand
(@armand)
Trusted Member
Capturing Time Laps without using SD card

Hi;
Well now if you do not want to use the SD card in the camera to capture your video , you can use a windows or linux networked pc or a raspberry PI to capture the stream using ffmpeg 

once ffmpeg is installed , you can can use :
ffmpeg -rtsp_transport tcp -i rtsp://:554/live  -vf "fps=1/5" -t 01:00:00 -qscale:v 2 timelapse_%03d.jpg

fps=1/5: Capture 1 frame every 5 seconds (so adjust this accordingly)
-t 01:00:00: Capture duration (so adjust this accordingly)
-qscale:v 2: High quality

once done then you can compile the jpegs into a video
ffmpeg -framerate 24 -i timelapse_%03d.jpg -c:v libx264 -pix_fmt yuv420p timelapse.mp4

hope this helps anyone out there
Happy Printing  😏 

 

Posted : 02/07/2025 7:30 pm
4 people liked
LarGriff
(@largriff)
Reputable Member
RE: Capturing Time Laps without using SD card

Don’t you need the camera’s IP address?

Posted by: @armand

Hi;
Well now if you do not want to use the SD card in the camera to capture your video , you can use a windows or linux networked pc or a raspberry PI to capture the stream using ffmpeg 

once ffmpeg is installed , you can can use :
ffmpeg -rtsp_transport tcp -i rtsp://<ipaddress>:554/live  -vf "fps=1/5" -t 01:00:00 -qscale:v 2 timelapse_%03d.jpg

fps=1/5: Capture 1 frame every 5 seconds (so adjust this accordingly)
-t 01:00:00: Capture duration (so adjust this accordingly)
-qscale:v 2: High quality

once done then you can compile the jpegs into a video
ffmpeg -framerate 24 -i timelapse_%03d.jpg -c:v libx264 -pix_fmt yuv420p timelapse.mp4

hope this helps anyone out there
Happy Printing  😏 

 

 

MK4S/MMU3

Posted : 04/07/2025 2:07 pm
1 people liked
Armand
(@armand)
Trusted Member
Topic starter answered:
RE: Capturing Time Laps without using SD card

Hi

   You are correct. Seems the original post threw away the <Camera IP address> that was between the gt and lt signs :
ffmpeg -rtsp_transport tcp -i rtsp://<Camera IP address>:554/live  -vf "fps=1/5" -t 01:00:00 -qscale:v 2 timelapse_%03d.jpg

Posted : 04/07/2025 2:19 pm
1 people liked
Henryhbk
(@henryhbk)
Estimable Member
RE: Capturing Time Laps without using SD card

What would be cool is since the camera and printer don't speak with each other (why didn't Prusa put a set of terminals on it to allow the buddy board to trigger the camera, like you can do with a dSLR??? Anyway, since we are left with a random timed Timelapse since Murphy's law is in play the head is going to inevitably be in front of the camera when it picks that frame (sigh) plus who doesn't love the head flinging around at supersonic speeds on video, if we could do some sort of OpenCV to pick the moment the head is sitting in the same location to freeze it frame by frame, like the first frame after 5s where the x-axis is all the way to the left, then you could simply add a G0X0 to every layer in prusaslicer and use something like OpenCV to snag the frame out, I wonder if that might work? Might need to put some recognizable shape on the head to use OpenCV (one huge advantage is you could in theory do this in post-processing?). Hmmm, maybe I will do that as a side project?

Posted by: @armand

Hi;
Well now if you do not want to use the SD card in the camera to capture your video , you can use a windows or linux networked pc or a raspberry PI to capture the stream using ffmpeg 

once ffmpeg is installed , you can can use :
ffmpeg -rtsp_transport tcp -i rtsp://:554/live  -vf "fps=1/5" -t 01:00:00 -qscale:v 2 timelapse_%03d.jpg

fps=1/5: Capture 1 frame every 5 seconds (so adjust this accordingly)
-t 01:00:00: Capture duration (so adjust this accordingly)
-qscale:v 2: High quality

once done then you can compile the jpegs into a video
ffmpeg -framerate 24 -i timelapse_%03d.jpg -c:v libx264 -pix_fmt yuv420p timelapse.mp4

hope this helps anyone out there
Happy Printing  😏 

 

 

Posted : 03/08/2025 2:39 pm
1 people liked
Share: