-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Fix duplicate frames and respect original frame rate #125
Conversation
Also note this is extracting every other frame. If the intent was different, let me know and I can adjust the command to meet the intent |
Thanks so much! It will probably take me a while to test and merge this, but I definitely will! |
Can I ask why you closed this? Sorry it takes this long, I'm very busy until next week. I know its frustrating when it takes so long to get a PR merged but I think your contribution would be a great addition! |
Oh sorry. I merged the branches and deleted them in my repo without thinking about it. I'll restore the branches |
I also have a version that I'm using now that allows a parameter to pull out evenly spaced frames from the video if you want that |
Spent some more time with this. The version in the PR extracts every interval'th frame (e.g. every second frame) then uses the motion filter to pick the top n up to max_frames. I have two other versions on my own fork, each controlled by params. Let me know if you want PRs for them:
Let me know if you want PRs for any of that and happy to send them upstream |
Thanks again for your work! |
A couple of nuances of how ffmpeg works are fixed here:
Side note: For debugging ffmpeg, it's useful to add another parameter to the command: "2> /config/www/llmvision/out.txt" so we can see what it's doing.
This fixes #118 and also results in nice, smooth frames and drastically improves the descriptions the LLM returns.