Comments (7)
I think this may be the issue:
'images/20180805/startrails.jpg' -> 'images/20180805/1966.jpg'
It is including the startrails image into the video. I'm not sure that's the issue but can you try moving the startrails.jpg file somewhere else and regenerate the video?
from allsky.
Thanks Thomas -- good catch! With that file removed, I still get corrupt MP4s though. Running timelapse.sh manually on the same images as above, it gets some way into the process, but drops out on frame 317 with Illegal Instruction. I'm looking to see if there is an update to avconv, perhaps that can help.
...
`frame= 315 fps=1.2 q=33.0 size= 2451kB time=00:00:10.48 bitrate=1916.2kbits/frame= 317 fps=1.2 q=33.0 size= 2480kB time=00:00:10.56 bitrate=1923.6kbits/./timelapse.sh: line 29: 7493 Illegal instruction avconv -y -f image2 -r 25 -i images/$1/%04d.$EXTENSION -vcodec libx264 -b:v 2000k -pix_fmt yuv420p images/$1/allsky-$1.mp4
- Timelapse was created
pi@allsky:~/allsky/scripts $
`
from allsky.
Is it always breaking on frame 317? If so, make sure the file is not corrupted.
Also, what ASI camera model are you using? Large sensors produce big images and there's a memory limit that avconv will reach if the output video is getting too big.
from allsky.
It's not always that frame -- re-running results in failures at different frames. Sometimes the error is illegal instruction, and sometimes segmentation fault.
Camera is ZWO ASI290MM-mini, so 1936 × 1096 pixels. Files are 700-900kB or so. If those are too big, do you know a good way to downsize the files as a batch, or is it possible to alter the parameters being passed to avconv? The man page for the latter is a little overwhelming...
from allsky.
The first thing you could do is to run the top
command while the timelapse is generating and watch the memory usage. That may help to see if it's failing because of memory limits.
To reduce the files on the fly (overwrite them) you can use the mogrify
function of image magick.
https://www.imagemagick.org/script/mogrify.php
in scripts/timelapse.sh, on line 24, you can add something like that:
magick mogrify -resize 50% images/$1/*.$EXTENSION
I haven't tested it but it should resize your images to 50% of their width and height (4 times smaller) before trying to run them in avconv. You can of course use a different percentage.
from allsky.
Thanks so much Thomas -- very helpful! Well guess what, bizarrely, after another run remotely (I've been operating both remotely and locally through all previous attempts with the same results), with a manual ./scripts/timelapse in one PuTTY window, and top in another, and after a new error I've not seen before, IT IS NOW WORKING with no errors at all!
Top is reporting bouncing around 30kB mid-run. And steady. After never seeing it get through more than a few 10s of frames, and once maybe 150, I'm now seeing full runs through ~2000 frames of full-size 2Mpx images from the ASI290MM-mini. Great! Thanks again! Not sure what we can put this down to... I'll report back if it reoccurs.
Example result: https://1drv.ms/v/s!Av6xS2tSviSBicxVXkRBqG64eaYHDQ
from allsky.
Excellent! Keep me posted if it happens again. Nice video of the milky way. Pretty busy aerial traffic too!
from allsky.
Related Issues (20)
- [BUG] Misc. minor bug fixes
- Overlays vanished at random time and have not come back HOT 3
- Crop user interface
- [BUG] allsky service not starting up HOT 3
- QUESTION HOT 1
- [DOCUMENTATION] startrails, keograms, and timelapse pages should say when they are created
- [DOCUMENTATION] create overlay of Allsky
- [BUG] Tmelapse not viewable on IOS/iPadOS Devices HOT 1
- [QUESTION] How to change WiFi network?? HOT 2
- WebUI needs to look for all adapters HOT 1
- [ENHANCEMENT] Add music to generated videos HOT 4
- [BUG] Pi HQ Cam binned causes keogram and startrails generation to fail HOT 5
- Move module debug data from flow to new file
- To prevent corruption of the module flow files we need to move the debug information into a new file
- [BUG] Improve error handling of failed font uploads
- [BUG] Extra space in link HOT 1
- [ERROR] Fresh install. Python Dependencies [photutils] HOT 10
- Transition Auto Stretch Amount HOT 3
- [REQUEST] Support imx296 HOT 5
- [BUG] Maybe its a BUG Version: v2023.05.01_02 installed but [URL]/allsky gives 404 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from allsky.