-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make it easier to reprocess images on other machines #478
Conversation
`rm -rf /tmp/nonexistent` doesn't fail on nonexistent files, so unconditionally nuke the sequence directory ``` $ rm -rf /tmp/nonexistent && echo that worked that worked ``` provide some default values for the framerate and encoder, just in case you don't have them in your configs.
Since $ENCODER isn't used in timelapse.sh, we should probably change this line: Also, to be consistent, we should add Further, change: This will keep all the default settings that may not be in config.sh at the top of the file together. |
Whoops. forgot to push that commit. Anyway, you see where I'm going with this ... Ideally I want to be able to run timelapse.sh on my workstation and offload the movie making to CUDA. |
Understand. By putting all the settings that would normally be in config.sh at the top, it makes it clearer what you'd need on your workstation. |
Now this sort of thing works: ``` ~$ env FFLOG=info VCODEC=h264_nvenc ~/allsky/scripts/timelapse.sh 20210913 /nas/home/allsky/20210913/ timelapse.sh: Creating symlinks to generate timelapse ```
Makes tuning encoder settings a little easier by keeping the sequence. Not meant for general consumption which is why it's only documented in a comment.
``` ~/allsky$ env VCODEC=h264_nvenc ~/allsky/scripts/timelapse.sh 20210913 /nas/homes/allsky/20210913/ /home/ckuethe/allsky/scripts/timelapse.sh: line 7: /home/ckuethe/allsky/config.sh: No such file or directory jq: error: Could not open file : No such file or directory timelapse.sh: file EXTENSION not found in configuration, guessing jpg timelapse.sh: Creating symlinks to generate timelapse timelapse.sh: Created 6340 links total ... ```
Chris, in timelapse.sh, should the line |
Chris, it would be nice if timelapse.sh had some comments at the top saying there is code added to allow it to run on a different computer from the Pi, and then describe what the environment needs to include (variables, etc.). Things like guessing the EXTENSION aren't needed on the Pi since it's in filename.sh. Also, in timelapse.sh the statement |
As far as I can tell, I'm the only person ever who wanted to reprocess frames into new videos on a much more powerful machine. The default behavior of Remember, what I'm aiming to simplify here is the workflow of checking out allsky from git, then being able to run something like:
Note that I'm not specifying extension or frame rate, nor have I edited config.sh... That's why I'm guessing the extension if unspecified. Really, I'd like to rewrite most of the support scripts in python. It takes 25-30 to start allsky on my pi due to the loop that computes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thomas,
These changes look good to me and are working on my Pi.
Chris, |
rm -rf /tmp/nonexistent
doesn't fail on nonexistent files, so unconditionally nuke the sequence directoryprovide some default values for the framerate and encoder, just in case you don't have them in your configs.