AllskyTeam / allsky

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

Timelaps creation failed (Rpi + RpiHQ Cam) #343

Closed do4bmw closed 3 years ago

do4bmw commented 3 years ago

Hy , i am new to this project

i habe setup my RPI4 with 4GB with a RpiHQ Camera

Taking pictures works very nice , also the Keogram and Startrail creation is working without any problems

But ! the Timelaps dont work

it always ends with this error, after around 40-50frames

Press [q] to stop, [?] for help [swscaler @ 0x4eb8c0] deprecated pixel format used, make sure you did set range correctly [libx264 @ 0x4e0430] using cpu capabilities: ARMv6 NEON [libx264 @ 0x4e0430] profile High, level 6.0 [libx264 @ 0x4e0430] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=2000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'images/20210329/allsky-20210329.mp4': Metadata: encoder : Lavf58.20.100 Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 4056x3040, q=-1--1, 2000 kb/s, 25 fps, 12800 tbn, 25 tbc Metadata: encoder : Lavc58.35.100 libx264 Side data: cpb: bitrate max/min/avg: 0/0/2000000 buffer size: 0 vbv_delay: -1 x264 [error]: malloc of size 38600544 failedme=00:00:00.00 bitrate=N/A speed= 0x Video encoding failed [libx264 @ 0x4e0430] final ratefactor: 33.59 Conversion failed!

do4bmw commented 3 years ago

nvm

found the Solution https://github.com/thomasjacquin/allsky/issues/249#issuecomment-768944018

gereta commented 3 years ago

I had the same issue a week ago and upgraded to RPi4 thinking that it is caused (according error) to lack of memory - same error. There is x264 codec complexity level limitation and current code can not process larger images. The max resolution for the highest level (5.2) is 4,096×2,304. Another solution would be use other encoder - like HEVC or so... Max Resolution for HEVC is currently 8,192x4,320 But who needs to generate such a huge resolution timelapse from allsky cam - so I end up too with resampling to half of cam resolution.

do4bmw commented 3 years ago

changing resolution helpd