AllskyTeam / allsky

A Raspberry Pi operated Wireless Allsky Camera
MIT License
1.15k stars 180 forks source link

Timelapse x264 error #143

Closed Skippyinspace closed 4 years ago

Skippyinspace commented 4 years ago

My Pi 3B+ isnt generating a timelapse. (will it is but its 0 bytes)

From manually running a script I get the following

x264 [error]: malloc of size 25549360 failed Video encoding failed [libx264 @ 0x6c41c0] final ratefactor: 31.76 Conversion failed!

thomasjacquin commented 4 years ago

You have a memory allocation error (malloc). That means the conversion process needs more memory than is physically available on the Pi. This happens when using a camera with a large sensor. Individual images are large (2000 or 3000px) and the Raspberry Pi can't allocate enough memory.

One solution is to bin your images or resize them before timelapse. The other option is to use a Raspberry Pi 4 which has up to 4GB of RAM.

Skippyinspace commented 4 years ago

thanks

how do i bin or resize the images and which file do i need to edit.

sorry a bit thick with this.

ian

On Thu, 12 Dec 2019, 20:50 Thomas Jacquin, notifications@github.com wrote:

You have a memory allocation error (malloc). That means the conversion process needs more memory than is physically available on the Pi. This happens when using a camera with a large sensor. Individual images are large (2000 or 3000px) and the Raspberry Pi can't allocate enough memory.

One solution is to bin your images or resize them before timelapse. The other option is to use a Raspberry Pi 4 which has up to 4GB of RAM.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/thomasjacquin/allsky/issues/143?email_source=notifications&email_token=AOAZSODCI6MY2TD3NVQVIH3QYKPYNA5CNFSM4J2COXD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGX7TTQ#issuecomment-565180878, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOAZSODXKCXCA3JM7HJIYXDQYKPYNANCNFSM4J2COXDQ .

thomasjacquin commented 4 years ago

There's a setting in Camera settings called binning. Try using 2 instead of 1.

Skippyinspace commented 4 years ago

now im a real idiot I cant find camera settings

On Thu, 12 Dec 2019, 21:02 Thomas Jacquin, notifications@github.com wrote:

There's a setting in Camera settings called binning. Try using 2 instead of 1.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/thomasjacquin/allsky/issues/143?email_source=notifications&email_token=AOAZSODZG6PD7NXAZGWY6EDQYKRF5A5CNFSM4J2COXD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGYAW7Q#issuecomment-565185406, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOAZSOF7JTVD5RX5N7YFST3QYKRF5ANCNFSM4J2COXDQ .

thomasjacquin commented 4 years ago

camera settings

Skippyinspace commented 4 years ago

Ok the Gui that i cant get to load, have changed the php etc.

Think im going to do a full reinstall over the weekend.

I take it that the pi noir camera isnt part of the problem

Thanks for your help

On Thu, 12 Dec 2019, 22:23 Thomas Jacquin, notifications@github.com wrote:

[image: camera settings] https://user-images.githubusercontent.com/3053094/70753998-f8c7f380-1cea-11ea-9936-3164093659fb.jpeg

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/thomasjacquin/allsky/issues/143?email_source=notifications&email_token=AOAZSOEUETOYEGHLZL2ZWC3QYK2XNA5CNFSM4J2COXD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGYHWPI#issuecomment-565214013, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOAZSODITEZETUE7CBN43K3QYK2XNANCNFSM4J2COXDQ .

Skippyinspace commented 4 years ago

bought a pi 4