Coder Social home page Coder Social logo

Comments (7)

thomasjacquin avatar thomasjacquin commented on May 21, 2024

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.

stansley avatar stansley commented on May 21, 2024

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.

thomasjacquin avatar thomasjacquin commented on May 21, 2024

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.

stansley avatar stansley commented on May 21, 2024

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.

thomasjacquin avatar thomasjacquin commented on May 21, 2024

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.

stansley avatar stansley commented on May 21, 2024

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.

thomasjacquin avatar thomasjacquin commented on May 21, 2024

Excellent! Keep me posted if it happens again. Nice video of the milky way. Pretty busy aerial traffic too!

from allsky.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.