OctoPi (Octoprint) time lapse quality issues
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?
I would say it's not a good group for such question. RaspberryPI group is even better than 3d printing
What does encoding at 5000K mean? Sounds like color temperature to me, which (unlikely) might be one cause of blockyness.
That bitrate is pretty low, which might explain the blockiness (is that a word?).
From YouTube's upload guidelines, 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 is a nice resource for producing videos from image sequences in ffmpeg.
P.S. Alternatively, if you prefer a lightweight video tool with a GUI, you could use ImageJ.
There's a new timelapse plugin called 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:
to this 6.8MB file from octolapse:
Note that these are the SAME PRINT JOB, as I had both tools recording at the same time.