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

Screenshot isn't always produced when it's the last command #540

Open
louis-thevenet opened this issue Nov 1, 2024 · 1 comment
Open

Comments

@louis-thevenet
Copy link

Describe the bug
When nothing comes after a Screenshot, vhs seems to skip it sometimes.

You can see at 0:14, the second.png was not created.

demo_bug.mp4

Setup

  • vhs 0.8.0 from nixpkgs
  • Zsh, Kitty, NixOS

To Reproduce
Run this multiple times:

Type "echo some text"
Screenshot first.png
Type "echo some other text"
Screenshot second.png
# Type "end" # If you add a command after, it seems to work everytime
@neomantra
Copy link

neomantra commented Dec 14, 2024

I'm seeing something similar. This is repro helped me and I see another example:

# <...beginning of tape>
Screenshot foo.png
Hide
Type "q"
# <eof>

With that sequence , no screenshot is written. With the Hide removed or moved after the Type, the Screenshot is captured.

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