<p>There's a new timelapse plugin called <a href="https://github.com/FormerLurker/Octolapse" rel="nofollow noreferrer">octolapse</a> that may help. One of the things I noticed with the default timelapses is that lots of things change from image to image, which results in HUGE amounts of mpeg artifacts as it has to constantly redraw large parts of the screen. With octolapse and it's stabilized images the change from image to image is very minimal... mostly just the new layer. The reduction of how much stuff is moving means the same, or even lower, encoded bitrate produces far superior movies.</p>

<p>Compare this 11.1 MB file from the default timelapse tool:
<a href="https://cabbey.smugmug.com/Fun/3D-Printing/i-9DrS42n/A" rel="nofollow noreferrer">https://cabbey.smugmug.com/Fun/3D-Printing/i-9DrS42n/A</a></p>

<p>to this 6.8MB file from octolapse:
<a href="https://cabbey.smugmug.com/Fun/3D-Printing/i-p3GvvhH/A" rel="nofollow noreferrer">https://cabbey.smugmug.com/Fun/3D-Printing/i-p3GvvhH/A</a></p>

<p>Note that these are the SAME PRINT JOB, as I had both tools recording at the same time.</p>

CC BY-SA 4.0
2018-06-09T10:19:36.597Z
Excellent comparison! Octolapse clearly produces a far better stable video, thanks for sharing your experience. My camera is positioned on the bed, I wonder if the impact is the same.
0scar
CC BY-SA 4.0
2018-06-08T21:16:37.853Z
2018-06-08T21:16:37.853Z
cabbey
<p>That bitrate is pretty low, which might explain the blockiness (is that a word?).</p>

<p>From <a href="https://support.google.com/youtube/answer/1722171?hl=en" rel="nofollow">YouTube's upload guidelines</a>, you are encoding at the minimum recommended bitrate for standard 720P video. Maybe you should boost to 7500K (7.5 Mbps) and see if that helps.</p>

<p>Also, it appears that Octopi is merely calling ffmpeg locally and returning the video. The encoding that is being used might be resulting in blockiness. If you have access to the raw photos, you could just dump them into a directory on another machine and generate a video using a less-lossy video codec. Of course, this would only work if the photos you are taking are high quality. Assuming that they are, <a href="http://www.raspberrypi-spy.co.uk/2013/05/capturing-hd-video-with-the-pi-camera-module/" rel="nofollow">here</a> is a nice resource for producing videos from image sequences in ffmpeg.</p>

<p>Good luck!</p>

<p>P.S. Alternatively, if you prefer a lightweight video tool with a GUI, you could use <a href="https://imagej.nih.gov/ij/" rel="nofollow">ImageJ</a>.</p>

CC BY-SA 3.0
2016-06-14T16:44:53.120Z
2016-06-14T16:44:53.120Z
Jason King
<p>I'm trying to squeeze a little better quality out of my time lapses generated by OctoPrint.</p>

<p>I'm using the Raspberry Pi Camera Module V2 with a Pi 3. I've already edited the Octopi config to get 720p resolution, but the encoding during time lapse rendering is horrific. Blocky as hell.</p>

<p>Right now the encoding is set up at 5000k.
What am I doing wrong here?</p>

CC BY-SA 3.0
2016-05-03T06:22:36.523Z
I would say it's not a good group for such question. [RaspberryPI](http://raspberrypi.stackexchange.com) group is even better than 3d printing
darth pixel
CC BY-SA 3.0
2016-05-04T08:25:49.600Z
What does encoding at 5000K mean? Sounds like color temperature to me, which (unlikely) might be one cause of blockyness.
kamuro
CC BY-SA 3.0
2016-05-04T21:07:16.853Z
@kamuro 5000k is the bit rate of the encoded video.
nscan
CC BY-SA 3.0
2016-05-06T08:55:27.290Z
being curious: is K a unit I don't know or is some b/s for bits/second missing?
kamuro
CC BY-SA 3.0
2016-05-09T01:11:53.597Z
I think the bits/second is missing.
nscan
<octoprint><raspberry-pi>
OctoPi (Octoprint) time lapse quality issues
Joe JMC IT
# OctoPi (Octoprint) time lapse quality issues

(Asked by: username_0 on 2016-05-02)

I'm trying to squeeze a little better quality out of my time lapses generated by OctoPrint.

I'm using the Raspberry Pi Camera Module V2 with a Pi 3. I've already edited the Octopi config to get 720p resolution, but the encoding during time lapse rendering is horrific. Blocky as hell.

Right now the encoding is set up at 5000k.
What am I doing wrong here?

**Tags:** octoprint, raspberry-pi

> **Comments:**
> **username_1**: I would say it's not a good group for such question. [RaspberryPI](http://raspberrypi.stackexchange.com) group is even better than 3d printing  
> **username_2**: What does encoding at 5000K mean? Sounds like color temperature to me, which (unlikely) might be one cause of blockyness.  
> **username_3**: @username_2 5000k is the bit rate of the encoded video.  
> **username_2**: being curious: is K a unit I don't know or is some b/s for bits/second missing?  
> **username_3**: I think the bits/second is missing.  

---

## 2 answers

### Answer by username_4 on 2018-06-08. Score: 3

There's a new timelapse plugin called [octolapse](https://github.com/FormerLurker/Octolapse) that may help. One of the things I noticed with the default timelapses is that lots of things change from image to image, which results in HUGE amounts of mpeg artifacts as it has to constantly redraw large parts of the screen. With octolapse and it's stabilized images the change from image to image is very minimal... mostly just the new layer. The reduction of how much stuff is moving means the same, or even lower, encoded bitrate produces far superior movies.

Compare this 11.1 MB file from the default timelapse tool:
<https://username_4.smugmug.com/Fun/3D-Printing/i-9DrS42n/A>

to this 6.8MB file from octolapse:
<https://username_4.smugmug.com/Fun/3D-Printing/i-p3GvvhH/A>

Note that these are the SAME PRINT JOB, as I had both tools recording at the same time.

> **Comments:**
> **username_5**: Excellent comparison! Octolapse clearly produces a far better stable video, thanks for sharing your experience. My camera is positioned on the bed, I wonder if the impact is the same.  

---

### Answer by username_6 on 2016-06-14. Score: 3

That bitrate is pretty low, which might explain the blockiness (is that a word?).

From [YouTube's upload guidelines](https://support.google.com/youtube/answer/1722171?hl=en), you are encoding at the minimum recommended bitrate for standard 720P video. Maybe you should boost to 7500K (7.5 Mbps) and see if that helps.

Also, it appears that Octopi is merely calling ffmpeg locally and returning the video. The encoding that is being used might be resulting in blockiness. If you have access to the raw photos, you could just dump them into a directory on another machine and generate a video using a less-lossy video codec. Of course, this would only work if the photos you are taking are high quality. Assuming that they are, [here](http://www.raspberrypi-spy.co.uk/2013/05/capturing-hd-video-with-the-pi-camera-module/) is a nice resource for producing videos from image sequences in ffmpeg.

Good luck!

P.S. Alternatively, if you prefer a lightweight video tool with a GUI, you could use [ImageJ](https://imagej.nih.gov/ij/).


---

