#Timelapse Recording not getting saved

1 messages Β· Page 1 of 1 (latest)

humble bluff
#

my Recordings were going fine and something went off suddenly am getting this error

entries

printer.cfg

# timelapse.cfg
[include timelapse.cfg]

crowsnest.cfg

[cam 1]
mode:mjpg                         # ustreamer - Provides MJPG and snapshots. (All devices)
                                        # camera-streamer - Provides WebRTC, MJPG and snapshots. (only RPiOS + RPi 0/1/2/3/4)
enable_rtsp: false                      # If camera-streamer is used, this also enables usage of an RTSP server
#rtsp_port: 8554                         # Set different ports for each device!
port: 8080                              # HTTP/MJPG stream/snapshot port
device: /dev/video0                     # See log for available devices
resolution: 1920x1080                     # <width>x<height> format
max_fps: 30                             # If hardware supports it, it will be forced, otherwise ignored/coerced.
#custom_flags:                          # You can run the stream services with custom flags.
v4l2ctl: focus_automatic_continuous=0,focus_absolute=30                             # Add v4l2-ctl parameters to setup your camera, see log for your camera capabilities.

moonraker.cfg

[timelapse]
output_path: ~/printer_data/timelapse/
frame_path: /tmp/timelapse/printer
ffmpeg_binary_path: /usr/bin/ffmpeg
restive helmBOT
#

Ahoi @humble bluff!
Welcome to the Mainsail support-forum!
There is a problem with the tags you selected for this post. Please fix them to fit your question.
For further information on tags please check the readme: https://discord.com/channels/758059413700345988/1320321898009071616

To change the tags of this post:

  1. Open the ... menu on the top right corner of this post.
  2. Find Edit tags
  3. Select the checkbox of the correct tags.

Usually you just need to select one tag!
If you still have no idea which one to choose, feel free to ask here.

Note: This is an automated message

Thanks for your cooperation!

#

Ahoi @humble bluff!
It looks like you did not provide all the necessary information we need to help you.
Please upload your logfiles and a detailed description of your problem.
For further information see: https://docs.mainsail.xyz/faq/getting-help/discord#provide-information
Note: We only accept .log and .txt files as log files.
This is an automated message

We are glad to help and chat with you on our Community Discord, but if you need help and want the best support possible you should, follow a few simple rules:

humble bluff
icy hound
#

What does your issue have to do with Moonraker?

#

Also send a screenshot of the cam settings in Mainsail

humble bluff
humble bluff
icy hound
icy hound
#

But the first one tells you the problem

humble bluff
icy hound
#

Look next to the edit icon on the webcams settings panel. You see a light bulb. Click it

#

The first one tells you "No webcam available". This hints that you don't have the camera enabled

#

That means the timelapse module has no idea what it should do, as it doesn't have a snapshot url to take the snapshots from

icy hound
humble bluff
#

but here webcam works

icy hound
#

The webcam works, but you have to enable it on hte previous screen

#

On this screen, the light bulb needs to be "activated"

#

After that's enabled, you can select the cam here

humble bluff
#

is this ok now ?

icy hound
#

nope

#

The light bulb is still greyed out

icy hound
# humble bluff

Btw you set max_fps: 30 in crowsnest, but set 60 target fps in the settings. That's kinda useless. Make them match. Your cam most likely cannot achieve 60, so just put the target fps down to 30

humble bluff
#

ohhh sorry sorry i never touched these settings

#

thought that only is enoigh

#

finally its here

icy hound
#

Now it should work

humble bluff
#

is there any quick way to test without a complete print ?

icy hound
#

Manually run the macros

#

Run a few TIMELAPSE_TAKE_FRAME and then TIMELAPSE_RENDER

humble bluff
#

timelapse_render still gave this

icy hound
#

Maybe not enough frames?

#

Can you check the timelapse page? I think there should be a button and a preview of the images

humble bluff
icy hound
#

Send your moonraker.log again, after you executed TIMELAPSE_TAKE_FRAME 20 times and then run TIMELAPSE_RENDER

humble bluff
icy hound
#

Please don't ping me

icy hound
humble bluff
humble bluff
icy hound
#
2025-05-26 21:52:26,285 [shell_command.py:_check_proc_success()] - Command (wget http://localhost/webcam/?action=snapshot -O /tmp/timelapse/frame000009.jpg) cancelled
2025-05-26 21:52:26,286 [timelapse.py:newframe()] - getting newframe failed: wget http://localhost/webcam/?action=snapshot -O /tmp/timelapse/frame000009.jpg```
#

Can you run wget http://localhost/webcam/?action=snapshot -O /tmp/timelapse/frame000009.jpg in ssh?

humble bluff
#
 wget http://localhost/webcam/?action=snapshot -O /tmp/timelapse/frame000009.jpg
--2025-05-26 22:05:27--  http://localhost/webcam/?action=snapshot
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:80... connected.
HTTP request sent, awaiting response... No data received.
Retrying.

--2025-05-26 22:05:28--  (try: 2)  http://localhost/webcam/?action=snapshot
Connecting to localhost (localhost)|::1|:80... connected.
HTTP request sent, awaiting response... No data received.
Retrying.

--2025-05-26 22:05:30--  (try: 3)  http://localhost/webcam/?action=snapshot
Connecting to localhost (localhost)|::1|:80... connected.
HTTP request sent, awaiting response... No data received.
Retrying.

--2025-05-26 22:05:33--  (try: 4)  http://localhost/webcam/?action=snapshot
Connecting to localhost (localhost)|::1|:80... connected.
HTTP request sent, awaiting response... No data received.
Retrying.

--2025-05-26 22:05:37--  (try: 5)  http://localhost/webcam/?action=snapshot
Connecting to localhost (localhost)|::1|:80... connected.
HTTP request sent, awaiting response... No data received.
Retrying.
icy hound
#

Set log_level: debug and delete_log: true in your crowsnest.conf. Then make sure you don't have the dashboard or webcam panel open and run the command again. Then send the crowsnest.log

humble bluff
#

i closed the dashboard before running the command

icy hound
#

Where is the log?

#

I don't need a screenshot of your config and a screenshot of an already known error

humble bluff
icy hound
#

Please read my message again: #1376574669624315904 message

#

Then send the crowsnest.log

humble bluff
icy hound
#

I cannot see a single request

#

Open http://<ip.of.cam.host>/webcam

humble bluff
#

this ip/webcam shows

icy hound
#

πŸ€”

#

Then try wget http://<ip.of.cam.host>/webcam/?action=snapshot -O /tmp/timelapse/frame000009.jpg

humble bluff
#

this finally gave a good output πŸ˜„

wget http://192.168.50.110:6969/webcam/?action=snapshot -O /tmp/timelapse/frame000009.jpg
--2025-05-26 22:27:29--  http://192.168.50.110:6969/webcam/?action=snapshot
Connecting to 192.168.50.110:6969... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [image/jpeg]
Saving to: β€˜/tmp/timelapse/frame000009.jpg’

/tmp/timelapse/frame000009.jpg            [ <=>                                                                   ] 287.99K  --.-KB/s    in 0.01s

2025-05-26 22:27:29 (29.2 MB/s) - β€˜/tmp/timelapse/frame000009.jpg’ saved [294897]
icy hound
#

Wait, why did you type http://192.168.50.110:6969/webcam?

#

That's the problem ofc

#

http://192.168.50.110/webcam is different to http://192.168.50.110:6969/webcam

humble bluff
#

my klipper is running on this port

icy hound
#

Your klipper?

#

Klipper has no web facing ports

#

You mean Mainsail ig?

humble bluff
#

yes sorry mainsail

icy hound
humble bluff
icy hound
#

Then just use http://192.168.50.110:6969/webcam in Mainsail cam settings, instead of /webcam

humble bluff
#

is this correct

http://192.168.50.110:6969/webcam/?action=stream
icy hound
#

Yes

humble bluff
#

still same error

icy hound
#

Did you do the same for the snapshot?

humble bluff
#

yes for both

#
http://192.168.50.110:6969/webcam/?action=snapshot
icy hound
#

Then I need again a Moonraker and Crowsnest log

humble bluff
icy hound
#

The frames download now at least

#

Now run this: /usr/bin/ffmpeg -r 30 -i '/tmp/timelapse/frame%6d.jpg' -threads 2 -g 5 -crf 23 -vcodec libx264 -pix_fmt yuv420p -an '/tmp/timelapse/timelapse__20250526_2251.mp4' -y

#

Also make sure that /tmp/timelapse actually contains correct images, after you have run TIMELAPSE_TAKE_FRAME

humble bluff
#
[image2 @ 0x55b79ef230] Could not find codec parameters for stream 0 (Video: mjpeg, none(bt470bg/unknown/unknown)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, image2, from '/tmp/timelapse/frame%6d.jpg':
  Duration: 00:00:00.72, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: mjpeg, none(bt470bg/unknown/unknown), 25 tbr, 25 tbn, 25 tbc
Output #0, mp4, to '/tmp/timelapse/timelapse__20250526_2251.mp4':
Output file #0 does not contain any stream

you think issue is with ffmpeg ?

icy hound
#

Might be

#

I'm curious about your setup

#

This should be MainsailOS, but your Mainsail is running on port 6969?

#

Why did you change it? Did you change anything else?

#

Maybe an inplace upgrade do Bookworm or similar?

humble bluff
humble bluff
icy hound
humble bluff
#

will take another 5 mins to finally see if it renders the video

icy hound
#

It most likely won't

humble bluff
#

wow it finally did πŸ˜„

icy hound
#

Oh lol

#

weird that it failed during manual execution πŸ€”