Closed aleveilleVE2DTL closed 3 years ago
better with a container...
It looks like there's a typo, which I didn't spot sooner. Edit scripts/timelapse.sh - around line 55 you'll see
SEQUENCE_DIR="${DATE_DIR}/sequencce"
Change that to
SEQUENCE_DIR="${DATE_DIR}/sequence"
and try it again.
still trying to create directory "sequence" under / root directory log2.log .
Cool, I'm glad at least the sequence part is fixed. Thanks for the log, that's helpful. I'm curious as to why timelapse is using the wrong directory.
Can you edit scripts/timelapse.sh and add set -x
on line 2? That'll make the timelapse script run in a tracing mode so we can see exactly what it's doing.
Voila log3.log !
I'm gonna reopen this because I didn't fully fix the issue yet. But progress.
yes, I will be your tester... Tnx all.
I think I see the next problem. After line 70, there are these two lines in an awk script...
printf "ln -s %s '$DIR'/sequence/%04d.'$EXTENSION'\n", $0, a;
printf "ln -s %s '$DIR'/sequence/%04d.'$EXTENSION'\n", $0, a >> "'${TMP}'";
I think that should read
printf "ln -s %s '${SEQUENCE_DIR}'/sequence/%04d.'$EXTENSION'\n", $0, a;
printf "ln -s %s '${SEQUENCE_DIR}'/sequence/%04d.'$EXTENSION'\n", $0, a >> "'${TMP}'";
Let me know if that helps
change it: ls -rt "${DATE_DIR}"/*.${EXTENSION} | gawk 'BEGIN{ a=1 } {
# printf "ln -s %s '$DIR'/sequence/%04d.'$EXTENSION'\n", $0, a >> "'${TMP}'";
printf "ln -s %s '${SEQUENCE_DIR}'/sequence/%04d.'$EXTENSION'\n", $0, a;
printf "ln -s %s '${SEQUENCE_DIR}'/sequence/%04d.'$EXTENSION'\n", $0, a >> "'${TMP}'";
a++;
}' |
and got this trace log4.log
Great. You can remove /sequence
from both of those printf commands and that should help. I'm not near my allsky machine at the moment, so I can't easily test this first.
Sorry for introducing these bugs. I had it working on my Pi but didn't copy the code to Git correctly. The $DIR should be $SEQUENCE_DIR. These lines should be inside the "gawk":
printf "ln -s %s '${SEQUENCE_DIR}'/%04d.'${EXTENSION}'\n", $0, a;
printf "ln -s %s '${SEQUENCE_DIR}'/%04d.'${EXTENSION}'\n", $0, a >> "'${TMP}'";
changed it:
ls -rt "${DATE_DIR}"/*.${EXTENSION} |
gawk 'BEGIN{ a=1 }
{
# printf "ln -s %s '$DIR'/sequence/%04d.'$EXTENSION'\n", $0, a;
# printf "ln -s %s '$DIR'/sequence/%04d.'$EXTENSION'\n", $0, a >> "'${TMP}'";
printf "ln -s %s '${SEQUENCE_DIR}'/%04d.'$EXTENSION'\n", $0, a;
printf "ln -s %s '${SEQUENCE_DIR}'/%04d.'$EXTENSION'\n", $0, a >> "'${TMP}'";
a++;
}' |
bash
and it is working fine, TNX!
}'
++ wc -l
+ NUM_FILES=29
+ '[' 29 -eq 0 ']'
+ echo 'timelapse.sh: Processing 29 images...'
timelapse.sh: Processing 29 images...
+ SCALE=
+ TIMELAPSEWIDTH=0
+ TIMELAPSEHEIGHT=0
+ '[' 0 '!=' 0 ']'
+ OUTPUT_FILE=/home/pi/allsky/images/20211002/allsky-20211002.mp4
+ ffmpeg -y -f image2 -loglevel warning -r 25 -i /home/pi/allsky/images/20211002/sequence/%04d.jpg -vcodec libx264 -b:v 2000k -pix_fmt yuv420p -movflags +faststart /home/pi/allsky/images/20211002/allsky-20211002.mp4
[swscaler @ 0x1749cf0] deprecated pixel format used, make sure you did set range correctly
+ RET=0
+ '[' 0 -ne 0 ']'
+ '[' -z '' ']'
+ rm -rf /sequence
+ echo -en 'timelapse.sh: \033[0;32mTimelapse was created\033[0m\n'
timelapse.sh: Timelapse was created
+ exit 0
Completed
================
If you want to upload the file(s) you just created, execute 'uploadForDay.sh 20211002
================
pi@allSkyCam10:~/allsky $
You're welcome. Thanks for the useful logs that helped us to troubleshoot.
Working OK with keogram and startrail.
Went further when creating a directory /sequence owned by pi. see log below.
First ticket on GitHub! I really want that project works. Very good work everyone.