Skip to content
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

[BUG] --latest doesn't work when the target is not in the same directory as the output file #691

Closed
sroller opened this issue Jun 30, 2024 · 2 comments

Comments

@sroller
Copy link

sroller commented Jun 30, 2024

Describe the bug
I'm using rpicam-still to create a timelapse.

rpicam-still -v 2 --nopreview --mode 3280:2464:10 --width 1920 --height 1080 --timelapse 5000 --timeout 15000 --latest /root/temp/latest/last.jpg' -o /root/temp/tl%06d.jpg

I'd like to have the last picture linked to a directory within my web server.
When I use the parameter "--latest" and specify are target outside of the output directory then the created link fails.
The link for the first file of the series is not correct and therefore all further attempts to remove it fail as well.

I believe the the change has to happen in line 69 of rpicam_still.cpp. The call to symlink() needs to include the path of the target relative to the file.

That's how it worked with raspistill.

bug.txt

@naushir
Copy link
Collaborator

naushir commented Jul 19, 2024

#699 ought to fix this.

@naushir
Copy link
Collaborator

naushir commented Aug 12, 2024

Fixed now.

@naushir naushir closed this as completed Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants