collingreen / chronolapse

Chronolapse makes it easy to record screenshots and camera captures on a schedule then combine them into timelapse videos.
MIT License
170 stars 28 forks source link

Windows Explorer Crashes when opening result file #19

Open tikustido73 opened 7 years ago

tikustido73 commented 7 years ago

I tried using the 1.0.7 version of Chronolapse on my Windows 10 PC. After creating a video from the screenshots, I tried opening it, but my Windows Explorer restarted after opening it. I tried right-clicking file and the same thing happened.

Clonkex commented 7 years ago

+1 I get the same thing

collingreen commented 7 years ago

Under the hood, chronolapse simple uses MEncoder to combine the still images into video, so the problem likely lies somewhere in there. At this point, the version that ships with chronolapse is nearly 10 years old (and has plenty of issues that have since been fixed, particularly with large resolutions). Your problem may go away if you get an updated version of mencoder and point chronolapse to that on the video tab instead of the default.

Alternatively, you can use any external program to combine the images into video (mencoder, ffmpeg, virtualdub, etc) - chronolapse was specifically designed to keep each step separate to make it easy to use other tools for each individual step.

Clonkex commented 7 years ago

In the end I just used Advanced Renamer to rename the files as image0001.jpg, image0002.jpg etc. and then ffmpeg to make them into a video, with the following command:

ffmpeg -r 30 -f image2 -s 1920x1080 -i image%04d.png -vcodec libx264 -crf 20 -pix_fmt yuv420p final.mp4

...which I got from this blog post. ffmpeg is a fantastic tool if you can get your head around how it works.

EDIT: Bear in mind if you're running that command from a .bat on Windows (rather than straight from the a cmd window) you'll need to use two percent signs instead of one, i.e. image%%04d.png